- virtual Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
- virtual Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
- virtual Float_t GetCTSPtMin() const { return fCTSPtMin ; }
-
- virtual void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
- virtual void SetPHOSPtMin(Float_t pt) { fPHOSPtMin = pt ; }
- virtual void SetCTSPtMin(Float_t pt) { fCTSPtMin = pt ; }
-
- //Input setters and getters
-
- Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
- void SwitchOnCTS() {fFillCTS = kTRUE ; }
- void SwitchOffCTS() {fFillCTS = kFALSE ; }
-
- Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
- void SwitchOnEMCAL() {fFillEMCAL = kTRUE ; }
- void SwitchOffEMCAL() {fFillEMCAL = kFALSE ; }
-
- Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
- void SwitchOnPHOS() {fFillPHOS = kTRUE ; }
- void SwitchOffPHOS() {fFillPHOS = kFALSE ; }
-
- Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
- void SwitchOnEMCALCells() {fFillEMCALCells = kTRUE ; }
- void SwitchOffEMCALCells() {fFillEMCALCells = kFALSE ; }
-
- Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
- void SwitchOnPHOSCells() {fFillPHOSCells = kTRUE ; }
- void SwitchOffPHOSCells() {fFillPHOSCells = kFALSE ; }
-
- virtual Bool_t FillInputEvent(const Int_t iEntry, const char *currentFileName) ;
- virtual void FillInputCTS() {;}
- virtual void FillInputEMCAL() {;}
- virtual void FillInputPHOS() {;}
- virtual void FillInputEMCALCells() {;}
- virtual void FillInputPHOSCells() {;}
-
- virtual TObjArray* GetAODCTS() const {return fAODCTS ;}
- virtual TObjArray* GetAODEMCAL() const {return fAODEMCAL ;}
- virtual TObjArray* GetAODPHOS() const {return fAODPHOS ;}
- virtual TNamed* GetEMCALCells() const {return fEMCALCells ;}
- virtual TNamed* GetPHOSCells() const {return fPHOSCells ;}
-
- //Get MC informatio
+ Float_t GetEMCALPtMin() const { return fEMCALPtMin ; }
+ Float_t GetPHOSPtMin() const { return fPHOSPtMin ; }
+ Float_t GetCTSPtMin() const { return fCTSPtMin ; }
+ Float_t GetEMCALPtMax() const { return fEMCALPtMax ; }
+ Float_t GetPHOSPtMax() const { return fPHOSPtMax ; }
+ Float_t GetCTSPtMax() const { return fCTSPtMax ; }
+
+ void SetEMCALPtMin(Float_t pt) { fEMCALPtMin = pt ; }
+ void SetPHOSPtMin (Float_t pt) { fPHOSPtMin = pt ; }
+ void SetCTSPtMin (Float_t pt) { fCTSPtMin = pt ; }
+
+ void SetEMCALPtMax(Float_t pt) { fEMCALPtMax = pt ; }
+ void SetPHOSPtMax (Float_t pt) { fPHOSPtMax = pt ; }
+ void SetCTSPtMax (Float_t pt) { fCTSPtMax = pt ; }
+
+ Float_t GetEMCALEMin() const { return GetEMCALPtMin() ; }
+ Float_t GetPHOSEMin() const { return GetPHOSPtMin() ; }
+ Float_t GetEMCALEMax() const { return GetEMCALPtMax() ; }
+ Float_t GetPHOSEMax() const { return GetPHOSPtMax() ; }
+
+ void SetEMCALEMin (Float_t e) { SetEMCALPtMin(e) ; }
+ void SetPHOSEMin (Float_t e) { SetPHOSPtMin (e) ; }
+ void SetEMCALEMax (Float_t e) { SetEMCALPtMax(e) ; }
+ void SetPHOSEMax (Float_t e) { SetPHOSPtMax (e) ; }
+
+
+ // Fidutial cuts
+ virtual AliFiducialCut * GetFiducialCut() {
+ if(!fFiducialCut) fFiducialCut = new AliFiducialCut();
+ return fFiducialCut ; }
+ virtual void SetFiducialCut(AliFiducialCut * const fc) { fFiducialCut = fc ; }
+ virtual Bool_t IsFiducialCutOn() const { return fCheckFidCut ; }
+ virtual void SwitchOnFiducialCut() { fCheckFidCut = kTRUE ;
+ fFiducialCut = new AliFiducialCut() ; }
+ virtual void SwitchOffFiducialCut() { fCheckFidCut = kFALSE ; }
+
+ // Cluster origin
+ Bool_t IsEMCALCluster(AliVCluster *clus) const;
+ Bool_t IsPHOSCluster (AliVCluster *clus) const;
+ //Patch for cluster origin for Old AODs implementation
+ void SwitchOnOldAODs() { fOldAOD = kTRUE ; }
+ void SwitchOffOldAODs() { fOldAOD = kFALSE ; }
+
+ // Cluster/track/cells switchs
+ Bool_t IsCTSSwitchedOn() const { return fFillCTS ; }
+ void SwitchOnCTS() { fFillCTS = kTRUE ; }
+ void SwitchOffCTS() { fFillCTS = kFALSE ; }
+
+ Bool_t IsEMCALSwitchedOn() const { return fFillEMCAL ; }
+ void SwitchOnEMCAL() { fFillEMCAL = kTRUE ; }
+ void SwitchOffEMCAL() { fFillEMCAL = kFALSE ; }
+
+ Bool_t IsPHOSSwitchedOn() const { return fFillPHOS ; }
+ void SwitchOnPHOS() { fFillPHOS = kTRUE ; }
+ void SwitchOffPHOS() { fFillPHOS = kFALSE ; }
+
+ Bool_t IsEMCALCellsSwitchedOn() const { return fFillEMCALCells ; }
+ void SwitchOnEMCALCells() { fFillEMCALCells = kTRUE ; }
+ void SwitchOffEMCALCells() { fFillEMCALCells = kFALSE ; }
+
+ Bool_t IsPHOSCellsSwitchedOn() const { return fFillPHOSCells ; }
+ void SwitchOnPHOSCells() { fFillPHOSCells = kTRUE ; }
+ void SwitchOffPHOSCells() { fFillPHOSCells = kFALSE ; }
+
+ Bool_t IsEmbeddedClusterSelectionOn() const { return fSelectEmbeddedClusters ; }
+ void SwitchOnEmbeddedClustersSelection() { fSelectEmbeddedClusters = kTRUE ; }
+ void SwitchOffEmbeddedClustersSelection() { fSelectEmbeddedClusters = kFALSE ; }
+
+ // Filling/ filtering / detector information access methods
+ virtual Bool_t FillInputEvent(const Int_t iEntry, const char *currentFileName) ;
+ virtual void FillInputCTS() ;
+ virtual void FillInputEMCAL() ;
+ virtual void FillInputEMCALAlgorithm(AliVCluster * clus, const Int_t iclus) ;
+ virtual void FillInputPHOS() ;
+ virtual void FillInputEMCALCells() ;
+ virtual void FillInputPHOSCells() ;
+ virtual void FillInputVZERO() ;
+
+ Int_t GetV0Signal(Int_t i) const { return fV0ADC[i] ; }
+ Int_t GetV0Multiplicity(Int_t i) const { return fV0Mul[i] ; }
+
+ void SetEMCALClusterListName(TString &name) {fEMCALClustersListName = name ; }
+
+ // Arrayes with clusters/track/cells access method
+ virtual TObjArray* GetCTSTracks() const { return fCTSTracks ; }
+ virtual TObjArray* GetEMCALClusters() const { return fEMCALClusters ; }
+ virtual TObjArray* GetPHOSClusters() const { return fPHOSClusters ; }
+ virtual AliVCaloCells* GetEMCALCells() const { return fEMCALCells ; }
+ virtual AliVCaloCells* GetPHOSCells() const { return fPHOSCells ; }
+
+ //-------------------------------------
+ // Event/track selection methods
+ //-------------------------------------
+
+ void SetFiredTriggerClassName(TString name ) { fFiredTriggerClassName = name ; }
+ TString GetFiredTriggerClassName() const { return fFiredTriggerClassName ; }
+ virtual TString GetFiredTriggerClasses() { return "" ; } // look the ESD/AOD reader
+
+ void SwitchOnEventSelection() { fDoEventSelection = kTRUE ; }
+ void SwitchOffEventSelection() { fDoEventSelection = kFALSE ; }
+ Bool_t IsEventSelectionDone() const { return fDoEventSelection ; }
+
+ void SwitchOnV0ANDSelection() { fDoV0ANDEventSelection = kTRUE ; }
+ void SwitchOffV0ANDSelection() { fDoV0ANDEventSelection = kFALSE ; }
+ Bool_t IsV0ANDEventSelectionDone() const { return fDoV0ANDEventSelection ; }
+
+ void SwitchOnPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kTRUE ; }
+ void SwitchOffPrimaryVertexSelection() { fUseEventsWithPrimaryVertex = kFALSE ; }
+ Bool_t IsPrimaryVertexSelectionDone() const { return fUseEventsWithPrimaryVertex ; }
+
+
+
+ // Track selection
+ ULong_t GetTrackStatus() const { return fTrackStatus ; }
+ void SetTrackStatus(ULong_t bit) { fTrackStatus = bit ; }
+
+ ULong_t GetTrackFilterMask() const {return fTrackFilterMask ; }
+ void SetTrackFilterMask(ULong_t bit) { fTrackFilterMask = bit ; }
+
+ AliESDtrackCuts* GetTrackCuts() const { return fESDtrackCuts ; }
+ void SetTrackCuts(AliESDtrackCuts * cuts) { fESDtrackCuts = cuts ; }
+ Int_t GetTrackMultiplicity() const { return fTrackMult ; }
+ Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
+ void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
+
+ // Calorimeter specific and patches
+ void AnalyzeOnlyLED() { fAnaLED = kTRUE ; }
+ void AnalyzeOnlyPhysics() { fAnaLED = kFALSE ; }
+
+ void SwitchOnCaloFilterPatch() { fCaloFilterPatch = kTRUE ;
+ fFillCTS = kFALSE ; }
+ void SwitchOffCaloFilterPatch() { fCaloFilterPatch = kFALSE ; }
+ Bool_t IsCaloFilterPatchOn() const {
+ if(fDataType == kAOD) { return fCaloFilterPatch ; }
+ else { return kFALSE ; } }
+
+ //-------------------------------
+ //Vertex methods
+ //-------------------------------
+ virtual void GetVertex(Double_t v[3]) const ;
+ virtual Double_t* GetVertex(const Int_t evtIndex) const { return fVertex[evtIndex] ; }
+ virtual void GetVertex(Double_t vertex[3], const Int_t evtIndex) const ;
+ virtual void FillVertexArray();
+ virtual Bool_t CheckForPrimaryVertex();
+ // virtual void GetSecondInputAODVertex(Double_t *) const {;}
+ virtual Float_t GetZvertexCut() const { return fZvtxCut ; } //cut on vertex position
+ virtual void SetZvertexCut(Float_t zcut=10.) { fZvtxCut=zcut ; } //cut on vertex position
+
+ //------------------------
+ // Centrality / Event Plane
+ //------------------------
+ virtual AliCentrality* GetCentrality() const { return fInputEvent->GetCentrality() ; } //Look in AOD reader, different there
+ virtual void SetCentralityClass(TString name) { fCentralityClass = name ; }
+ virtual void SetCentralityOpt(Int_t opt) { fCentralityOpt = opt ; }
+ virtual TString GetCentralityClass() const { return fCentralityClass ; }
+ virtual Int_t GetCentralityOpt() const { return fCentralityOpt ; }
+ virtual Int_t GetEventCentrality() const ;
+ virtual void SetCentralityBin(Int_t min, Int_t max) //Set the centrality bin to select the event. If used, then need to get percentile
+ { fCentralityBin[0]=min; fCentralityBin[1]=max;
+ if(min>=0 && max > 0) fCentralityOpt = 100 ; }
+ virtual Float_t GetCentralityBin(Int_t i) const { if(i < 0 || i > 1) return 0 ;
+ else return fCentralityBin[i] ; }
+
+ virtual AliEventplane* GetEventPlane() const { return fInputEvent->GetEventplane() ; }
+ virtual void SetEventPlaneMethod(TString m) { fEventPlaneMethod = m ; }
+ virtual TString GetEventPlaneMethod() const { return fEventPlaneMethod ; }
+
+ //-------------------------------------
+ // Other methods
+ //-------------------------------------
+ AliCalorimeterUtils * GetCaloUtils() const { return fCaloUtils ; }
+ void SetCaloUtils(AliCalorimeterUtils * caloutils) { fCaloUtils = caloutils ; }
+
+ //Use only for MC
+ void SwitchOnClusterEnergySmearing() { fSmearClusterEnergy = kTRUE ; }
+ void SwitchOffClusterEnergySmearing() { fSmearClusterEnergy = kFALSE ; }
+ Bool_t IsClusterEnergySmeared() const { return fSmearClusterEnergy ; }
+ void SetSmearingParameters(Int_t i, Float_t param) { if(i < 3)fSmearClusterParam[i] = param ; }
+
+ virtual Double_t GetBField() const { return fInputEvent->GetMagneticField() ; }
+
+ //------------------------------------------------
+ // MC analysis specific methods
+ //-------------------------------------------------
+