// //
// //
/////////////////////////////////////////////////////////
+
+using std::endl;
+using std::cout;
ClassImp(AliITSsDigitize)
//______________________________________________________________________
AliITSsDigitize::AliITSsDigitize():
fDet[0] = fDet[1] = fDet[2] = kTRUE;
fEnt0 = 0;
- fEnt = AliRunLoader::GetRunLoader()->GetNumberOfEvents();
+ fEnt = AliRunLoader::Instance()->GetNumberOfEvents();
AliLoader* loader = fRunLoader->GetLoader("ITSLoader");
}
//______________________________________________________________________
-void AliITSsDigitize::Exec(const Option_t *opt){
+void AliITSsDigitize::Digitize(const Option_t *opt){
// Main SDigitization function.
// Inputs:
// Option_t * opt list of subdetector to digitize. =0 all.
// Return:
// none.
Option_t *lopt;
-// Int_t nparticles,evnt;
-
- if(strstr(opt,"All")||strstr(opt,"ALL")||strstr(opt,"ITS")||opt==0){
+ Bool_t condition =kFALSE;
+ if(opt){
+ if(strstr(opt,"All")||strstr(opt,"ALL")||strstr(opt,"ITS"))condition =kTRUE;
+ }
+ else{
+ condition = kTRUE;
+ }
+ if(condition){
fDet[0] = fDet[1] = fDet[2] = kTRUE;
lopt = "All";
}else{
} // end if strstr(opt,...)
if(!fInit){
- cout << "Initilization Failed, Can't run Exec." << endl;
+ cout << "Initilization Failed, Can't run Digitize." << endl;
return;
} // end if !fInit