AliPHOSDigitizer::AliPHOSDigitizer(const char *headerFile,const char * name)
{
// ctor
- SetName(name) ;
SetTitle(headerFile) ;
+ SetName(name) ;
fManager = 0 ; // We work in the standalong mode
fSplitFile= 0 ;
InitParameters() ;
AliPHOSDigitizer::AliPHOSDigitizer(AliRunDigitizer * ard):AliDigitizer(ard)
{
// ctor
+ SetTitle("aliroot") ;
+ SetName("Default") ;
InitParameters() ;
}
// contribution to new SDigits only.
AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
- TClonesArray * digits = gime->Digits(GetName()) ;
+ TClonesArray * digits = gime->Digits(GetName()) ;
digits->Clear() ;
TClonesArray * sdigits = 0 ;
Int_t input = 0 ;
TObjArray * sdigArray = new TObjArray(2) ;
- while ( (folder = (TFolder*)next()) )
+ while ( (folder = (TFolder*)next()) ) {
if ( (sdigits = (TClonesArray*)folder->FindObject(GetName()) ) ) {
TString fileName(folder->GetName()) ;
fileName.ReplaceAll("_","/") ;
sdigArray->AddAt(sdigits, input) ;
input++ ;
}
+ }
//Find the first crystall with signal
Int_t nextSig = 200000 ;
fTimeThreshold = 0.001*10000000 ; //Means 1 MeV in terms of SDigits amplitude
- if(fManager)
- SetTitle("aliroot") ;
- else if (strcmp(GetTitle(),"")==0)
- SetTitle("galice.root") ;
-
- if( strcmp(GetName(), "") == 0 )
- SetName("Default") ;
}
//__________________________________________________________________