forked from alisw/AliDPG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtractEmbeddedWrapper.C
42 lines (33 loc) · 1.24 KB
/
ExtractEmbeddedWrapper.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* AliDPG - ALICE Experiment Data Preparation Group
* Embedded signal filtering main script
*
*/
/*****************************************************************/
/*****************************************************************/
/*****************************************************************/
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
#include "ExtractEmbedded.C"
#endif
void ExtractEmbeddedWrapper(Bool_t keepMixed = kFALSE)
{
Printf("Run the extraction of embedded signal (keepMixed = %d)",keepMixed);
gSystem->Exec("ln -s $ALIDPG_ROOT/MC/ExtractEmbedded.C ExtractEmbedded.C");
if(gROOT->LoadMacro("ExtractEmbedded.C+") != 0) {
Printf("ERROR: Problem when loading ExtractEmbedded.C");
abort();
return;
}
if(ExtractEmbedded(keepMixed,"AliESDs_EMB.root","AliESDs.root", "AliESDfriends_EMB.root", "AliESDfriends.root") == kFALSE){
Printf("ERROR: Problem when running ExtractEmbedded");
abort();
return;
}
//// Remove for proper handling of AliMultSelection task
// if(RemoveBKGFromGalice("galice_EMB.root","galice.root") == kFALSE){
// Printf("ERROR: Problem when running RemoveBKGFromGalice");
// abort();
// return;
// }
gSystem->Exec("rm ExtractEmbedded.C ExtractEmbedded_C.*");
}