AliPhysics  db95e02 (db95e02)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBaseESDTask.h
Go to the documentation of this file.
1 //
2 // Base class for FMD ESD input - sub classes can use the services to
3 // easily setup a task to process the FMD ESD data
4 //
5 #ifndef ALIFMDESDTASK_H
6 #define ALIFMDESDTASK_H
7 
8 #include <AliAnalysisTaskSE.h>
11 class AliAODHandler;
12 class AliESDEvent;
13 class TAxis;
14 class TList;
15 
79 {
80 public:
92  AliBaseESDTask(const char* name, const char* title,
93  AliCorrectionManagerBase* manager);
106  virtual Bool_t Connect(const char* sumFile=0,
107  const char* resFile=0)
108  {
109  return Connect(sumFile, resFile, false);
110  }
124  virtual Bool_t Connect(const char* sumFile,
125  const char* resFile,
126  Bool_t old);
130  virtual Bool_t Setup() { return true; }
142  virtual Bool_t Book() = 0;
150  virtual void PreCorrections(const AliESDEvent* esd);
158  virtual Bool_t PreData(const TAxis& vertex, const TAxis& eta);
165  virtual Bool_t PreEvent() { return true; }
173  virtual Bool_t Event(AliESDEvent& esd) = 0;
180  virtual Bool_t PostEvent() { return true; }
186  virtual Bool_t Finalize() { return true; }
196  virtual void Print(Option_t* option="") const;
202  virtual void SetDebug(Int_t dbg);
209  virtual void SetDebugLevel(Int_t dbg)
210  {
211  AliAnalysisTaskSE::SetDebugLevel(dbg);
212  SetDebug(dbg);
213  }
214  void SetIPzMethod(const char* str);
215  /* @} */
216  // --- Configuration etc -------------------------------------------
227  virtual Bool_t Configure(const char* macro="-default-");
241  virtual const AliFMDEventInspector& GetEventInspector() const = 0;
242  /* @} */
243 protected:
249  AliBaseESDTask(const AliBaseESDTask& o);
258  // --- Customize ---------------------------------------------------
264  virtual Bool_t IsMC() const { return false; }
273  virtual TAxis* DefaultEtaAxis() const;
282  virtual TAxis* DefaultVertexAxis() const;
289  virtual AliCorrectionManagerBase* GetManager() const { return fCorrManager; }
297 
298  // --- Task methods ------------------------------------------------
306  void LocalInit();
316  void UserExec(Option_t* option);
322  void Terminate(Option_t* option);
326  // --- Services for derived classes --------------------------------
330  virtual void CreateBranches(AliAODHandler*) {}
335  virtual void MarkEventForStore() const;
344  virtual Bool_t CheckCorrections(UInt_t what) const;
356  virtual Bool_t ReadCorrections(const TAxis*& pe,
357  const TAxis*& pv,
358  Bool_t mc=false,
359  Bool_t sat=false);
365  virtual AliESDEvent* GetESDEvent();
366 
367  virtual const char* DefaultConfig() const
368  {
369  return "ForwardAODConfig.C";
370  }
371 
372  // --- Members -----------------------------------------------------
373  Bool_t fFirstEvent; // Wheter we're waiting for the first event
374  TList* fList; // Output list
375  TList* fResults; // Results list
376  UInt_t fNeededCorrections; // Set this to bit-mask of corrections we need
377  UInt_t fExtraCorrections; // Set this to bit-mask of corrections we'd like
378  Bool_t fCloneList; // Result list is a clone of sum list
379 private:
387  AliCorrectionManagerBase* fCorrManager; // Pointer to corrections manager
388 
390 };
392 #endif
393 // Local Variables:
394 // mode: C++
395 // End:
virtual Bool_t IsMC() const
return jsonbuilder str().c_str()
virtual Bool_t Setup()
virtual Bool_t ReadCorrections(const TAxis *&pe, const TAxis *&pv, Bool_t mc=false, Bool_t sat=false)
virtual Bool_t Event(AliESDEvent &esd)=0
virtual AliCorrectionManagerBase * GetManager() const
virtual AliCorrectionManagerBase * GetManager()
const char * title
Definition: MakeQAPdf.C:26
virtual void CreateBranches(AliAODHandler *)
virtual Bool_t Connect(const char *sumFile=0, const char *resFile=0)
virtual void Print(Option_t *option="") const
AliBaseESDTask & operator=(const AliBaseESDTask &o)
virtual void MarkEventForStore() const
void SetIPzMethod(const char *str)
virtual Bool_t PostEvent()
void Terminate(Option_t *option)
virtual TAxis * DefaultVertexAxis() const
virtual AliFMDEventInspector & GetEventInspector()=0
ClassDef(AliBaseESDTask, 1)
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
virtual Bool_t Configure(const char *macro="-default-")
virtual Bool_t CheckCorrections(UInt_t what) const
void UserCreateOutputObjects()
virtual void SetDebug(Int_t dbg)
AliCorrectionManagerBase * fCorrManager
virtual Bool_t PreData(const TAxis &vertex, const TAxis &eta)
UInt_t fExtraCorrections
virtual Bool_t Book()=0
virtual Bool_t Finalize()
virtual void SetDebugLevel(Int_t dbg)
virtual void PreCorrections(const AliESDEvent *esd)
virtual Bool_t PreEvent()
void UserExec(Option_t *option)
virtual AliESDEvent * GetESDEvent()
virtual TAxis * DefaultEtaAxis() const
const char Option_t
Definition: External.C:48
UInt_t fNeededCorrections
bool Bool_t
Definition: External.C:53
virtual const char * DefaultConfig() const