void SetTriggerClass(const char*name, Int_t index) {fESDRun->SetTriggerClass(name,index);}
void SetPHOSMatrix(TGeoHMatrix*matrix, Int_t i) {fESDRun->SetPHOSMatrix(matrix,i);}
const TGeoHMatrix* GetPHOSMatrix(Int_t i) const {return fESDRun->GetPHOSMatrix(i);}
-
+ void SetEMCALMatrix(TGeoHMatrix*matrix, Int_t i) {fESDRun->SetEMCALMatrix(matrix,i);}
+ const TGeoHMatrix* GetEMCALMatrix(Int_t i) const {return fESDRun->GetEMCALMatrix(i);}
// HEADER
AliESDHeader* GetHeader() const {return fHeader;}
fDiamondCovXY[1]=0.;
fTriggerClasses.SetOwner(kTRUE);
for (Int_t m=0; m<kNPHOSMatrix; m++) fPHOSMatrix[m]=NULL;
+ for (Int_t sm=0; sm<kNEMCALMatrix; sm++) fEMCALMatrix[sm]=NULL;
}
//______________________________________________________________________________
else
fPHOSMatrix[m]=NULL;
}
+
+ for(Int_t sm=0; sm<kNEMCALMatrix; sm++){
+ if(esd.fEMCALMatrix[sm])
+ fEMCALMatrix[sm]=new TGeoHMatrix(*(esd.fEMCALMatrix[sm])) ;
+ else
+ fEMCALMatrix[sm]=NULL;
+ }
}
//______________________________________________________________________________
else
fPHOSMatrix[m]=0;
}
+
+ for(Int_t sm=0; sm<kNEMCALMatrix; sm++){
+ if(esd.fEMCALMatrix[sm])
+ fEMCALMatrix[sm]=new TGeoHMatrix(*(esd.fEMCALMatrix[sm])) ;
+ else
+ fEMCALMatrix[sm]=0;
+ }
}
return *this;
}
if(fPHOSMatrix[m]) delete fPHOSMatrix[m] ;
fPHOSMatrix[m] = NULL;
}
+ // Delete PHOS position matrices
+ for(Int_t sm=0; sm<kNEMCALMatrix; sm++) {
+ if(fEMCALMatrix[sm]) delete fEMCALMatrix[sm] ;
+ fEMCALMatrix[sm] = NULL;
+ }
}
void AliESDRun::SetDiamond(const AliESDVertex *vertex) {
const TGeoHMatrix* GetPHOSMatrix(Int_t i) const {
return ((i >= 0) && (i < kNPHOSMatrix)) ? fPHOSMatrix[i] : NULL;
}
-
+
+ void SetEMCALMatrix(TGeoHMatrix*matrix, Int_t i) {
+ if ((i >= 0) && (i < kNEMCALMatrix)) fEMCALMatrix[i] = matrix;
+ }
+ const TGeoHMatrix* GetEMCALMatrix(Int_t i) const {
+ return ((i >= 0) && (i < kNEMCALMatrix)) ? fEMCALMatrix[i] : NULL;
+ }
+
enum {kNTriggerClasses = 50};
enum {kNPHOSMatrix = 5};
+ enum {kNEMCALMatrix = 12};
private:
Double32_t fMagneticField; // Solenoid Magnetic Field in kG : for compatibility with AliMagF
Int_t fRecoVersion; // Version of reconstruction
TObjArray fTriggerClasses; // array of TNamed containing the names of the active trigger classes
TGeoHMatrix* fPHOSMatrix[kNPHOSMatrix]; //PHOS module position and orientation matrices
+ TGeoHMatrix* fEMCALMatrix[kNEMCALMatrix]; //EMCAL supermodule position and orientation matrices
- ClassDef(AliESDRun,4)
+ ClassDef(AliESDRun,5)
};
#endif