]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsDigitize.cxx
commented define _ClusterTopology_ - to be used only for the special productions
[u/mrichter/AliRoot.git] / ITS / AliITSsDigitize.cxx
index 6a9e63298001fe6bf59ab3f5c7492252008ae261..4cc93c9db1b85d3d766e58706354f13c65e6186d 100644 (file)
@@ -35,6 +35,9 @@
 //                                                     //
 //                                                     //
 ///////////////////////////////////////////////////////// 
+
+using std::endl;
+using std::cout;
 ClassImp(AliITSsDigitize)
 //______________________________________________________________________
 AliITSsDigitize::AliITSsDigitize():
@@ -124,7 +127,7 @@ Bool_t AliITSsDigitize::Init(){
  
     fDet[0] = fDet[1] = fDet[2] = kTRUE;
     fEnt0 = 0;
-    fEnt  = AliRunLoader::GetRunLoader()->GetNumberOfEvents(); 
+    fEnt  = AliRunLoader::Instance()->GetNumberOfEvents(); 
  
     AliLoader* loader = fRunLoader->GetLoader("ITSLoader");
     
@@ -155,7 +158,7 @@ Bool_t AliITSsDigitize::InitSDig() const {
 }
  
 //______________________________________________________________________
-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.
@@ -164,9 +167,14 @@ void AliITSsDigitize::Exec(const Option_t *opt){
     // 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{
@@ -179,7 +187,7 @@ void AliITSsDigitize::Exec(const Option_t *opt){
     } // 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