//_________________________________________________________________________
// Class for reading data (AODs) in order to do prompt gamma or other particle
// identification and correlations.
-// Mixing analysis can be done, input AOD with events
+// This part is commented: Mixing analysis can be done, input AOD with events
// is opened in the AliCaloTrackReader::Init()
//
//
// -- Author: Gustavo Conesa (INFN-LNF)
-// --- ROOT system ---
+#include "AliAnalysisTaskSE.h"
-// --- AliRoot system ---
-#include "AliCaloTrackReader.h"
#include "AliAODEvent.h"
+#include "AliCaloTrackReader.h"
class AliCaloTrackAODReader : public AliCaloTrackReader {
public:
AliCaloTrackAODReader() ; // ctor
- AliCaloTrackAODReader(const AliCaloTrackAODReader & g) ; // cpy ctor
- //AliCaloTrackAODReader & operator = (const AliCaloTrackAODReader & g) ;//cpy assignment
virtual ~AliCaloTrackAODReader() {;} //virtual dtor
+
+ AliCentrality* GetCentrality() const ;
+ void SetInputOutputMCEvent(AliVEvent* esd, AliAODEvent* aod, AliMCEvent* mc) ;
- void FillInputCTS() ;
- void FillInputEMCAL() ;
- void FillInputPHOS() ;
- void FillInputEMCALCells() ;
- void FillInputPHOSCells() ;
-
- Double_t GetBField() const;
-
- void GetSecondInputAODVertex(Double_t v[3]) const ;
- void GetVertex(Double_t v[3]) const ;
+ AliVEvent* GetOriginalInputEvent() const { return fOrgInputEvent; }
- void SetInputOutputMCEvent(AliVEvent* esd, AliAODEvent* aod, AliMCEvent* mc) ;
- void SwitchOnWriteStdAOD() {fWriteOutputStdAOD = kTRUE;}
- void SwitchOffWriteStdAOD() {fWriteOutputStdAOD = kFALSE;}
-
TString GetFiredTriggerClasses() {return ((AliAODEvent*)GetInputEvent())->GetFiredTriggerClasses();}
-
- // Get calorimeter (Super)module number where this cluster falled
- Int_t GetModuleNumber(AliAODCaloCluster * cluster) const ;
-
- void Print(const Option_t * opt) const;
-
+
private:
- Bool_t fWriteOutputStdAOD; // Write selected standard tracks and caloclusters in output AOD
-
- ClassDef(AliCaloTrackAODReader,4)
+
+ AliVEvent *fOrgInputEvent; //! Original input event, not from filtering
+
+ AliCaloTrackAODReader(const AliCaloTrackAODReader & ) ; // cpy ctor
+ AliCaloTrackAODReader & operator = (const AliCaloTrackAODReader & g) ;//cpy assignment
+
+ ClassDef(AliCaloTrackAODReader,6)
} ;
#endif //ALICALOTRACKAODREADER_H