From CMake manual:
[u/mrichter/AliRoot.git] / PWGPP / AliTaskCDBconnect.h
CommitLineData
f902e6f2 1#ifndef ALITASKCDBCONNECT_H
2#define ALITASKCDBCONNECT_H
3
4//==============================================================================
5// TaskCDBconnect - task just allowing connection to CDB (no lock)
6//==============================================================================
7
8#ifndef ALIANALYSISTASK_H
9#include "AliAnalysisTask.h"
10#endif
11
12class AliCDBManager;
13class AliGRPManager;
14class AliESDEvent;
15class AliESDInputHandler;
16
17class AliTaskCDBconnect : public AliAnalysisTask {
18private:
7b17a36b 19 Int_t fRun; // Current run
f902e6f2 20 AliGRPManager *fGRPManager; //! Pointer to GRP manager
21
22 AliTaskCDBconnect(const AliTaskCDBconnect &other);
23 AliTaskCDBconnect& operator=(const AliTaskCDBconnect &other);
f37b73fe 24 void InitGRP();
25 //
f902e6f2 26public:
27 AliTaskCDBconnect();
2b30638c 28 AliTaskCDBconnect(const char *name, const char *storage="raw://", Int_t run=0);
f902e6f2 29 virtual ~AliTaskCDBconnect();
f37b73fe 30 Int_t GetRun() const {return fRun;}
31 AliGRPManager* GetGRPManager() const {return (AliGRPManager*)fGRPManager;}
f902e6f2 32 virtual void Exec(Option_t *option);
f37b73fe 33 virtual void CreateOutputObjects();
f902e6f2 34
f37b73fe 35 ClassDef(AliTaskCDBconnect,2) // Class giving CDB connectivity
f902e6f2 36};
37#endif