]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/macros/mini/ConfigSigmaStarMC.C
Migration of PWG2/RESONANCES -> PWGLF/RESONANCES
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / macros / mini / ConfigSigmaStarMC.C
CommitLineData
8082e538 1//
2// *** Configuration script for phi->KK analysis with 2010 runs ***
3//
4// A configuration script for RSN package needs to define the followings:
5//
6// (1) decay tree of each resonance to be studied, which is needed to select
7// true pairs and to assign the right mass to all candidate daughters
8// (2) cuts at all levels: single daughters, tracks, events
9// (3) output objects: histograms or trees
10//
11Bool_t ConfigSigmaStarMC
12(
13 AliRsnMiniAnalysisTask *task,
14 Bool_t isPP,
15 const char *suffix,
16 AliRsnCutSet *cutsPair
17)
18{
19 // manage suffix
20 if (strlen(suffix) > 0) suffix = Form("_%s", suffix);
21
22 //
23 // -- Define track cuts -------------------------------------------------------------------------
24 //
25
26 /*** EMPTY FOR TRUE PAIRS COMPUTATION ***/
27
28 //
29 // -- Values ------------------------------------------------------------------------------------
30 //
31
32 /* invariant mass */ Int_t imID = task->CreateValue(AliRsnMiniValue::kInvMass, kFALSE);
33 /* transv. momentum */ Int_t ptID = task->CreateValue(AliRsnMiniValue::kPt, kFALSE);
34 /* centrality */ Int_t centID = task->CreateValue(AliRsnMiniValue::kMult, kFALSE);
35
36 //
37 // -- Create all needed outputs -----------------------------------------------------------------
38 //
39
40 TString mode = "HIST";
41 if (!isPP) mode = "SPARSE";
42
43 // create output
44 AliRsnMiniOutput *out = task->CreateOutput(Form("sigmastarP_TrueMC%s", suffix), mode.Data(), "MOTHER");
45 // selection settings
46 out->SetDaughter(0, AliRsnDaughter::kLambda);
47 out->SetDaughter(1, AliRsnDaughter::kPion);
48 out->SetMotherPDG(3224);
49 out->SetMotherMass(1382.3);
50 // pair cuts
51 out->SetPairCuts(cutsPair);
52 // binnings
53 out->AddAxis(imID, 800, 1.2, 2.0);
54 out->AddAxis(ptID, 100, 0.0, 10.0);
55 if (!isPP) out->AddAxis(centID, 100, 0.0, 100.0);
56
57 // create output
58 AliRsnMiniOutput *out = task->CreateOutput(Form("sigmastarM_TrueMC%s", suffix), mode.Data(), "MOTHER");
59 // selection settings
60 out->SetDaughter(0, AliRsnDaughter::kLambda);
61 out->SetDaughter(1, AliRsnDaughter::kPion);
62 out->SetMotherPDG(3114);
63 out->SetMotherMass(1387.4);
64 // pair cuts
65 out->SetPairCuts(cutsPair);
66 // binnings
67 out->AddAxis(imID, 800, 1.2, 2.0);
68 out->AddAxis(ptID, 100, 0.0, 10.0);
69 if (!isPP) out->AddAxis(centID, 100, 0.0, 100.0);
70
71 return kTRUE;
72}