2 // *** Configuration script for phi->KK analysis with 2010 runs ***
4 // A configuration script for RSN package needs to define the followings:
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
11 Bool_t ConfigPhiSimple
13 AliRsnMiniAnalysisTask *task,
18 const char *computationType,
23 AliRsnCutSet *cutsPair
27 // -- Define track cuts -------------------------------------------------------------------------
30 // integrated kaon cut
31 AliRsnCutKaonForPhi2010PP *cutStd = new AliRsnCutKaonForPhi2010PP("cutStdPP");
33 AliRsnCutSet *cutSetStd = new AliRsnCutSet("kaonForPhi", AliRsnTarget::kDaughter);
34 cutSetStd->AddCut(cutStd);
35 cutSetStd->SetCutScheme(cutStd->GetName());
37 Int_t icut = task->AddTrackCuts(cutSetStd);
40 // -- Values ------------------------------------------------------------------------------------
43 /* invariant mass */ Int_t imID = task->CreateValue(AliRsnMiniValue::kInvMass, kFALSE);
44 /* IM resolution */ Int_t resID = task->CreateValue(AliRsnMiniValue::kInvMassRes, kTRUE);
45 /* transv. momentum */ Int_t ptID = task->CreateValue(AliRsnMiniValue::kPt, kFALSE);
46 /* centrality */ Int_t centID = task->CreateValue(AliRsnMiniValue::kMult, kFALSE);
49 // -- Create all needed outputs -----------------------------------------------------------------
52 // create output object "HIST" "PAIR" or "MIX" or "TRUE"
53 AliRsnMiniOutput *out = task->CreateOutput(name, outType, computationType);
56 out->SetCutID(0, icut);
57 out->SetCutID(1, icut);
60 out->SetDaughter(0, AliRsnDaughter::kKaon);
61 out->SetDaughter(1, AliRsnDaughter::kKaon);
62 out->SetCharge(0, charge1);
63 out->SetCharge(1, charge2);
65 // resonance properties
66 out->SetMotherPDG(333);
67 out->SetMotherMass(1.019455);
70 out->SetPairCuts(cutsPair);
72 // axis X: invmass (or resolution)
74 out->AddAxis(imID, 500, 0.9, 1.4);
76 out->AddAxis(resID, 200, -0.02, 0.02);
78 // axis Y: transverse momentum
79 out->AddAxis(ptID, 100, 0.0, 10.0);