]>
Commit | Line | Data |
---|---|---|
0ab648ea | 1 | //__________________________________________________// |
790140ac | 2 | AliProtonAnalysis *GetProtonAnalysisObject(const char* analysisLevel = "ESD", |
3 | Bool_t kAnalyzeMC = kTRUE, | |
0ab648ea | 4 | const char* esdAnalysisType = "Hybrid", |
4de4661f | 5 | const char* pidMode = "Bayesian", |
1fd2c71b | 6 | Bool_t kUseOnlineTrigger = kFALSE, |
2f6dae44 | 7 | Bool_t kUseOfflineTrigger = kFALSE, |
8 | Bool_t kRunQA = kFALSE) { | |
0894be86 | 9 | gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/configProtonAnalysisBaseObject.C"); |
0ab648ea | 10 | //Function to setup the AliProtonAnalysis object and return it |
2f6dae44 | 11 | AliProtonAnalysisBase *baseAnalysis = GetProtonAnalysisBaseObject(analysisLevel,kAnalyzeMC,esdAnalysisType,pidMode,kUseOnlineTrigger,kUseOfflineTrigger,kRunQA); |
0ab648ea | 12 | |
13 | AliProtonAnalysis *analysis = new AliProtonAnalysis(); | |
14 | analysis->SetBaseAnalysis(baseAnalysis); | |
f7ab41e3 | 15 | if(baseAnalysis->GetAnalysisMode() == AliProtonAnalysisBase::kGlobal) { |
4acc9d4d | 16 | Double_t gY[17] = {-0.9,-0.75,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.75,0.9}; |
17 | Double_t gPt[18] = {0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.7,1.9,2.1,2.4,2.7,3.1}; | |
18 | analysis->InitAnalysisHistograms(16,gY,17,gPt); | |
19 | //Double_t gPt[27] = {0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.7,1.9,2.1,2.4,2.7,3.0,3.4,3.8,4.2,4.7,5.1,6.0,7.0,9.0,12.0}; | |
20 | //analysis->InitAnalysisHistograms(16,gY,26,gPt); | |
21 | } | |
22 | else | |
23 | analysis->InitAnalysisHistograms(baseAnalysis->GetNBinsX(), | |
24 | baseAnalysis->GetMinX(), | |
25 | baseAnalysis->GetMaxX(), | |
26 | baseAnalysis->GetNBinsY(), | |
27 | baseAnalysis->GetMinY(), | |
28 | baseAnalysis->GetMaxY()); | |
29 | ||
0ab648ea | 30 | return analysis; |
31 | } | |
32 | ||
33 | //__________________________________________________// | |
34 | AliProtonQAAnalysis *GetProtonQAAnalysisObject(const char* analysisLevel = "ESD", | |
35 | const char* esdAnalysisType = "Hybrid", | |
4de4661f | 36 | const char* pidMode = "Bayesian", |
1fd2c71b | 37 | Bool_t kUseOnlineTrigger = kFALSE, |
38 | Bool_t kUseOfflineTrigger = kFALSE) { | |
10cd755c | 39 | gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/configProtonAnalysisBaseObject.C"); |
0ab648ea | 40 | //Function to setup the AliProtonQAAnalysis object and return it |
1fd2c71b | 41 | AliProtonAnalysisBase *baseAnalysis = GetProtonAnalysisBaseObject(analysisLevel,kTRUE,esdAnalysisType,pidMode,kUseOnlineTrigger,kUseOfflineTrigger); |
e7df5638 | 42 | |
0ab648ea | 43 | AliProtonQAAnalysis *analysis = new AliProtonQAAnalysis(); |
57e749bb | 44 | analysis->SetBaseAnalysis(baseAnalysis); |
e7df5638 | 45 | analysis->SetRunMCAnalysis(); |
46 | //analysis->SetMCProcessId(4);//4: weak decay - 13: hadronic interaction | |
47 | //analysis->SetMotherParticlePDGCode(3122);//3122: Lambda | |
df201289 | 48 | analysis->SetRunEfficiencyAnalysis(kFALSE);//use cuts in the eff. analysis |
e7df5638 | 49 | analysis->SetQAYPtBins(baseAnalysis->GetNBinsX(), |
50 | baseAnalysis->GetMinX(), | |
51 | baseAnalysis->GetMaxX(), | |
52 | baseAnalysis->GetNBinsY(), | |
53 | baseAnalysis->GetMinY(), | |
54 | baseAnalysis->GetMaxY()); | |
0ab648ea | 55 | |
56 | return analysis; | |
57 | } | |
58 | ||
59 | //__________________________________________________// | |
0ab648ea | 60 |