]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/TPC/AliTaskConfigOCDB.h
guess the run number from the input file path
[u/mrichter/AliRoot.git] / PWGPP / TPC / AliTaskConfigOCDB.h
CommitLineData
4bd2b776 1#ifndef ALITASKCONFIGOCDB_H
2#define ALITASKCONFIGOCDB_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 AliTaskConfigOCDB : public AliAnalysisTask {
18private:
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
24
25 AliTaskConfigOCDB(const AliTaskConfigOCDB &other);
26 AliTaskConfigOCDB& operator=(const AliTaskConfigOCDB &other);
27
28public:
29 AliTaskConfigOCDB();
30 AliTaskConfigOCDB(const char *name, const char *storage="raw://", Int_t run=0);
31 virtual ~AliTaskConfigOCDB();
32 AliESDInputHandler *GetESDhandler() const {return fESDhandler;}
33 AliESDEvent *GetEvent() const {return fESD;}
34 Int_t GetRun() const {return fRun;}
35 void InitGRP();
36 Bool_t RunChanged() const {return fRunChanged;}
37 void SetRunNumber(Int_t run) {fRun = run;}
38 // Run control
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);
e07b0141 45 Int_t guessRunNumber(TString path);
4bd2b776 46
47 ClassDef(AliTaskConfigOCDB,1) // Class giving CDB connectivity
48};
49#endif