4 // Script to run the creation of input for systematics
7 #include "../CreateESDChain.C"
8 #include "../PWG0Helper.C"
10 void makeSystematics(Char_t* dataDir, Int_t nRuns=20, Int_t offset = 0, Bool_t debug = kFALSE, Bool_t aProof = kFALSE, const Char_t* option = "")
13 connectProof("proof01@lxb6046");
15 TString libraries("libEG;libGeom;libESD;libPWG0base;libVMC;libMinuit;libSTEER;libPWG0dep;libEVGEN;libFASTSIM;libmicrocern;libpdf;libpythia6;libEGPythia6;libAliPythia6");
16 TString packages("PWG0base;PWG0dep");
18 if (!prepareQuery(libraries, packages, kTRUE))
21 gROOT->ProcessLine(".L CreateCuts.C");
23 AliESDtrackCuts* esdTrackCuts = CreateTrackCuts();
26 printf("ERROR: esdTrackCuts could not be created\n");
31 inputList.Add(esdTrackCuts);
33 TChain* chain = CreateESDChain(dataDir, nRuns, offset);
35 TString selector("AlidNdEtaSystematicsSelector.cxx++");
39 Int_t result = executeQuery(chain, &inputList, selector, option);
42 void runAnalysisWithDifferentMaps(Char_t* dataDir, Int_t nRuns=20, Int_t offset = 0, Bool_t debug = kFALSE, Bool_t proof = kFALSE)
44 // This functions runs the dN/dEta analysis with different correction maps to gather systematics
45 // It runs with the "normal map", and with 4 other different cases where particle species are enhanced
47 // The normal map is expected in correction_map.root, created by AlidNdEtaCorrectionSelector
48 // The others in new_compositions.root in the folders (K|p)(Boosted|Reduced), created
49 // by AlidNdEtaSystematicsSelector and Composition() out of drawSystematics.C
51 gROOT->ProcessLine(".L testAnalysis2.C");
53 gSystem->Exec("rm analysis_esd.root");
55 testAnalysis2(dataDir, nRuns, offset, kFALSE, debug, proof, "correction_map.root", "dndeta_correction");
56 if (gSystem->Exec("mv analysis_esd.root systematics_dndeta_reference.root") != 0)
58 printf("systematics_dndeta_reference.root failed\n");
62 testAnalysis2(dataDir, nRuns, offset, kFALSE, debug, proof, "new_compositions.root", "KBoosted");
63 if (gSystem->Exec("mv analysis_esd.root systematics_dndeta_KBoosted.root") != 0)
65 printf("systematics_dndeta_KBoosted.root failed\n");
69 testAnalysis2(dataDir, nRuns, offset, kFALSE, debug, proof, "new_compositions.root", "KReduced");
70 if (gSystem->Exec("mv analysis_esd.root systematics_dndeta_KReduced.root") != 0)
72 printf("systematics_dndeta_KReduced.root failed\n");
76 testAnalysis2(dataDir, nRuns, offset, kFALSE, debug, proof, "new_compositions.root", "pBoosted");
77 if (gSystem->Exec("mv analysis_esd.root systematics_dndeta_pBoosted.root") != 0)
79 printf("systematics_dndeta_pBoosted.root failed\n");
83 testAnalysis2(dataDir, nRuns, offset, kFALSE, debug, proof, "new_compositions.root", "pReduced");
84 if (gSystem->Exec("mv analysis_esd.root systematics_dndeta_pReduced.root") != 0)
86 printf("systematics_dndeta_pReduced.root failed\n");