1 void runProofFwdDetsQA(const char * dataset = "/COMMON/COMMON/LHC09a4_run8101X",Long64_t nentries=100000, Long64_t firstentry=0)
3 gSystem->Load("libANALYSIS");
4 gSystem->Load("libANALYSISalice");
5 gSystem->AddIncludePath("-I$ALICE_ROOT/include");
8 gEnv->SetValue("XSec.GSI.DelegProxy","2");
9 TProof::Open("cheshkov:PWG0@alicecaf");
11 // Upload and enable packages: please use the correct version!
12 gProof->UploadPackage("/afs/cern.ch/alice/caf/sw/ALICE/PARs/v4-16-Release/AF-v4-16");
13 gProof->EnablePackage("/afs/cern.ch/alice/caf/sw/ALICE/PARs/v4-16-Release/AF-v4-16");
15 // Create the analysis manager
16 AliAnalysisManager *mgr = new AliAnalysisManager("AliAnaFwdDetsQA");
18 AliVEventHandler* esdH = new AliESDInputHandler();
19 mgr->SetInputEventHandler(esdH);
21 // Enable MC event handler
22 AliVEventHandler* handler = new AliMCEventHandler;
23 mgr->SetMCtruthEventHandler(handler);
27 gProof->Load(Form("%s/PWG1/AliAnaFwdDetsQA.cxx++g",
28 gSystem->Getenv("ALICE_ROOT")));
29 AliAnalysisTask *task = new AliAnaFwdDetsQA("AliAnaFwdDetsQA");
34 // Create containers for input/output
35 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
36 AliAnalysisDataContainer *coutput =
37 mgr->CreateContainer("coutput", TList::Class(),
38 AliAnalysisManager::kOutputContainer, "FwdDetsQA.root");
40 // Connect input/output
41 mgr->ConnectInput(task, 0, cinput);
42 mgr->ConnectOutput(task, 1, coutput);
45 // Enable debug printouts
46 mgr->SetDebugLevel(3);
48 if (!mgr->InitAnalysis())
53 TFileCollection *proofColl = gProof->GetDataSet(dataset);
54 TChain *chain = new TChain("esdTree");
55 chain->AddFileInfoList((TCollection*)(proofColl->GetList()));
56 mgr->StartAnalysis("proof", chain, nentries, firstentry);
58 // mgr->StartAnalysis("proof",dataset,nentries,firstentry);