ROOT logo
//
// *** Configuration script for phi->KK analysis with 2010 runs ***
// 
// A configuration script for RSN package needs to define the followings:
//
// (1) decay tree of each resonance to be studied, which is needed to select
//     true pairs and to assign the right mass to all candidate daughters
// (2) cuts at all levels: single daughters, tracks, events
// (3) output objects: histograms or trees
//
Bool_t ConfigPhiSimple
(  
   AliRsnMiniAnalysisTask *task, 
   Bool_t                  isMC, 
   
   const char             *name,
   const char             *outType,
   const char             *computationType,
   char                    charge1,
   char                    charge2,
   Bool_t                  useIM,
   
   AliRsnCutSet           *cutsPair
)
{
   // 
   // -- Define track cuts -------------------------------------------------------------------------
   //
   
   // integrated kaon cut
   AliRsnCutKaonForPhi2010PP *cutStd = new AliRsnCutKaonForPhi2010PP("cutStdPP");
   // cut set
   AliRsnCutSet *cutSetStd = new AliRsnCutSet("kaonForPhi", AliRsnTarget::kDaughter);
   cutSetStd->AddCut(cutStd);
   cutSetStd->SetCutScheme(cutStd->GetName());
   // add to task
   Int_t icut = task->AddTrackCuts(cutSetStd);
   
   //
   // -- Values ------------------------------------------------------------------------------------
   //
   
   /* invariant mass   */ Int_t imID   = task->CreateValue(AliRsnMiniValue::kInvMass, kFALSE);
   /* IM resolution    */ Int_t resID  = task->CreateValue(AliRsnMiniValue::kInvMassRes, kTRUE);
   /* transv. momentum */ Int_t ptID   = task->CreateValue(AliRsnMiniValue::kPt, kFALSE);
   /* centrality       */ Int_t centID = task->CreateValue(AliRsnMiniValue::kMult, kFALSE);
   
   //
   // -- Create all needed outputs -----------------------------------------------------------------
   //
   
   // create output object                          "HIST"   "PAIR" or "MIX" or "TRUE"
   AliRsnMiniOutput *out = task->CreateOutput(name, outType, computationType);
      
   // cut IDs
   out->SetCutID(0, icut);
   out->SetCutID(1, icut);
   
   // daughter species   
   out->SetDaughter(0, AliRsnDaughter::kKaon);
   out->SetDaughter(1, AliRsnDaughter::kKaon);
   out->SetCharge(0, charge1);
   out->SetCharge(1, charge2);
   
   // resonance properties
   out->SetMotherPDG(333);
   out->SetMotherMass(1.019455);
   
   // pair cuts
   out->SetPairCuts(cutsPair);
   
   // axis X: invmass (or resolution)
   if (useIM) 
      out->AddAxis(imID, 500, 0.9,  1.4);
   else
      out->AddAxis(resID, 200, -0.02, 0.02);
   
   // axis Y: transverse momentum
   out->AddAxis(ptID, 100, 0.0, 10.0);
   
   return kTRUE;
}
 ConfigPhiSimple.C:1
 ConfigPhiSimple.C:2
 ConfigPhiSimple.C:3
 ConfigPhiSimple.C:4
 ConfigPhiSimple.C:5
 ConfigPhiSimple.C:6
 ConfigPhiSimple.C:7
 ConfigPhiSimple.C:8
 ConfigPhiSimple.C:9
 ConfigPhiSimple.C:10
 ConfigPhiSimple.C:11
 ConfigPhiSimple.C:12
 ConfigPhiSimple.C:13
 ConfigPhiSimple.C:14
 ConfigPhiSimple.C:15
 ConfigPhiSimple.C:16
 ConfigPhiSimple.C:17
 ConfigPhiSimple.C:18
 ConfigPhiSimple.C:19
 ConfigPhiSimple.C:20
 ConfigPhiSimple.C:21
 ConfigPhiSimple.C:22
 ConfigPhiSimple.C:23
 ConfigPhiSimple.C:24
 ConfigPhiSimple.C:25
 ConfigPhiSimple.C:26
 ConfigPhiSimple.C:27
 ConfigPhiSimple.C:28
 ConfigPhiSimple.C:29
 ConfigPhiSimple.C:30
 ConfigPhiSimple.C:31
 ConfigPhiSimple.C:32
 ConfigPhiSimple.C:33
 ConfigPhiSimple.C:34
 ConfigPhiSimple.C:35
 ConfigPhiSimple.C:36
 ConfigPhiSimple.C:37
 ConfigPhiSimple.C:38
 ConfigPhiSimple.C:39
 ConfigPhiSimple.C:40
 ConfigPhiSimple.C:41
 ConfigPhiSimple.C:42
 ConfigPhiSimple.C:43
 ConfigPhiSimple.C:44
 ConfigPhiSimple.C:45
 ConfigPhiSimple.C:46
 ConfigPhiSimple.C:47
 ConfigPhiSimple.C:48
 ConfigPhiSimple.C:49
 ConfigPhiSimple.C:50
 ConfigPhiSimple.C:51
 ConfigPhiSimple.C:52
 ConfigPhiSimple.C:53
 ConfigPhiSimple.C:54
 ConfigPhiSimple.C:55
 ConfigPhiSimple.C:56
 ConfigPhiSimple.C:57
 ConfigPhiSimple.C:58
 ConfigPhiSimple.C:59
 ConfigPhiSimple.C:60
 ConfigPhiSimple.C:61
 ConfigPhiSimple.C:62
 ConfigPhiSimple.C:63
 ConfigPhiSimple.C:64
 ConfigPhiSimple.C:65
 ConfigPhiSimple.C:66
 ConfigPhiSimple.C:67
 ConfigPhiSimple.C:68
 ConfigPhiSimple.C:69
 ConfigPhiSimple.C:70
 ConfigPhiSimple.C:71
 ConfigPhiSimple.C:72
 ConfigPhiSimple.C:73
 ConfigPhiSimple.C:74
 ConfigPhiSimple.C:75
 ConfigPhiSimple.C:76
 ConfigPhiSimple.C:77
 ConfigPhiSimple.C:78
 ConfigPhiSimple.C:79
 ConfigPhiSimple.C:80
 ConfigPhiSimple.C:81
 ConfigPhiSimple.C:82
 ConfigPhiSimple.C:83