5 #include "ListDirectories.h"
9 const char * GetLocalFileName1(Int_t run, const char * path);
10 const char * GetLocalFileName2(Int_t run, const char * path);
11 //---------------------------------------------------------
14 void copyStatisticFiles() {
24 TGrid::Connect("alien://");
26 // do not use scientific notation for run number
27 TGaxis::SetMaxDigits(7) ;
30 // loop over all files
33 Int_t ifileNotEmpty = 0;
34 while (runs[++ifile] > 0) {
37 //loop over two root files
38 for(Int_t i=0;i<2;++i){
40 Long_t *id,*size,*flags,*mt;
47 TFile *fc=0; // centrality, only in local mode for the time being
49 cout<<"location.Data()="<<location.Data()<<endl;
50 cout<<"runs[ifile]="<<runs[ifile]<<endl;
51 //cout<<" output.Data()="<<output.Data()<<endl;
56 file.Form("alien://%s/000%d/HighPtDeDx_Tree.root",location.Data(),runs[ifile] );
58 Printf("\nBegin of reading: %s", file.Data());
60 gSystem->Exec(Form("alien_cp %s %s",file.Data(), GetLocalFileName1(runs[ifile], localPath)));
61 cout << Form("alien_cp %s %s",file.Data(), GetLocalFileName1(runs[ifile], localPath)) <<endl;
64 file.Form("alien://%s/000%d/HighPtDeDxV0_Tree.root",location.Data(),runs[ifile] );
66 Printf("\nBegin of reading: %s", file.Data());
68 gSystem->Exec(Form("alien_cp %s %s",file.Data(), GetLocalFileName2(runs[ifile], localPath)));
69 cout << Form("alien_cp %s %s",file.Data(), GetLocalFileName2(runs[ifile], localPath)) <<endl;
78 //gSystem->Exec(Form("alien_cp %s %s",file2.Data(), GetLocalFileName2(runs[ifile], localSuffix, localPath)));
79 //cout << Form("alien_cp %s %s",file2.Data(), GetLocalFileName2(runs[ifile], localSuffix, localPath)) <<endl;
85 const char * GetLocalFileName1(Int_t run, const char * path) {
86 // returns the filename of the local copy of the event_stat file
88 // name.Form("%s/event_stat_%s_%d.root", path, suffix, run);
89 name.Form("%s/HighPtDeDx_Tree_%d.root", path, run);
93 const char * GetLocalFileName2(Int_t run, const char * path) {
94 // returns the filename of the local copy of the event_stat file
96 // name.Form("%s/event_stat_%s_%d.root", path, suffix, run);
97 name.Form("%s/HighPtDeDxV0_Tree_%d.root", path, run);
104 gSystem->Load("libVMC");
105 gSystem->Load("libTree");
106 gSystem->Load("libSTEERBase");
107 gSystem->Load("libESD");
108 gSystem->Load("libAOD");
109 gSystem->Load("libANALYSIS");
110 gSystem->Load("libANALYSISalice");
111 gSystem->Load("libCORRFW");
112 gSystem->Load("libMinuit");
113 gSystem->Load("libPWG2spectra");
114 gSystem->Load("libPWG0base");