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 ConfigDeltaPP7TeV_MC
(
   AliRsnMiniAnalysisTask *task, 
   Bool_t                  isPP, 
   const char             *suffix,
   AliRsnCutSet           *cutsPair
)
{
   // manage suffix
   if (strlen(suffix) > 0) suffix = Form("_%s", suffix);
   
   // 
   // -- Define track cuts -------------------------------------------------------------------------
   //
   
   /*** EMPTY FOR TRUE PAIRS COMPUTATION ***/
   
   //
   // -- Values ------------------------------------------------------------------------------------
   //
   
   /* invariant mass   */ Int_t imID   = task->CreateValue(AliRsnMiniValue::kInvMass, kFALSE);
   /* transv. momentum */ Int_t ptID   = task->CreateValue(AliRsnMiniValue::kPt     , kFALSE);
   /* centrality       */ Int_t centID = task->CreateValue(AliRsnMiniValue::kMult   , kFALSE);
      
   /* pseudorapidity   */ Int_t etaID  = task->CreateValue(AliRsnMiniValue::kEta , kFALSE);
   /* rapidity         */ Int_t yID    = task->CreateValue(AliRsnMiniValue::kY   , kFALSE); 
   
   //
   // -- Create all needed outputs -----------------------------------------------------------------
   //
   
   TString mode = "SPARSE";
   //if (!isPP) mode = "SPARSE";
   
   
   //DELTA++
   // create output
   AliRsnMiniOutput *outpp = task->CreateOutput(Form("deltapp_TrueMCGen%s", suffix), mode.Data(), "MOTHER");
   outpp->SetDaughter(0, AliRsnDaughter::kProton);
   outpp->SetDaughter(1, AliRsnDaughter::kPion);
   outpp->SetMotherPDG(2224);
   outpp->SetMotherMass(1.232);
   outpp->SetPairCuts(cutsPair);
   outpp->AddAxis( imID   , 100 , 1.0, 2.0  );
   outpp->AddAxis( ptID   , 100 , 0.0, 10.0 );
   outpp->AddAxis(centID  , 120 , 0.0, 120  );
   outpp->AddAxis( etaID  , 20  ,-1.0, 1.0  );
   outpp->AddAxis( yID    , 10  ,-0.5, 0.5  ); 
   

   //DELTA--
   AliRsnMiniOutput *outmm = task->CreateOutput(Form("deltamm_TrueMCGen%s", suffix), mode.Data(), "MOTHER");
   outmm->SetDaughter(0, AliRsnDaughter::kProton);
   outmm->SetDaughter(1, AliRsnDaughter::kPion);
   outmm->SetMotherPDG(-2224);
   outmm->SetMotherMass(1.232);
   outmm->SetPairCuts(cutsPair);
   outmm->AddAxis( imID   , 100 , 1.0, 2.0  );
   outmm->AddAxis( ptID   , 100 , 0.0, 10.0 );
   outmm->AddAxis( centID , 120 , 0.0, 120  );
   outmm->AddAxis( etaID  , 20  ,-1.0, 1.0  );
   outmm->AddAxis( yID    , 10  ,-0.5, 0.5  ); 
   
   
   //DELTA0
   AliRsnMiniOutput *out0pm = task->CreateOutput(Form("delta0pm_TrueMCGen%s", suffix), mode.Data(), "MOTHER");
   out0pm->SetDaughter(0, AliRsnDaughter::kProton);
   out0pm->SetDaughter(1, AliRsnDaughter::kPion);
   out0pm->SetMotherPDG(2114);
   out0pm->SetMotherMass(1.232);
   out0pm->SetPairCuts(cutsPair); 
   out0pm->AddAxis( imID   , 100 , 1.0, 2.0  );
   out0pm->AddAxis( ptID   , 100 , 0.0, 10.0 );
   out0pm->AddAxis( centID , 120 , 0.0, 120  );
   out0pm->AddAxis( etaID  , 20  ,-1.0, 1.0  );
   out0pm->AddAxis( yID    , 10  ,-0.5, 0.5  ); 
   
   //DELTA0BAR
   AliRsnMiniOutput *out0mp = task->CreateOutput(Form("delta0mp_TrueMCGen%s", suffix), mode.Data(), "MOTHER");
   out0mp->SetDaughter(0, AliRsnDaughter::kProton);
   out0mp->SetDaughter(1, AliRsnDaughter::kPion);
   out0mp->SetMotherPDG(-2114);
   out0mp->SetMotherMass(1.232);
   out0mp->SetPairCuts(cutsPair);
   out0mp->AddAxis( imID   , 100 , 1.0, 2.0  );
   out0mp->AddAxis( ptID   , 100 , 0.0, 10.0 );
   out0mp->AddAxis( centID , 120 , 0.0, 120  );
   out0mp->AddAxis( etaID  , 20  ,-1.0, 1.0  );
   out0mp->AddAxis( yID    , 10  ,-0.5, 0.5  ); 
   
   
   return kTRUE;
}
 ConfigDeltaPP7TeV_MC.C:1
 ConfigDeltaPP7TeV_MC.C:2
 ConfigDeltaPP7TeV_MC.C:3
 ConfigDeltaPP7TeV_MC.C:4
 ConfigDeltaPP7TeV_MC.C:5
 ConfigDeltaPP7TeV_MC.C:6
 ConfigDeltaPP7TeV_MC.C:7
 ConfigDeltaPP7TeV_MC.C:8
 ConfigDeltaPP7TeV_MC.C:9
 ConfigDeltaPP7TeV_MC.C:10
 ConfigDeltaPP7TeV_MC.C:11
 ConfigDeltaPP7TeV_MC.C:12
 ConfigDeltaPP7TeV_MC.C:13
 ConfigDeltaPP7TeV_MC.C:14
 ConfigDeltaPP7TeV_MC.C:15
 ConfigDeltaPP7TeV_MC.C:16
 ConfigDeltaPP7TeV_MC.C:17
 ConfigDeltaPP7TeV_MC.C:18
 ConfigDeltaPP7TeV_MC.C:19
 ConfigDeltaPP7TeV_MC.C:20
 ConfigDeltaPP7TeV_MC.C:21
 ConfigDeltaPP7TeV_MC.C:22
 ConfigDeltaPP7TeV_MC.C:23
 ConfigDeltaPP7TeV_MC.C:24
 ConfigDeltaPP7TeV_MC.C:25
 ConfigDeltaPP7TeV_MC.C:26
 ConfigDeltaPP7TeV_MC.C:27
 ConfigDeltaPP7TeV_MC.C:28
 ConfigDeltaPP7TeV_MC.C:29
 ConfigDeltaPP7TeV_MC.C:30
 ConfigDeltaPP7TeV_MC.C:31
 ConfigDeltaPP7TeV_MC.C:32
 ConfigDeltaPP7TeV_MC.C:33
 ConfigDeltaPP7TeV_MC.C:34
 ConfigDeltaPP7TeV_MC.C:35
 ConfigDeltaPP7TeV_MC.C:36
 ConfigDeltaPP7TeV_MC.C:37
 ConfigDeltaPP7TeV_MC.C:38
 ConfigDeltaPP7TeV_MC.C:39
 ConfigDeltaPP7TeV_MC.C:40
 ConfigDeltaPP7TeV_MC.C:41
 ConfigDeltaPP7TeV_MC.C:42
 ConfigDeltaPP7TeV_MC.C:43
 ConfigDeltaPP7TeV_MC.C:44
 ConfigDeltaPP7TeV_MC.C:45
 ConfigDeltaPP7TeV_MC.C:46
 ConfigDeltaPP7TeV_MC.C:47
 ConfigDeltaPP7TeV_MC.C:48
 ConfigDeltaPP7TeV_MC.C:49
 ConfigDeltaPP7TeV_MC.C:50
 ConfigDeltaPP7TeV_MC.C:51
 ConfigDeltaPP7TeV_MC.C:52
 ConfigDeltaPP7TeV_MC.C:53
 ConfigDeltaPP7TeV_MC.C:54
 ConfigDeltaPP7TeV_MC.C:55
 ConfigDeltaPP7TeV_MC.C:56
 ConfigDeltaPP7TeV_MC.C:57
 ConfigDeltaPP7TeV_MC.C:58
 ConfigDeltaPP7TeV_MC.C:59
 ConfigDeltaPP7TeV_MC.C:60
 ConfigDeltaPP7TeV_MC.C:61
 ConfigDeltaPP7TeV_MC.C:62
 ConfigDeltaPP7TeV_MC.C:63
 ConfigDeltaPP7TeV_MC.C:64
 ConfigDeltaPP7TeV_MC.C:65
 ConfigDeltaPP7TeV_MC.C:66
 ConfigDeltaPP7TeV_MC.C:67
 ConfigDeltaPP7TeV_MC.C:68
 ConfigDeltaPP7TeV_MC.C:69
 ConfigDeltaPP7TeV_MC.C:70
 ConfigDeltaPP7TeV_MC.C:71
 ConfigDeltaPP7TeV_MC.C:72
 ConfigDeltaPP7TeV_MC.C:73
 ConfigDeltaPP7TeV_MC.C:74
 ConfigDeltaPP7TeV_MC.C:75
 ConfigDeltaPP7TeV_MC.C:76
 ConfigDeltaPP7TeV_MC.C:77
 ConfigDeltaPP7TeV_MC.C:78
 ConfigDeltaPP7TeV_MC.C:79
 ConfigDeltaPP7TeV_MC.C:80
 ConfigDeltaPP7TeV_MC.C:81
 ConfigDeltaPP7TeV_MC.C:82
 ConfigDeltaPP7TeV_MC.C:83
 ConfigDeltaPP7TeV_MC.C:84
 ConfigDeltaPP7TeV_MC.C:85
 ConfigDeltaPP7TeV_MC.C:86
 ConfigDeltaPP7TeV_MC.C:87
 ConfigDeltaPP7TeV_MC.C:88
 ConfigDeltaPP7TeV_MC.C:89
 ConfigDeltaPP7TeV_MC.C:90
 ConfigDeltaPP7TeV_MC.C:91
 ConfigDeltaPP7TeV_MC.C:92
 ConfigDeltaPP7TeV_MC.C:93
 ConfigDeltaPP7TeV_MC.C:94
 ConfigDeltaPP7TeV_MC.C:95
 ConfigDeltaPP7TeV_MC.C:96
 ConfigDeltaPP7TeV_MC.C:97
 ConfigDeltaPP7TeV_MC.C:98
 ConfigDeltaPP7TeV_MC.C:99
 ConfigDeltaPP7TeV_MC.C:100
 ConfigDeltaPP7TeV_MC.C:101
 ConfigDeltaPP7TeV_MC.C:102
 ConfigDeltaPP7TeV_MC.C:103
 ConfigDeltaPP7TeV_MC.C:104
 ConfigDeltaPP7TeV_MC.C:105