AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerConditionDataMaker.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRACKERCONDITIONDATAMAKER_H
2 #define ALIMUONTRACKERCONDITIONDATAMAKER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author Laurent Aphecetche
14 
15 #ifndef ALIMUONVTRACKERDATAMAKER_H
17 #endif
18 #ifndef ROOT_TString
19 # include "TString.h"
20 #endif
21 
22 class AliMUONVStore;
23 class TMap;
24 
26 {
27 public:
29  AliMUONTrackerConditionDataMaker(Int_t runNumber, const char* ocdbPath, const char* type);
30  AliMUONTrackerConditionDataMaker(const char* filename, const char* type);
31  AliMUONTrackerConditionDataMaker(const char* data, const char* type, Bool_t);
33 
34  static AliMUONVStore* CreateStore(Int_t runNumber, const char* source, const char* type, Int_t& startOfValidity);
35 
36  static AliMUONVTrackerData* CreateData(const char* type, AliMUONVStore& source, Int_t startOfValidity);
37 
38  virtual void SetOwnerOfData(Bool_t flag) { fIsOwnerOfData = flag; }
39 
41  Bool_t IsValid() const { return (fData != 0x0); }
42 
44  virtual AliMUONVTrackerData* Data() const { return fData; }
45 
47  virtual Bool_t IsRunnable() const { return kFALSE; }
48 
50  virtual Bool_t IsRunning() const { return kFALSE; }
51 
53  virtual void SetRunning(Bool_t /*flag*/) {}
54 
56  virtual Bool_t ProcessEvent() { return kTRUE; }
57 
59  virtual void Rewind() { }
60 
62  virtual void SetSource(const char* source) { fSource = source; }
63 
65  virtual TString Source() const { return fSource.Data(); }
66 
68  Int_t NumberOfEvents() const { return 1; }
69 
70  virtual Long64_t Merge(TCollection* li);
71 
72 private:
77 
78  static AliMUONVStore* CreateHVStore(TMap& m);
79  static AliMUONVStore* CreateStatusMapStore(Int_t runNumber);
80  static AliMUONVStore* CreateStatusStore(Int_t runNumber);
81  static AliMUONVStore* PatchGainStore(const AliMUONVStore& gains);
82  static AliMUONVStore* ExpandConfig(const AliMUONVStore& config);
83 
84 private:
86  TString fSource;
87  Bool_t fIsOwnerOfData;
88 
89  ClassDef(AliMUONTrackerConditionDataMaker,2) // Producer of AliMUONVTrackerData from condition data (either OCDB or ascii files)
90 };
91 
92 #endif
93 
static AliMUONVStore * PatchGainStore(const AliMUONVStore &gains)
static AliMUONVStore * ExpandConfig(const AliMUONVStore &config)
Bool_t IsValid() const
Whether we've been properly initialized or not.
Producer of some AliMUONVTrackerData.
static AliMUONVStore * CreateStatusMapStore(Int_t runNumber)
virtual void SetSource(const char *source)
Set our source URI.
virtual AliMUONVTrackerData * Data() const
Return our data.
Int_t NumberOfEvents() const
Number of events is always 1.
virtual Long64_t Merge(TCollection *li)
Merge.
virtual Bool_t IsRunnable() const
We are not runnable (i.e. # of event is fixed = 1)
static AliMUONVTrackerData * CreateData(const char *type, AliMUONVStore &source, Int_t startOfValidity)
AliMUONTrackerConditionDataMaker & operator=(const AliMUONTrackerConditionDataMaker &rhs)
Not implemented.
virtual void SetOwnerOfData(Bool_t flag)
Whether or not we're the owner of our AliMUONVTrackerData.
static AliMUONVStore * CreateStatusStore(Int_t runNumber)
virtual TString Source() const
Get our source URI.
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
virtual Bool_t IsRunning() const
We cannot be running as we are not runnable...
static AliMUONVStore * CreateStore(Int_t runNumber, const char *source, const char *type, Int_t &startOfValidity)
Producer of AliMUONVTrackerData from OCDB or ASCII condition files.