]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
constructor (AliDigitizer*) modified
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2001 20:30:32 +0000 (20:30 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2001 20:30:32 +0000 (20:30 +0000)
PHOS/AliPHOSDigitizer.cxx

index 9edd6e8a07ce99b95c4e73b2505c73eca3720367..651c01bbdc42056d6688c35aaf8f409e573abe9b 100644 (file)
@@ -123,7 +123,6 @@ AliPHOSDigitizer::AliPHOSDigitizer(AliRunDigitizer * ard)
   fARD = ard ;
   SetName("Default");
   SetTitle("aliroot") ;
-  Init() ;
   
 }
 
@@ -146,7 +145,7 @@ void AliPHOSDigitizer::Digitize(const Int_t event)
   // This design avoids scanning over the list of digits to add 
   // contribution to new SDigits only.
 
-  if( strcmp(GetName(), "") == 0 )
+  if( !AliPHOSGetter::GetInstance())
     Init() ;
 
   AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;