]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
The weird problem that destroys gAlice when trying to get a task from the file (Branc...
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2002 15:43:56 +0000 (15:43 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2002 15:43:56 +0000 (15:43 +0000)
PHOS/AliPHOSDigitizer.cxx

index 568c01598d5494e70f9ef9943ee96acacf1b0c07..b91ea5435771b1ed9fb079486e3979d491fcad16 100644 (file)
@@ -108,8 +108,8 @@ AliPHOSDigitizer::AliPHOSDigitizer(const char *headerFile,const char * name)
 AliPHOSDigitizer::AliPHOSDigitizer(AliRunDigitizer * ard):AliDigitizer(ard)
 {
   // ctor
-  SetName("");     //Will call init in the digitizing
-  SetTitle("aliroot") ;
+  InitParameters() ; 
+  
 }
 
 //____________________________________________________________________________ 
@@ -148,12 +148,11 @@ void AliPHOSDigitizer::Digitize(const Int_t event)
   // contribution to new SDigits only.
 
   AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ; 
 TClonesArray * digits = gime->Digits(GetName()) ; 
+ TClonesArray * digits = gime->Digits(GetName()) ; 
 
   digits->Clear() ;
 
   const AliPHOSGeometry *geom = gime->PHOSGeometry() ; 
-
   //Making digits with noise, first EMC
   Int_t nEMC = geom->GetNModules()*geom->GetNPhi()*geom->GetNZ();
   
@@ -167,7 +166,7 @@ void AliPHOSDigitizer::Digitize(const Int_t event)
   digits->Expand(nCPV) ;
 
   // get first the sdigitizer from the tasks list (must have same name as the digitizer)
-  const AliPHOSSDigitizer * sDigitizer = gime->SDigitizer(GetName()); 
+  const AliPHOSSDigitizer * sDigitizer = new AliPHOSSDigitizer() ; //gime->SDigitizer(GetName()); 
   if ( !sDigitizer) {
     cerr << "ERROR: AliPHOSDigitizer::Digitize -> SDigitizer with name " << GetName() << " not found " << endl ; 
     abort() ; 
@@ -380,7 +379,6 @@ void AliPHOSDigitizer::Exec(Option_t *option)
 
   if(strcmp(GetName(), "") == 0 )   
     Init() ;
-  
   if (strstr(option,"print")) {
     Print("");
     return ; 
@@ -440,15 +438,17 @@ void AliPHOSDigitizer::Exec(Option_t *option)
   for(ievent = 0; ievent < nevents; ievent++){
   
     if(fManager){
+
       Int_t input ;
       for(input = 0 ; input < fManager->GetNinputs(); input ++){
        TTree * treeS = fManager->GetInputTreeS(input) ;
        if(!treeS){
-         cerr << "AliPHOSDigitizer -> No Input " << endl ;
+         cerr << "AliPHOSDigitizer::Exec -> No Input " << endl ;
          return ;
        }
        gime->ReadTreeS(treeS,input) ;
       }
+
     }
     else
       gime->Event(ievent,"S") ;
@@ -505,6 +505,7 @@ Bool_t AliPHOSDigitizer::Init()
   } 
   
   const AliPHOSGeometry * geom = gime->PHOSGeometry() ;
+
   fEmcCrystals = geom->GetNModules() *  geom->GetNCristalsInModule() ;
   
   // Post Digits to the white board