1 #ifndef ALITASKCDBCONNECT_H
2 #define ALITASKCDBCONNECT_H
4 //==============================================================================
5 // TaskCDBconnect - task just allowing connection to CDB (no lock)
6 //==============================================================================
8 #ifndef ALIANALYSISTASK_H
9 #include "AliAnalysisTask.h"
15 class AliESDInputHandler;
17 class AliTaskCDBconnect : public AliAnalysisTask {
19 Int_t fRun; // Current run
20 Bool_t fRunChanged; //! Flag for run change.
21 AliESDInputHandler *fESDhandler; //! Pointer to ESD input handler
22 AliESDEvent *fESD; //! Pointer to current ESD event
23 AliGRPManager *fGRPManager; //! Pointer to GRP manager
25 AliTaskCDBconnect(const AliTaskCDBconnect &other);
26 AliTaskCDBconnect& operator=(const AliTaskCDBconnect &other);
30 AliTaskCDBconnect(const char *name);
31 virtual ~AliTaskCDBconnect();
32 AliESDInputHandler *GetESDhandler() const {return fESDhandler;}
33 AliESDEvent *GetEvent() const {return fESD;}
34 Int_t GetRun() const {return fRun;}
36 Bool_t RunChanged() const {return fRunChanged;}
37 void SetRunNumber(Int_t run) {fRun = run;}
39 virtual void ConnectInputData(Option_t *option = "");
40 virtual void CreateOutputObjects();
41 virtual void LocalInit();
42 virtual Bool_t Notify();
43 virtual void Exec(Option_t *option);
44 virtual void Terminate(Option_t *option);
46 ClassDef(AliTaskCDBconnect,1) // Class giving CDB connectivity