1 // Functions used to access input files - shared by several macros
3 //______________________________________________________________________
5 // Checks gAlice to see that ITS and the ITS geometry are properly
6 // defined. If not return kFALSE and deletes gAlice and set it to zero.
11 // gAlice defined check to see if ITS is properly defined.
12 AliITS *ITS = (AliITS*)gAlice->GetDetector("ITS");
13 if(!ITS){ // ITS not defined, delete and reload gAlice
19 if(!(ITS->GetITSgeom())){
23 } // end if !(ITS->GetITSgeom())
24 // ITS and ITS geometry properly defined defined.
27 //______________________________________________________________________
28 AliRunLoader* AccessFile(TString FileName){
29 // Function used to open the input file and fetch the AliRun object
31 AliRunLoader* rl = AliRunLoader::Open(FileName.Data());
33 cerr<<"AccessFile : Can not open session RL=NULL"<< endl;
37 Int_t retval = rl->LoadgAlice();
39 cerr<<"AccessFile : LoadgAlice returned error"<<endl;