// must be kept public for root persistency purposes,
// but should never be called by the outside world
fParSM[0]=0; fParSM[1]=0; fParSM[2]=0;
+ fEnvelop[0] = 0; fEnvelop[1] = 0; fEnvelop[2] = 0;
+
AliDebug(2, "AliEMCALEMCGeometry : default ctor ");
}
//______________________________________________________________________
fParSM[0]=geom.fParSM[0];
fParSM[1]=geom.fParSM[1];
fParSM[2]=geom.fParSM[2];
+ fEnvelop[0] = geom.fEnvelop[0];
+ fEnvelop[1] = geom.fEnvelop[1];
+ fEnvelop[2] = geom.fEnvelop[2];
+
}
//______________________________________________________________________
AliEMCALGeoUtils::~AliEMCALGeoUtils(void)
{
// dtor
- for(Int_t smod = 0 ; smod < fEMCGeometry->GetNumberOfSuperModules(); smod++){
- if(fkSModuleMatrix[smod])
- delete fkSModuleMatrix[smod] ;
- fkSModuleMatrix[smod]=0 ;
- }
- if(fEMCGeometry){
+ if (fEMCGeometry){
+ for(Int_t smod = 0 ; smod < fEMCGeometry->GetNumberOfSuperModules(); smod++){
+ if(fkSModuleMatrix[smod])
+ delete fkSModuleMatrix[smod] ;
+ fkSModuleMatrix[smod]=0 ;
+ }
delete fEMCGeometry; fEMCGeometry = 0 ;
}
}
// --- AliRoot header files ---
#include "AliEMCALEMCGeometry.h"
+#include "AliEMCALGeoParams.h"
class AliEMCALShishKebabTrd1Module;
#include "AliLog.h"
Int_t fFastOR2DMap[48][64]; // FastOR 2D Map over full EMCal
- TGeoHMatrix* fkSModuleMatrix[12] ; //Orientations of EMCAL super modules
+ TGeoHMatrix* fkSModuleMatrix[AliEMCALGeoParams::fgkEMCALModules] ; //Orientations of EMCAL super modules
ClassDef(AliEMCALGeoUtils,1) // EMCAL geometry class
{
// Get needing module parameters from EMCAL geometry
- TString sn(fGeometry->GetName()); // 2-Feb-05
- sn.ToUpper();
+
if(!fGeometry) {
Warning("GetParameters()"," No geometry ");
return kFALSE;
- }
+ }
+
+ TString sn(fGeometry->GetName()); // 2-Feb-05
+ sn.ToUpper();
-
fga = (Double_t)fGeometry->GetEtaModuleSize();
fgb = (Double_t)fGeometry->GetLongModuleSize();
fgangle = Double_t(fGeometry->GetTrd1Angle())*TMath::DegToRad();