]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/dNdEta/makeCorrection2.C
adding selector that creates histograms needed for systematic uncertainty
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / makeCorrection2.C
CommitLineData
dc740de4 1/* $Id$ */
2
539b6cb4 3//
4// Script to make correction maps for dndeta measurements using the
5// dNdEtaCorrection class.
6//
7// implementation with TSelector
8//
9
10#include "../CreateESDChain.C"
11
406eb63e 12void makeCorrection2(Char_t* dataDir, Int_t nRuns=20, Int_t offset = 0, Bool_t debug = kFALSE, const Char_t* option = "")
539b6cb4 13{
14 gSystem->Load("libPWG0base");
45e97e28 15 gSystem->Load("libPWG0dep");
539b6cb4 16
10ebe68d 17 gROOT->ProcessLine(".L CreateCuts.C");
79ab56b9 18
10ebe68d 19 AliESDtrackCuts* esdTrackCuts = CreateTrackCuts();
20 if (!esdTrackCuts)
21 {
22 printf("ERROR: esdTrackCuts could not be created\n");
23 return;
24 }
79ab56b9 25
10ebe68d 26 TChain* chain = CreateESDChain(dataDir, nRuns, offset);
27 chain->GetUserInfo()->Add(esdTrackCuts);
45e97e28 28
10ebe68d 29 TString selector("AlidNdEtaCorrectionSelector.cxx++");
45e97e28 30 if (debug != kFALSE)
31 selector += "g";
32
406eb63e 33 chain->Process(selector, option);
539b6cb4 34}