AliRoot Core  3dc7879 (3dc7879)
AliAnalysisTaskME.h
Go to the documentation of this file.
1 
3 #ifndef ALIANALYSISTASKME_H
4 #define ALIANALYSISTASKME_H
5 
6 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7  * See cxx source for full Copyright notice */
8 
9 #include "AliAnalysisTask.h"
10 #include "AliVEvent.h"
11 class AliAODEvent;
13 class TTree;
15 
16 
17 
19 {
20  public:
22  AliAnalysisTaskME(const char* name);
25  virtual ~AliAnalysisTaskME() {;}
26  // Implementation of interface methods
27  virtual void ConnectInputData(Option_t *option = "");
28  virtual void CreateOutputObjects();
29  virtual void Exec(Option_t* option);
30  virtual void SetDebugLevel(Int_t level) {fDebug = level;}
31  virtual void Init() {;}
32  virtual void RequireFreshBuffer() {fFreshBufferOnly = kTRUE;}
33  // To be implemented by user
34  virtual void UserCreateOutputObjects() {;}
35  virtual void UserExec(Option_t* /*option*/) {;}
36  // Helpers for adding branches to the AOD
37  virtual void AddAODBranch(const char* cname, void* addobj, const char *fname="");
38  virtual void SelectCollisionCandidates(UInt_t offlineTriggerMask = AliVEvent::kMB) {fOfflineTriggerMask = offlineTriggerMask;}
39  // Getters
40  virtual Int_t DebugLevel() {return fDebug; }
41  virtual AliVEvent* GetEvent(Int_t iev);
42  virtual AliAODEvent* AODEvent() {return fOutputAOD; }
43  virtual TTree* OutputTree() {return fTreeA; }
44  virtual Long64_t Entry() {return fEntry; }
45  virtual const char* CurrentFileName();
46 
47  protected:
48  Int_t fDebug;
49  Int_t fEntry;
53  TTree* fTreeA;
54  // Event Selection
56 
57  ClassDef(AliAnalysisTaskME, 1); // Analysis task for standard jet analysis
58 };
59 
60 #endif
AliAnalysysTask - Class representing a basic analysis task. Any user-defined task should derive from...
virtual Int_t DebugLevel()
Multi VEvent Input Handler realisation of the AliVEventHandler interface.
virtual TTree * OutputTree()
virtual void SetDebugLevel(Int_t level)
virtual void RequireFreshBuffer()
UInt_t fOfflineTriggerMask
Task processes collision candidates only.
TTree * fTreeA
AOD output Tree.
virtual void AddAODBranch(const char *cname, void *addobj, const char *fname="")
virtual void SelectCollisionCandidates(UInt_t offlineTriggerMask=AliVEvent::kMB)
virtual ~AliAnalysisTaskME()
virtual AliAODEvent * AODEvent()
Int_t fDebug
Debug flag.
virtual void UserCreateOutputObjects()
virtual void ConnectInputData(Option_t *option="")
virtual void Init()
Bool_t fFreshBufferOnly
Flag for Exec call for fresh buffer only.
virtual void UserExec(Option_t *)
AOD base class.
Definition: AliAODEvent.h:48
AliMultiEventInputHandler * fInputHandler
! Input Handler
AliAODEvent * fOutputAOD
! AOD out
virtual void CreateOutputObjects()
Int_t fEntry
Current entry in the chain.
AliAnalysisTaskME & operator=(const AliAnalysisTaskME &other)
virtual Long64_t Entry()
char * fname
virtual AliVEvent * GetEvent(Int_t iev)
virtual const char * CurrentFileName()
virtual void Exec(Option_t *option)