#include "TClonesArray.h"
// --- Standard library ---
-#include <stdio.h>
// --- AliRoot header files ---
fMaxTrack = 0 ;
fTheta = fPhi = 0. ;
fEMCALArm = 0;
- fPRESection = fECALSection = fHCALSection = kFALSE ;
+ fPRESection = fECASection = fHCASection = kFALSE ;
}
//____________________________________________________________________________
case kButton1Down:{
AliEMCALDigit * digit ;
- AliEMCALGetter * gime = AliEMCALGetter::GetInstance() ;
- AliEMCALGeometry * emcalgeom = const_cast<AliEMCALGeometry*>(gime->EMCALGeometry());
+ AliEMCALGeometry * emcalgeom = (AliEMCALGetter::Instance())->EMCALGeometry() ;
Int_t iDigit;
Int_t relid[4] ;
}
}
//____________________________________________________________________________
-void AliEMCALRecPoint::EvalAll(Float_t logWeight,TClonesArray * digits) {
+void AliEMCALRecPoint::EvalAll(Float_t logWeight,TClonesArray * digits)
+{
//evaluates (if necessary) all RecPoint data members
EvalPrimaries(digits) ;
if( fEMCALArm == 0){
Int_t relid[4] ;
- AliEMCALGetter * gime = AliEMCALGetter::GetInstance() ;
- AliEMCALGeometry * emcalgeom = const_cast<AliEMCALGeometry*>(gime->EMCALGeometry());
+ AliEMCALGeometry * emcalgeom = (AliEMCALGetter::Instance())->EMCALGeometry();
emcalgeom->AbsToRelNumbering(digit->GetId(), relid) ;
fEMCALArm = relid[0];
{
// returns the position of the cluster in the global reference system of ALICE
- AliEMCALGeometry * emcalgeom = AliEMCALGetter::GetInstance()->EMCALGeometry();
+ AliEMCALGeometry * emcalgeom = AliEMCALGetter::Instance()->EMCALGeometry();
gpos.SetX(fPhi) ;
- if ( IsInECAL() )
- gpos.SetY(emcalgeom->GetIP2ECALSection()) ;
+ if ( IsInECA() )
+ gpos.SetY(emcalgeom->GetIP2ECASection()) ;
else if ( IsInPRE() )
gpos.SetY(emcalgeom->GetIP2PRESection()) ;
- else if ( IsInHCAL() )
- gpos.SetY(emcalgeom->GetIP2HCALSection()) ;
+ else if ( IsInHCA() )
+ gpos.SetY(emcalgeom->GetIP2HCASection()) ;
else
Fatal("GetGlobalPosition", "Unexpected tower section") ;
gpos.SetZ(fTheta) ;