return ;
AliEMCALGeometry * emcalgeo = AliEMCALGeometry::GetInstance(emcalGeoName) ;
- if(!emcalgeo)
- AliFatal("AliEMCALGeometry was not constructed\n") ;
+ if(emcalgeo){
Double32_t * cellsAmpFraction = GetCellsAmplitudeFraction();
Int_t iSupMod = -1;
SetCellsAmplitudeFraction(cellsAmpFraction);
fRecalibrated=kTRUE;
+
+ }
+ else AliFatal("AliEMCALGeometry was not constructed\n") ;
+
}
//____________________________________________________________________________
void AliEMCALAodCluster::EvalAll(Float_t logWeight, TString geoname){
Double_t zmean = 0.;
AliEMCALGeometry * emcalgeo = AliEMCALGeometry::GetInstance(emcalGeoName) ;
- if(!emcalgeo)
- AliFatal("AliEMCALGeometry was not constructed\n") ;
+ if(emcalgeo){
Double_t dist = TmaxInCm(E(),0);
for(Int_t iDigit=0; iDigit < GetNCells(); iDigit++) {
TVector3 gpos ;
emcalgeo->GetGlobal(clXYZ, gpos, iSupMod);
- SetPosition(0,gpos[0]) ;
- SetPosition(1,gpos[1]) ;
- SetPosition(2,gpos[2]) ;
+ SetPositionAt(gpos[0],0) ;
+ SetPositionAt(gpos[1],1) ;
+ SetPositionAt(gpos[2],2) ;
//Calculate dispersion
for(Int_t iDigit=0; iDigit < GetNCells(); iDigit++) {
SetDispersion(TMath::Sqrt(d)) ;
else
SetDispersion(0) ;
+ }
+ else {
+ AliFatal("AliEMCALGeometry was not constructed\n") ;
+ }
+
}