AliPhysics  b555aef (b555aef)
AliTaskCDBconnect.h
Go to the documentation of this file.
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 
12 class AliCDBManager;
13 class AliGRPManager;
14 class AliESDEvent;
15 class AliESDInputHandler;
16 
18 private:
19  Bool_t fFallBackToRaw; // allow fallback to raw if cvmfs is not mounted
20  Int_t fRun; // Current run
21  ULong64_t fLock; // CDB lock
22  TString fStorage; // Storage (if cvmfs
23  TObjArray fSpecCDBUri; // Array with specific CDB storages
24  AliGRPManager *fGRPManager;
27 
28  void InitGRP();
29  //
30 public:
32  AliTaskCDBconnect(const char *name, const char *storage="raw://", Int_t run=0, Bool_t fallback=kFALSE);
33  virtual ~AliTaskCDBconnect();
34  Int_t GetRun() const {return fRun;}
35  AliGRPManager* GetGRPManager() const {return (AliGRPManager*)fGRPManager;}
36  virtual void Exec(Option_t *option);
37  virtual void CreateOutputObjects();
38  virtual void ConnectInputData(Option_t *option = "");
39  void SetSpecificStorage(const char* calibType, const char* dbString,
40  Int_t version = -1, Int_t subVersion = -1);
41  void SetFallBackToRaw(Bool_t v) {fFallBackToRaw = v;}
43  ClassDef(AliTaskCDBconnect,5) // Class giving CDB connectivity
44 };
45 #endif
Bool_t GetFallBackToRaw() const
virtual void CreateOutputObjects()
Int_t GetRun() const
virtual void Exec(Option_t *option)
AliGRPManager * GetGRPManager() const
int Int_t
Definition: External.C:63
AliGRPManager * fGRPManager
void SetFallBackToRaw(Bool_t v)
void SetSpecificStorage(const char *calibType, const char *dbString, Int_t version=-1, Int_t subVersion=-1)
virtual void ConnectInputData(Option_t *option="")
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliTaskCDBconnect & operator=(const AliTaskCDBconnect &other)