5 printf("*** Connect to AliEn ***\n");
6 TGrid::Connect("alien://");
7 gSystem->Load("libProofPlayer");
8 gSystem->Load("libVMC");
10 // Use precompiled libraries for the analysis framework
11 gSystem->Load("libSTEERBase");
12 gSystem->Load("libVMC");
13 gSystem->Load("libESD");
14 gSystem->Load("libAOD");
15 gSystem->Load("libANALYSIS");
16 gSystem->Load("libANALYSISalice");
18 // Use par files only for PWG2 code
20 //____________________________________________________//
21 //_____________Setting up PWG2AOD.par_________________//
22 //____________________________________________________//
24 gSystem->Load("libPWG2AOD");
26 //____________________________________________________//
27 //_____________Setting up PWG2femtoscopy.par__________//
28 //____________________________________________________//
29 setupPar("PWG2femtoscopy");
30 gSystem->Load("libPWG2femtoscopy");
32 //____________________________________________________//
33 //_____________Setting up PWG2femtoscopyUser.par______//
34 //____________________________________________________//
35 setupPar("PWG2femtoscopyUser");
36 gSystem->Load("libPWG2femtoscopyUser");
39 const char *collectionfile="wn.xml";
41 //____________________________________________//
43 AliTagAnalysis *analysis = new AliTagAnalysis();
45 chain = analysis->GetChainFromCollection(collectionfile,"esdTree");
47 //____________________________________________//
48 // Make the analysis manager
49 AliAnalysisManager *mgr = new AliAnalysisManager("TestManager");
50 AliESDInputHandler* esdH = new AliESDInputHandler;
51 esdH->SetInactiveBranches("FMD CaloCluster");
52 mgr->SetInputEventHandler(esdH);
54 AliMCEventHandler *mcH = new AliMCEventHandler;
55 mgr->SetMCtruthEventHandler(mcH);
57 //____________________________________________//
59 gROOT->LoadMacro("AddTaskFemto.C");
60 AliAnalysisTaskFemto *taskfemto = AddTaskFemto();
62 //____________________________________________//
64 if (!mgr->InitAnalysis()) return;
66 mgr->StartAnalysis("local",chain);
72 Int_t setupPar(const char* pararchivename) {
77 char processline[1024];
78 sprintf(processline,".! tar xvzf %s.par",pararchivename);
79 gROOT->ProcessLine(processline);
80 const char* ocwd = gSystem->WorkingDirectory();
81 gSystem->ChangeDirectory(pararchivename);
83 // check for BUILD.sh and execute
84 if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) {
85 printf("*******************************\n");
86 printf("*** Building PAR archive ***\n");
87 printf("*******************************\n");
89 if (gSystem->Exec("PROOF-INF/BUILD.sh")) {
90 Error("runProcess","Cannot Build the PAR Archive! - Abort!");
94 // check for SETUP.C and execute
95 if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) {
96 printf("*******************************\n");
97 printf("*** Setup PAR archive ***\n");
98 printf("*******************************\n");
99 gROOT->Macro("PROOF-INF/SETUP.C");
102 gSystem->ChangeDirectory("../");