, fCellMatchdEta(), fCellMatchdPhi()
, fMaxEvent(1000000000), fDoTrackMatching(kFALSE)
, fSelectCell(kFALSE), fSelectCellMinE(0.005), fSelectCellMinFrac(0.001)
-, fRemoveLEDEvents(kFALSE), fRemoveExoticEvents(kFALSE)
-
+, fRemoveLEDEvents(kFALSE), fRemoveExoticEvents(kFALSE)
+, fImportGeometryFromFile(kFALSE), fImportGeometryFilePath("")
{
//ctor
for(Int_t i = 0; i < 10; i++) fGeomMatrix[i] = 0;
, fMaxEvent(1000000000), fDoTrackMatching(kFALSE)
, fSelectCell(kFALSE), fSelectCellMinE(0.005), fSelectCellMinFrac(0.001)
, fRemoveLEDEvents(kFALSE), fRemoveExoticEvents(kFALSE)
+, fImportGeometryFromFile(kFALSE), fImportGeometryFilePath("")
{
// Constructor
for(Int_t i = 0; i < 10; i++) fGeomMatrix[i] = 0;
return kTRUE;
}
-//_______________________________________________________________________
+//_____________________________________________________
void AliAnalysisTaskEMCALClusterize::CheckAndGetEvent()
{
// Get the input event, it can depend in embedded events what you want to get
}
+ // Init geometry, I do not like much to do it like this ...
+ if(fImportGeometryFromFile && !gGeoManager) {
+ printf("AliAnalysisTaskEMCALClusterize::Init() - Import geometry.root file\n");
+ TGeoManager::Import(Form("%s/geometry.root", fImportGeometryFilePath.Data())) ; // default need file "geometry.root" in local dir!!!!
+ }
+
}
//_______________________________________________________
void SwitchOffLoadOwnGeometryMatrices() { fLoadGeomMatrices = kFALSE ; }
void SetGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fGeomMatrix[i] = m ; }
+ void SetImportGeometryFromFile(Bool_t im,
+ TString pa = ".") {
+ fImportGeometryFromFile = im ;
+ fImportGeometryFilePath = pa ; }
+
//AOD methods
void SetAODBranchName(TString &name) { fOutputAODBranchName = name ; }
void FillAODFile(Bool_t yesno) { fFillAODFile = yesno ; }
Bool_t fRemoveLEDEvents; // Remove LED events, use only for LHC11a
Bool_t fRemoveExoticEvents; // Remove exotic events
- ClassDef(AliAnalysisTaskEMCALClusterize, 16);
+ Bool_t fImportGeometryFromFile; // Import geometry settings in geometry.root file
+ TString fImportGeometryFilePath; // path fo geometry.root file
+
+
+ ClassDef(AliAnalysisTaskEMCALClusterize, 17);
};