Implemented a remapper for parent identification in the particle tree when adding...
[u/mrichter/AliRoot.git] / PWGPP / AliTaskCDBconnect.h
... / ...
CommitLineData
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:
19 Int_t fRun; // Current run
20 AliGRPManager *fGRPManager; //! Pointer to GRP manager
21
22 AliTaskCDBconnect(const AliTaskCDBconnect &other);
23 AliTaskCDBconnect& operator=(const AliTaskCDBconnect &other);
24
25 void InitGRP();
26 //
27public:
28 AliTaskCDBconnect();
29 AliTaskCDBconnect(const char *name, const char *storage="raw://", Int_t run=0);
30 virtual ~AliTaskCDBconnect();
31 Int_t GetRun() const {return fRun;}
32 AliGRPManager* GetGRPManager() const {return (AliGRPManager*)fGRPManager;}
33 virtual void Exec(Option_t *option);
34 virtual void CreateOutputObjects();
35 void SetSpecificStorage(const char* calibType, const char* dbString);
36
37 ClassDef(AliTaskCDBconnect,2) // Class giving CDB connectivity
38};
39#endif