- // Get AliRun object from file
- if (!gAlice){
- gAlice = (AliRun*)file->Get("gAlice");
- if (gAlice)cout<<"AliRun object found on file "<<DigitsFile<<endl;
- if(!gAlice){
- cout<<"Can't access AliRun object on file "<<DigitsFile<<endl;
- cout<<"Macro execution stopped!!!"<<endl;
- exit(1);
- }//end if
- }//end if
- gAlice->SetTreeDFileName(DigitsFile);
- // Long_t nparticles = gAlice->GetEvent(0);
-
- //Int_t nparticles = gAlice->GetEvent(0);
- //
- // ITS
- AliITS *ITS = (AliITS*)gAlice->GetModule("ITS");
- Int_t nmodules;
- ITS->InitModules(-1,nmodules);
- cout<<"Number of ITS modules= "<<nmodules<<endl;
- //cout<<"Filling modules... It takes a while, now. Please be patient"<<endl;
- //ITS->FillModules(0,0,nmodules," "," ");
- //cout<<"ITS modules .... DONE!"<<endl;
- // DIGITS
-
-
- TTree* TD = (TTree*)file->Get("TreeD0");
- if (TD == 0x0){
- ::Error("DDLRawData","Can not find tree with ITS digits");
- return;
- }//end if
- ITS->SetTreeAddressD(TD);
-
-
- //TTree *TD = gAlice->TreeD();
-