1 #ifndef ALIANALYSISTASKSE_H
2 #define ALIANALYSISTASKSE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 #include "AliAnalysisTask.h"
13 class AliInputEventHandler;
18 class AliAnalysisTaskSE : public AliAnalysisTask
22 AliAnalysisTaskSE(const char* name);
23 AliAnalysisTaskSE(const AliAnalysisTaskSE& obj);
24 AliAnalysisTaskSE& operator=(const AliAnalysisTaskSE& other);
25 virtual ~AliAnalysisTaskSE() {;}
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 // To be implemented by user
33 virtual void UserCreateOutputObjects() {;}
34 virtual void UserExec(Option_t* /*option*/) {;}
35 // Helpers for adding branches to the AOD
36 virtual void AddAODBranch(const char* cname, void* addobj);
38 virtual Int_t DebugLevel() {return fDebug; }
39 virtual AliVEvent* InputEvent() {return fInputEvent;}
40 virtual AliAODEvent* AODEvent() {return fOutputAOD; }
41 virtual TTree* OutputTree() {return fTreeA; }
42 virtual AliMCEvent* MCEvent() {return fMCEvent; }
43 virtual Long64_t Entry() {return fEntry; }
44 virtual const char* CurrentFileName();
46 Int_t fDebug; // Debug flag
47 Int_t fEntry; // Current entry in the chain
48 AliVEvent* fInputEvent; //! VEvent Input
49 AliInputEventHandler* fInputHandler; //! Input Handler
50 AliAODEvent* fOutputAOD; //! AOD out
51 AliMCEvent* fMCEvent; //! MC
52 TTree* fTreeA; // AOD output Tree
53 ClassDef(AliAnalysisTaskSE, 1); // Analysis task for standard jet analysis