45 char *
kXML =
"collection.xml";
105 printf(
"*********************************************\n");
107 printf(
"*********************************************\n");
110 TChain * chainxs =
new TChain(
"Xsection") ;
114 printf(
"===== kMC %d, chainxs %p\n",
kMC,chainxs);
119 Double_t xsection = 0;
125 printf(
"n xs files %d",nfiles);
129 Int_t nEventsPerFile = chain->GetEntries() / nfiles;
131 Double_t trials = ntrials / nEventsPerFile ;
133 scale = xsection / trials;
135 printf(
"Get Cross section : nfiles %d, nevents %d, nevents per file %d \n",nfiles, chain->GetEntries(),nEventsPerFile);
136 printf(
" ntrials %d, trials %2.2f, xs %2.2e, scale factor %2.2e\n", ntrials,trials,xsection,scale);
138 if(chainxs->GetEntries()!=chain->GetEntries()) printf(
"CAREFUL: Number of files in data chain %d, in cross section chain %d \n",
139 chainxs->GetEntries(),chain->GetEntries());
143 if( scale <= 0 || !ok)
144 { printf(
"STOP, cross section not available! nfiles %d \n", chainxs->GetEntries() ) ; return ; }
148 printf(
"*********************************************\n");
149 printf(
"number of entries # %lld, skipped %d\n", chain->GetEntries()) ;
150 printf(
"*********************************************\n");
154 printf(
"STOP, no chain available\n");
158 AliLog::SetGlobalLogLevel(AliLog::kError);
163 AliAnalysisGrid *alienHandler=0x0;
167 gROOT->LoadMacro(
"CreateAlienHandler.C");
169 if (!alienHandler)
return;
175 AliAnalysisManager *mgr =
new AliAnalysisManager(
"Manager",
"Manager");
183 mgr->SetGridHandler(alienHandler);
189 AliMCEventHandler* mcHandler =
new AliMCEventHandler();
190 mcHandler->SetReadTR(kFALSE);
191 mgr->SetMCtruthEventHandler(mcHandler);
194 cout<<
"MC INPUT EVENT HANDLER"<<endl;
195 mgr->SetInputEventHandler(NULL);
203 cout<<
"Init output handler"<<endl;
204 AliAODHandler* aodoutHandler =
new AliAODHandler();
205 aodoutHandler->SetOutputFileName(
"aod.root");
207 mgr->SetOutputEventHandler(aodoutHandler);
215 AliESDInputHandler *esdHandler =
new AliESDInputHandler();
216 esdHandler->SetReadFriends(kFALSE);
217 mgr->SetInputEventHandler(esdHandler);
218 cout<<
"ESD handler "<<mgr->GetInputEventHandler()<<endl;
223 AliAODInputHandler *aodHandler =
new AliAODInputHandler();
224 mgr->SetInputEventHandler(aodHandler);
225 if(
kInputData ==
"deltaAOD") aodHandler->AddFriend(
"deltaAODCaloTrackCorr.root");
226 cout<<
"AOD handler "<<mgr->GetInputEventHandler()<<endl;
232 TString outputFile = AliAnalysisManager::GetCommonFileName();
241 gROOT->LoadMacro(
"$ALICE_PHYSICS/OADB/macros/AddTaskPhysicsSelection.C");
242 AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(
kMC);
248 gROOT->LoadMacro(
"$ALICE_PHYSICS/OADB/macros/AddTaskCentrality.C");
249 AliCentralitySelectionTask *taskCentrality = AddTaskCentrality();
254 gROOT->LoadMacro(
"$ALICE_ROOT/ANALYSIS/macros/AddTaskVZEROEPSelection.C");
255 AliVZEROEPSelectionTask * EPV0 = AddTaskVZEROEPSelection();
257 gROOT->LoadMacro(
"$ALICE_ROOT/ANALYSIS/macros/AddTaskEventplane.C");
258 AliEPSelectionTask * EP = AddTaskEventplane();
263 gROOT->LoadMacro(
"$ALICE_PHYSICS/PWGGA/CaloTrackCorrelations/macros/AddTaskCounter.C");
310 Bool_t deltaAOD = kFALSE;
311 gROOT->LoadMacro(
"AddTaskCaloTrackCorr.C");
312 gROOT->LoadMacro(
"$ALICE_PHYSICS/PWGPP/EMCAL/macros/AddTaskEMCALClusterize.C");
322 Bool_t calibEE = kTRUE;
323 Bool_t calibTT = kTRUE;
324 if(
kRun < 122195 || (
kRun > 126437 &&
kRun < 136851) ||
kMC) calibTT=kFALSE ;
325 Bool_t badMap = kTRUE;
329 printf(
"==================================== \n");
330 printf(
"CONFIGURE ANALYSIS FOR PP COLLISIONS \n");
331 printf(
"==================================== \n");
333 Bool_t mixing = kTRUE;
335 Bool_t reTM = kFALSE;
338 Bool_t clnonlin = kTRUE;
339 Bool_t annonlin = kFALSE;
341 Int_t minEseed = 100;
348 TString clTrigger =
"";
349 TString anTrigger =
"EMC7";
359 Bool_t selectEvents = kFALSE;
361 Bool_t hadron = kTRUE;
365 TString arrayNameV1 =
"";
368 minEcell,minEseed,dTime,wTime,unfMinE,unfFrac,
369 calibEE,badMap,calibTT,clnonlin);
371 printf(
"Name of clusterizer1 array: %s\n",arrayNameV1.Data());
378 -1,-1, qa, hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
383 -1,-1, qa, hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
388 TString arrayNameV2 =
"";
390 minEcell,minEseed,dTime,wTime,
391 calibEE,badMap,calibTT,clnonlin);
393 printf(
"Name of clusterizer2 array: %s\n",arrayNameV2.Data());
402 -1,-1,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
408 -1,-1, qa, hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
413 printf(
"====================================== \n");
414 printf(
"CONFIGURE ANALYSIS FOR PbPb COLLISIONS \n");
415 printf(
"====================================== \n");
416 Bool_t mixing = kTRUE;
418 Bool_t reTM = kFALSE;
421 Bool_t clnonlin = kTRUE;
422 Bool_t annonlin = kFALSE;
423 Int_t minEcell = 150;
424 Int_t minEseed = 300;
431 TString clTrigger =
"";
432 TString anTrigger =
"EMCGA";
441 Bool_t selectEvents = kFALSE;
443 Bool_t hadron = kTRUE;
447 TString arrayNameV1 =
"";
449 minEcell,minEseed,dTime,wTime,unfMinE,unfFrac,
450 calibEE,badMap,calibTT,clnonlin);
452 printf(
"Name of clusterizer1 array: %s\n",arrayNameV1.Data());
458 0,20,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
461 20,40,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
464 60,80,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
469 TString arrayNameV2 =
"";
471 minEcell,minEseed,dTime,wTime,unfMinE,unfFrac,
472 calibEE,badMap,calibTT,clnonlin);
474 printf(
"Name of clusterizer2 array: %s\n",arrayNameV2.Data());
483 0,20,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
486 20,40,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
489 60,80,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
494 0,20,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
497 20,40,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
500 60,80,qa,hadron,calibEE,badMap,calibTT,deltaAOD,
kPrint,scale,
kRun);
512 else if (
mode ==
mPROOF ) mgr->StartAnalysis(
"proof",chain);
513 else mgr->StartAnalysis(
"local",chain);
515 cout <<
" Analysis ended sucessfully "<< endl ;
526 gROOT->LoadMacro(
"/afs/in2p3.fr/group/alice/laf/EnableAliRootForLAF.C");
527 TProof* proof = EnableAliRootForLAF(
"ccaplmaster",nPROOFWorkers.Data(),
ccin2p3UserName.Data(),
alienUserName.Data(),
"",kFALSE,kTRUE,kTRUE,
"OADB:ANALYSIS:ANALYSISalice:AOD:ESD:CORRFW:STEERBase:EMCALUtils:PHOSUtils:PWGCaloTrackCorrBase:PWGGACaloTrackCorrelations:PWGPPEMCAL");
565 gSystem->Load(
"libTree");
566 gSystem->Load(
"libGeom");
567 gSystem->Load(
"libVMC");
568 gSystem->Load(
"libXMLIO");
569 gSystem->Load(
"libMatrix");
570 gSystem->Load(
"libPhysics");
571 gSystem->Load(
"libMinuit");
573 gSystem->Load(
"libSTEERBase");
574 gSystem->Load(
"libGui");
575 gSystem->Load(
"libCDB");
576 gSystem->Load(
"libESD");
577 gSystem->Load(
"libAOD");
578 gSystem->Load(
"libRAWDatabase");
579 gSystem->Load(
"libProof");
580 gSystem->Load(
"libOADB");
581 gSystem->Load(
"libANALYSIS");
582 gSystem->Load(
"libSTEER");
584 gSystem->Load(
"libRAWDatarec");
585 gSystem->Load(
"libRAWDatasim");
586 gSystem->Load(
"libVZERObase");
587 gSystem->Load(
"libVZEROrec");
589 gSystem->Load(
"libPHOSUtils");
591 gSystem->Load(
"libEMCALUtils");
593 gSystem->Load(
"libEMCALraw");
594 gSystem->Load(
"libEMCALbase");
595 gSystem->Load(
"libEMCALsim");
596 gSystem->Load(
"libEMCALrec");
602 gSystem->Load(
"libANALYSISalice");
603 gSystem->Load(
"libESDfilter");
605 gSystem->Load(
"libTender");
606 gSystem->Load(
"libTenderSupplies");
608 gSystem->Load(
"libCORRFW");
609 gSystem->Load(
"libPWGTools");
611 gSystem->Load(
"libPWGPPEMCAL");
614 gSystem->Load(
"libPWGCaloTrackCorrBase");
615 gSystem->Load(
"libPWGGACaloTrackCorrelations");
628 gSystem->AddIncludePath(
"-I$ALICE_ROOT");
629 gSystem->AddIncludePath(
"-I$ALICE_PHYSICS");
630 gSystem->AddIncludePath(
"-I./");
640 TString cdir(Form(
"%s", gSystem->WorkingDirectory() )) ;
642 TString parpar(Form(
"%s.par", pararchivename)) ;
644 if ( gSystem->AccessPathName(pararchivename) )
646 TString processline = Form(
".! tar xvzf %s",parpar.Data()) ;
647 gROOT->ProcessLine(processline.Data());
650 TString ocwd = gSystem->WorkingDirectory();
651 gSystem->ChangeDirectory(pararchivename);
654 if (!gSystem->AccessPathName(
"PROOF-INF/BUILD.sh"))
656 printf(
"*******************************\n");
657 printf(
"*** Building PAR archive ***\n");
658 cout<<pararchivename<<endl;
659 printf(
"*******************************\n");
661 if (gSystem->Exec(
"PROOF-INF/BUILD.sh"))
663 Error(
"runProcess",
"Cannot Build the PAR Archive! - Abort!");
668 if (!gSystem->AccessPathName(
"PROOF-INF/SETUP.C"))
670 printf(
"*******************************\n");
671 printf(
"*** Setup PAR archive ***\n");
672 cout<<pararchivename<<endl;
673 printf(
"*******************************\n");
674 gROOT->Macro(
"PROOF-INF/SETUP.C");
677 gSystem->ChangeDirectory(ocwd.Data());
678 printf(
"Current dir: %s\n", ocwd.Data());
686 TString ocwd = gSystem->WorkingDirectory();
696 if(gSystem->Getenv(
"INDIR"))
697 kInDir = gSystem->Getenv(
"INDIR") ;
698 else cout<<
"INDIR not set, use default: "<<
kInDir<<endl;
701 if (sindir.Contains(
"pass1"))
kPass =
"pass1";
702 else if(sindir.Contains(
"pass2"))
kPass =
"pass2";
703 else if(sindir.Contains(
"pass3"))
kPass =
"pass3";
705 if(gSystem->Getenv(
"PATTERN"))
706 kPattern = gSystem->Getenv(
"PATTERN") ;
707 else cout<<
"PATTERN not set, use default: "<<
kPattern<<endl;
709 cout<<
"INDIR : "<<
kInDir<<endl;
710 cout<<
"NFILES : "<<
kFile<<endl;
716 for (Int_t event = 0 ;
event <
kFile ;
event++) {
720 sprintf(fileEm,
"%s/%s%d/embededAOD.root",
kInDir,
kPattern,event) ;
722 TFile * fESD = TFile::Open(fileE) ;
723 TFile * fAOD = TFile::Open(fileA) ;
730 TFile * fG = TFile::Open(fileG);
731 if(fG) {
kMC = kTRUE; fG->Close();}
735 TTree* esdTree = (TTree*)fESD->Get(
"esdTree");
736 AliESDEvent* esd =
new AliESDEvent();
737 esd->ReadFromTree(esdTree);
738 esdTree->GetEvent(0);
739 kRun = esd->GetRunNumber();
747 if(((TTree*) fAOD->Get(
"aodTree"))->GetBranch(
"mcparticles"))
kMC=kTRUE;
751 TTree* aodTree = (TTree*)fAOD->Get(
"aodTree");
752 AliAODEvent* aod =
new AliAODEvent();
753 aod->ReadFromTree(aodTree);
754 aodTree->GetEvent(0);
755 kRun = aod->GetRunNumber();
758 else if(TFile::Open(fileEm))
766 else if(TFile::Open(fileG))
775 if(fESD) fESD->Close();
776 if(fAOD) fAOD->Close();
783 else if(mode ==
mGRID){
787 if(gSystem->Getenv(
"XML") )
788 kXML = gSystem->Getenv(
"XML");
790 sprintf(
kXML,
"collection.xml") ;
792 if (!TFile::Open(
kXML)) {
793 printf(
"No collection file with name -- %s -- was found\n",
kXML);
796 else cout<<
"XML file "<<
kXML<<endl;
799 gSystem->Load(
"libNetx") ;
800 gSystem->Load(
"libRAliEn");
801 TGrid::Connect(
"alien://") ;
804 TGridCollection * collection = (TGridCollection*) TAlienCollection::Open(
kXML);
806 AliError(Form(
"%s not found",
kXML)) ;
809 TGridResult* result = collection->GetGridResult(
"",0 ,0);
811 for (Int_t index = 0; index < result->GetEntries(); index++) {
812 TString alienURL = result->GetKey(index,
"turl") ;
813 cout <<
"================== " << alienURL << endl ;
815 if (alienURL.Contains(
"pass1"))
kPass =
"pass1";
816 else if(alienURL.Contains(
"pass2"))
kPass =
"pass2";
817 else if(alienURL.Contains(
"pass3"))
kPass =
"pass3";
819 kRun = AliAnalysisManager::GetRunFromAlienPath(alienURL.Data());
820 printf(
"Run number from alien path = %d\n",
kRun);
824 if (alienURL.Contains(
"AliESDs.root"))
828 alienURL.ReplaceAll(
"AliESDs.root",
"galice.root");
829 if(TFile::Open(alienURL))
kMC=kTRUE;
833 else if(alienURL.Contains(
"AliAOD.root"))
837 fAOD = TFile::Open(alienURL);
838 if(((TTree*) fAOD->Get(
"aodTree"))->GetBranch(
"mcparticles"))
kMC=kTRUE;
842 else if(alienURL.Contains(
"embededAOD.root"))
849 else if(alienURL.Contains(
"galice.root"))
863 TFileCollection* coll = gProof->GetDataSet(
kDatasetPROOF)->GetStagedSubset();
865 TIter iter(coll->GetList());
867 TFileInfo* fileInfo = 0;
868 while ((fileInfo = dynamic_cast<TFileInfo*> (iter())))
870 if (fileInfo->GetFirstUrl()) {
871 TString ProofURL = fileInfo->GetFirstUrl()->GetUrl();
872 cout <<
"================== " << ProofURL << endl ;
874 if (ProofURL.Contains(
"pass1"))
kPass =
"pass1";
875 else if(ProofURL.Contains(
"pass2"))
kPass =
"pass2";
876 else if(ProofURL.Contains(
"pass3"))
kPass =
"pass3";
878 kRun = AliAnalysisManager::GetRunFromAlienPath(ProofURL.Data());
879 printf(
"Run number from alien path = %d\n",
kRun);
883 if (ProofURL.Contains(
"AliESDs.root"))
887 alienURL.ReplaceAll(
"AliESDs.root",
"galice.root");
888 if(TFile::Open(ProofURL))
kMC=kTRUE;
893 else if(ProofURL.Contains(
"AliAOD.root"))
897 fAOD = TFile::Open(ProofURL);
898 if(((TTree*) fAOD->Get(
"aodTree"))->GetBranch(
"mcparticles"))
kMC=kTRUE;
902 else if(ProofURL.Contains(
"embededAOD.root"))
909 else if(ProofURL.Contains(
"galice.root"))
920 gSystem->ChangeDirectory(ocwd.Data());
928 TString ocwd = gSystem->WorkingDirectory();
945 if(gSystem->Getenv(
"INDIR"))
946 kInDir = gSystem->Getenv(
"INDIR") ;
947 else cout<<
"INDIR not set, use default: "<<
kInDir<<endl;
949 if(gSystem->Getenv(
"PATTERN"))
950 kPattern = gSystem->Getenv(
"PATTERN") ;
951 else cout<<
"PATTERN not set, use default: "<<
kPattern<<endl;
953 if(gSystem->Getenv(
"NFILES"))
954 kFile = atoi(gSystem->Getenv(
"NFILES")) ;
955 else cout<<
"NFILES not set, use default: "<<
kFile<<endl;
960 printf(
"Get %d files from directory %s\n",
kFile,
kInDir);
961 if ( ! gSystem->cd(
kInDir) )
963 printf(
"%s does not exist\n",
kInDir) ;
970 char * kGener = gSystem->Getenv(
"GENER");
973 cout<<
"GENER "<<kGener<<endl;
974 if (!strcmp(kGener,
"PYTHIA"))
kXSFileName =
"pyxsec.root";
975 else if(!strcmp(kGener,
"HERWIG"))
kXSFileName =
"hexsec.root";
976 else cout<<
" UNKNOWN GENER, use default: "<<
kXSFileName<<endl;
978 else cout<<
" GENER not set, use default xs file name: "<<
kXSFileName<<endl;
987 cout<<
"INDIR : "<<
kInDir <<endl;
988 cout<<
"NFILES : "<<
kFile <<endl;
989 cout<<
"PATTERN : "<<
kPattern <<endl;
993 if (
kInputData ==
"ESD") datafile =
"AliESDs.root" ;
994 else if(
kInputData.Contains(
"AOD")) datafile =
"AliAOD.root" ;
995 else if(
kInputData ==
"MC") datafile =
"galice.root" ;
1003 for (event = 0 ;
event <
kFile ;
event++) {
1004 sprintf(file,
"%s/%s%d/%s",
kInDir,
kPattern,event,datafile.Data()) ;
1008 if ( fData = TFile::Open(file))
1012 printf(
"++++ Adding %s\n", file) ;
1013 chain->AddFile(file);
1017 chainxs->Add(filexs) ;
1021 TFile* fxsec = TFile::Open(filexs);
1024 TKey* key = (TKey*)fxsec->GetListOfKeys()->At(0);
1032 TList *
list =
dynamic_cast<TList*
>(key->ReadObj());
1040 Float_t xsection = ((TProfile*)list->FindObject(
"h1Xsec")) ->GetBinContent(1);
1041 Int_t ntrials = ((TH1F*) list->FindObject(
"h1Trials"))->GetBinContent(1);
1044 xsArr->SetAt(xsection,event);
1045 trArr->SetAt(ntrials,event);
1047 printf(
"recovered xs %f, ntrials %d, event %d\n",xsection,ntrials, event);
1057 printf(
"---- Skipping %s\n", file) ;
1063 TString input =
"AliESDs.root" ;
1064 cout<<
">>>>>> No list added, take a single file <<<<<<<<< "<<input<<endl;
1065 chain->AddFile(input);
1073 else if(mode ==
mGRID)
1079 TGridCollection * collection = (TGridCollection*) TAlienCollection::Open(
kXML);
1081 AliError(Form(
"%s not found",
kXML)) ;
1085 TGridResult* result = collection->GetGridResult(
"",0 ,0);
1088 printf(
"*** Getting the Chain ***\n");
1089 for (Int_t index = 0; index < result->GetEntries(); index++) {
1090 TString alienURL = result->GetKey(index,
"turl") ;
1091 cout <<
"================== " << alienURL << endl ;
1092 chain->Add(alienURL) ;
1098 chainxs->Add(alienURL) ;
1102 alienURL.ReplaceAll(
"AliESDs.root",
"pyxsec_hists.root");
1103 alienURL.ReplaceAll(
"AliAOD.root",
"pyxsec_hists.root");
1104 TFile* fxsec = TFile::Open(alienURL);
1107 TKey* key = (TKey*)fxsec->GetListOfKeys()->At(0);
1115 TList *
list =
dynamic_cast<TList*
>(key->ReadObj());
1123 Float_t xsection = ((TProfile*)list->FindObject(
"h1Xsec")) ->GetBinContent(1);
1124 Int_t ntrials = ((TH1F*) list->FindObject(
"h1Trials"))->GetBinContent(1);
1127 xsArr->SetAt(xsection,event);
1128 trArr->SetAt(ntrials,event);
1130 printf(
"recovered xs %f, ntrials %d, event %d\n",xsection,ntrials, event);
1142 TFileCollection* ds= gProof->GetDataSet(
kDatasetPROOF)->GetStagedSubset();
1144 gROOT->LoadMacro(
"/afs/in2p3.fr/group/alice/laf/dataset_management/CreateChainFromDataSet.C");
1146 printf(
"chain has %d entries\n",chain->GetEntries());
1149 gSystem->ChangeDirectory(ocwd.Data());
1161 Bool_t bRecalibrate = kFALSE;
1162 Bool_t bBadChannel = kFALSE;
1164 for (
int i=0; i< gApplication->Argc();i++){
1168 printf(
"Arg %d: %s\n",i,gApplication->Argv(i));
1174 if (!(strcmp(gApplication->Argv(i),
"--trigger")))
1175 sprintf(trigger,gApplication->Argv(i+1));
1177 if (!(strcmp(gApplication->Argv(i),
"--recalibrate")))
1178 bRecalibrate = atoi(gApplication->Argv(i+1));
1180 if (!(strcmp(gApplication->Argv(i),
"--badchannel")))
1181 bBadChannel = atoi(gApplication->Argv(i+1));
1183 if (!(strcmp(gApplication->Argv(i),
"--run")))
1185 sRun = gApplication->Argv(i+1);
1186 if(sRun.Contains(
"LHC10")) {
1191 kRun = atoi(gApplication->Argv(i+1));
1193 else printf(
"** Run number already set to %d, do not set to %d\n",
kRun,atoi(gApplication->Argv(i+1)));
1199 if(!sRun.Contains(
"LHC10"))
1206 else if(
kRun < 170600)
1220 printf(
"*********************************************\n");
1224 printf(
"*********************************************\n");
1245 Double_t xsection = 0 ;
1246 UInt_t ntrials = 0 ;
1254 nfiles = tree->GetEntries() ;
1256 tree->SetBranchAddress(
"xsection",&xsection);
1257 tree->SetBranchAddress(
"ntrials" ,&ntrials );
1258 for(Int_t i = 0; i < nfiles; i++)
1267 cout <<
"xsection " <<xsection<<
" ntrials "<<ntrials<<endl;
1272 nfiles =
xsArr->GetSize();
1274 for(Int_t i = 0; i < nfiles; i++)
1276 if(
xsArr->GetAt(i) > 0)
1278 xs +=
xsArr->GetAt(i) ;
1279 ntr +=
trArr->GetAt(i) ;
1282 cout <<
"xsection " <<
xsArr->GetAt(i)<<
" ntrials "<<
trArr->GetAt(i)<<endl;
1289 cout <<
"-----------------------------------------------------------------"<<endl;
1290 cout <<
"Average of "<< n <<
" files: xsection " <<xs<<
" ntrials "<<ntr<<endl;
1291 cout <<
"-----------------------------------------------------------------"<<endl;
Analyze locally files in your computer.
void ana(Int_t mode=mGRID)
anaModes
Different analysis modes.
Bool_t GetAverageXsection(TTree *tree, Double_t &xs, Float_t &ntr, Int_t &n)
void LoadLibraries(Int_t mode)
Load analysis libraries.
Count events with different selection criteria.
void CreateChain(const anaModes mode, TChain *chain, TChain *chainxs)
Fills chain with data files paths.
Bool_t kPrint
Global variables to be accessed by the different methods.
char * kPattern
Global, path to data files.
TArrayF * xsArr
Name of file with pT-hard cross sections.
AliAnalysisAlien * CreateAlienHandler()
Int_t kYear
ESD, AOD, MC, deltaAOD.
void CheckEnvironmentVariables()
TString kTreeName
Some tasks doesnt need it.
void CheckInputData(const anaModes mode)
Sets input data and tree strings.
AliAnalysisTaskCounter * AddTaskCounter(const TString trigger="", Bool_t xsOn=kFALSE)
AliAnalysisTaskEMCALClusterize * AddTaskEMCALClusterize(TString &arrayName, const Bool_t bFillAOD=kFALSE, const Int_t bMC=kFALSE, const Bool_t exotic=kTRUE, const TString name="V1Unfold", const TString trigger="", const Bool_t tm=kTRUE, const Int_t minEcell=50, const Int_t minEseed=100, const Int_t maxDeltaT=250, const Int_t timeWindow=1000, const Int_t minEUnf=15, const Int_t minFrac=1, const Bool_t bRecalE=kTRUE, const Bool_t bBad=kTRUE, const Bool_t bRecalT=kTRUE, const Bool_t bNonLine=kFALSE, const Int_t minCen=-1, const Int_t maxCen=-1, const Float_t clusterEnergyCutEvent=-1, const Int_t nRowDiff=1, const Int_t nColDiff=1, const Bool_t skipOrReject=kFALSE)
Analyze files on GRID with Plugin.
Analyze files on GRID with Plugin.
void SetupPar(char *pararchivename)
Main class conecting the CaloTrackCorrelations package and Analysis Frame.
const char * kXSFileName
Global name for the xml collection file with data on grid.
AliAnalysisTaskCaloTrackCorrelation * AddTaskCaloTrackCorr(const TString data="", const TString calorimeter="EMCAL", const Bool_t simulation=kFALSE, const Bool_t eventsel=kFALSE, const Bool_t exotic=kTRUE, const Bool_t nonlin=kFALSE, TString outputfile="", const Int_t year=2010, const TString col="pp", const TString trigger="MB", const TString clustersArray="V1", const Bool_t mix=kTRUE, const Bool_t recaltm=kTRUE, const Bool_t tm=kTRUE, const Int_t minCen=-1, const Int_t maxCen=-1, const Bool_t qaan=kFALSE, const Bool_t hadronan=kFALSE, const Bool_t calibE=kTRUE, const Bool_t badmap=kTRUE, const Bool_t calibT=kTRUE, const Bool_t tender=kFALSE, const Bool_t outputAOD=kFALSE, const Bool_t printSettings=kFALSE, const Double_t scaleFactor=-1, const Int_t runNumber=-1)
Int_t kFile
Data are in files kInDir/kPattern+i.
TString kInputData
With real data kMC = kFALSE.
Reclusterize EMCal clusters, put them in a new branch for other following analysis.
char * kDatasetPROOF
Number of files to analyze in local mode.