fNPileUpClusters(-1), fNNonPileUpClusters(-1), fNPileUpClustersCut(3),
fVertexBC(-200), fRecalculateVertexBC(0),
fCentralityClass(""), fCentralityOpt(0),
-fEventPlaneMethod(""), fImportGeometryFromFile(kFALSE), fImportGeometryFilePath(""),
+fEventPlaneMethod(""),
fAcceptOnlyHIJINGLabels(0), fNMCProducedMin(0), fNMCProducedMax(0),
fFillInputNonStandardJetBranch(kFALSE),
fNonStandardJets(new TClonesArray("AliAODJet",100)),fInputNonStandardJetBranchName("jets"),
fReadStack = kFALSE;
fReadAODMCParticles = kFALSE;
}
-
- // Init geometry, I do not like much to do it like this ...
- if(fImportGeometryFromFile && !gGeoManager)
- {
- if(fImportGeometryFilePath=="") // If not specified, set a default location
- fImportGeometryFilePath = "$ALICE_ROOT/OADB/EMCAL/geometry_2011.root"; // "$ALICE_ROOT/EVE/alice-data/default_geo.root"
-
- printf("AliCaloTrackReader::Init() - Import %s\n",fImportGeometryFilePath.Data());
- TGeoManager::Import(fImportGeometryFilePath) ; // default need file "geometry.root" in local dir!!!!
- }
-
+
if(!fESDtrackCuts)
fESDtrackCuts = AliESDtrackCuts::GetStandardTPCOnlyTrackCuts(); //initialize with TPC only tracks
fTriggerAnalysis = new AliTriggerAnalysis;
fAODBranchList = new TList ;
- fImportGeometryFromFile = kFALSE;
-
fPileUpParamSPD[0] = 3 ; fPileUpParamSPD[1] = 0.8 ;
fPileUpParamSPD[2] = 3.0 ; fPileUpParamSPD[3] = 2.0 ; fPileUpParamSPD[4] = 5.0;
virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
- void SetImportGeometryFromFile(Bool_t import,
- TString path = "") {
- fImportGeometryFromFile = import ;
- fImportGeometryFilePath = path ; }
-
//------------------------------------------------
// MC analysis specific methods
//-------------------------------------------------
Int_t fCentralityOpt; // Option for the returned value of the centrality, possible options 5, 10, 100
Int_t fCentralityBin[2]; // Minimum and maximum value of the centrality for the analysis
TString fEventPlaneMethod; // Name of event plane method, by default "Q"
-
- Bool_t fImportGeometryFromFile; // Import geometry settings in geometry.root file
- TString fImportGeometryFilePath; // path fo geometry.root file
Bool_t fAcceptOnlyHIJINGLabels; // Select clusters or tracks that where generated by HIJING, reject other generators in case of cocktail
Int_t fNMCProducedMin; // In case of cocktail, select particles in the list with label from this value
AliCaloTrackReader( const AliCaloTrackReader & r) ; // cpy ctor
AliCaloTrackReader & operator = (const AliCaloTrackReader & r) ; // cpy assignment
- ClassDef(AliCaloTrackReader,61)
+ ClassDef(AliCaloTrackReader,62)
} ;
fOADBFilePathEMCAL = "$ALICE_ROOT/OADB/EMCAL" ;
fOADBFilePathPHOS = "$ALICE_ROOT/OADB/PHOS" ;
+ fImportGeometryFromFile = kTRUE;
+ fImportGeometryFilePath = "";
+
}
fEMCALGeo = AliEMCALGeometry::GetInstance(fEMCALGeoName);
+ // Init geometry, I do not like much to do it like this ...
+ if(fImportGeometryFromFile && !gGeoManager)
+ {
+ if(fImportGeometryFilePath=="") // If not specified, set location depending on run number
+ {
+ // "$ALICE_ROOT/EVE/alice-data/default_geo.root"
+ if (runnumber < 140000 &&
+ runnumber >= 100000) fImportGeometryFilePath = "$ALICE_ROOT/OADB/EMCAL/geometry_2010.root";
+ if (runnumber >= 140000 &&
+ runnumber < 171000) fImportGeometryFilePath = "$ALICE_ROOT/OADB/EMCAL/geometry_2011.root";
+ else fImportGeometryFilePath = "$ALICE_ROOT/OADB/EMCAL/geometry_2012.root"; // 2012-2013
+
+ }
+ printf("AliCalorimeterUtils::InitEMCALGeometry() - Import %s\n",fImportGeometryFilePath.Data());
+ TGeoManager::Import(fImportGeometryFilePath) ; // default need file "geometry.root" in local dir!!!!
+ }
+
+
if(fDebug > 0)
{
printf("AliCalorimeterUtils::InitEMCALGeometry(run=%d)",runnumber);
void AccessGeometry(AliVEvent* inputEvent) ;
+ void SetImportGeometryFromFile(Bool_t import,
+ TString path = ""){
+ fImportGeometryFromFile = import ;
+ fImportGeometryFilePath = path ; } // EMCAL
+
void SwitchOnLoadOwnEMCALGeometryMatrices() { fLoadEMCALMatrices = kTRUE ; }
void SwitchOffLoadOwnEMCALGeometryMatrices() { fLoadEMCALMatrices = kFALSE ; }
void SetEMCALGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fEMCALMatrix[i] = m ; }
Bool_t fOADBForPHOS ; // Get calibration from OADB for PHOS
TString fOADBFilePathEMCAL ; // Default path $ALICE_ROOT/OADB/EMCAL, if needed change
TString fOADBFilePathPHOS ; // Default path $ALICE_ROOT/OADB/PHOS, if needed change
-
+ Bool_t fImportGeometryFromFile;// Import geometry settings in geometry.root file
+ TString fImportGeometryFilePath;// path fo geometry.root file
+
AliCalorimeterUtils( const AliCalorimeterUtils & cu) ; // cpy ctor
AliCalorimeterUtils & operator = (const AliCalorimeterUtils & cu) ; // cpy assignment
- ClassDef(AliCalorimeterUtils,14)
+ ClassDef(AliCalorimeterUtils,15)
} ;