- // Makes all memory allocations
-
- fSDigitizer = 0 ;
- fNinputs = 1 ;
- fPinNoise = 0.01 ;
- fEMCDigitThreshold = 0.01 ;
- fTimeResolution = 0.5e-9 ;
- fTimeSignalLength = 1.0e-9 ;
- fPreShowerDigitThreshold = fEMCDigitThreshold/100. ;
- fInitialized = kFALSE ;
- fADCchannelTower = 0.0030; // width of one ADC channel in GeV
- fADCpedestalTower = 0.005 ; //
- fNADCTower = (Int_t) TMath::Power(2,16) ; // number of channels in Tower ADC
-
- fADCchannelPreSho = 0.0030 ; // width of one ADC channel in Pre Shower
- fADCpedestalPreSho = 0.005 ; //
- fNADCPreSho = (Int_t) TMath::Power(2,16); // number of channels in Pre ShowerADC
-
- 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") ;
-
- AliEMCALGetter * gime = AliEMCALGetter::GetInstance(GetTitle(), GetName(), "update") ;
- if ( gime == 0 ) {
- cerr << "ERROR: AliEMCALDigitizer::Init -> Could not obtain the Getter object !" << endl ;
- return kFALSE;
- }
-
- //const AliEMCALGeometry * geom = gime->EMCALGeometry() ;
- //fEmcCrystals = geom->GetNModules() * geom->GetNCristalsInModule() ;
-
- // Post Digits to the white board
- gime->PostDigits(GetName() ) ;
-
- // Post Digitizer to the white board
- gime->PostDigitizer(this) ;
-
- //Mark that we will use current header file
- if(!fManager){
- gime->PostSDigits(GetName(),GetTitle()) ;
- gime->PostSDigitizer(GetName(),GetTitle()) ;
- }
- return kTRUE ;
-
-
-