AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONCalibrationData.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 
4 // $Id: AliMUONCalibrationData.h 59457 2012-11-06 12:36:48Z laphecet $
5 
10 // Author Laurent Aphecetche
11 
12 #ifndef ALIMUONCALIBRATIONDATA_H
13 #define ALIMUONCALIBRATIONDATA_H
14 
15 #ifndef ROOT_TObject
16 #include "TObject.h"
17 #endif
18 
19 class AliCDBEntry;
22 class AliMUONRejectList;
24 class AliMUONTriggerLut;
25 class AliMUONVCalibParam;
26 class AliMUONVStore;
27 class AliMUONVStore;
28 class TMap;
29 
30 class AliMUONCalibrationData : public TObject
31 {
32 public:
38  AliMUONCalibrationData(Int_t runNumber=-1, Bool_t deferredInitialization=kTRUE);
39  virtual ~AliMUONCalibrationData();
40 
41  AliMUONVStore* Capacitances() const;
42 
44  static AliMUONVStore* CreateCapacitances(Int_t runNumber, Int_t* startOfValidity=0);
45 
47  static AliMUONVStore* CreateGains(Int_t runNumber, Int_t* startOfValidity=0);
48 
50  static AliMUONGlobalCrateConfig* CreateGlobalTriggerCrateConfig(Int_t runNumber, Int_t* startOfValidity=0);
51 
53  static TMap* CreateHV(Int_t runNumber, Int_t* startOfValidity=0, Bool_t patched=kTRUE, TList* messages=0x0, Bool_t dryRun=kFALSE);
54 
56  static TMap* CreateTriggerDCS(Int_t runNumber, Int_t* startOfValidity=0);
57 
59  static AliMUONVStore* CreateNeighbours(Int_t runNumber, Int_t* startOfValidity=0);
60 
62  static AliMUONVStore* CreateLocalTriggerBoardMasks(Int_t runNumber, Int_t* startOfValidity=0);
63 
65  static AliMUONVStore* CreateOccupancyMap(Int_t runNumber, Int_t* startOfValidity=0);
66 
68  static AliMUONRejectList* CreateRejectList(Int_t runNumber, Int_t* startOfValidity=0);
69 
71  static AliMUONVStore* CreatePedestals(Int_t runNumber, Int_t* startOfValidity=0);
72 
74  static AliMUONVStore* CreateConfig(Int_t runNumber, Int_t* startOfValidity=0);
75 
77  static AliMUONRegionalTriggerConfig* CreateRegionalTriggerConfig(Int_t runNumber, Int_t* startOfValidity=0);
78 
80  static AliMUONTriggerLut* CreateTriggerLut(Int_t runNumber, Int_t* startOfValidity=0);
82  static AliMUONTriggerEfficiencyCells* CreateTriggerEfficiency(Int_t runNumber, Int_t* startOfValidity=0);
83 
85  AliMUONVStore* Gains() const;
86 
89 
91  AliMUONVCalibParam* Gains(Int_t detElemId, Int_t manuId) const;
92 
94  TMap* HV(Bool_t patched=kTRUE) const;
95 
97  TMap* TriggerDCS() const;
98 
100  Bool_t IsValid() const { return fIsValid; }
101 
103  AliMUONVCalibParam* LocalTriggerBoardMasks(Int_t localBoardNumber) const;
104 
106  AliMUONVStore* Neighbours() const;
107 
109  AliMUONVStore* Pedestals() const;
110 
112  AliMUONVStore* Config() const;
113 
115  AliMUONVStore* OccupancyMap() const;
116 
118  AliMUONRejectList* RejectList() const;
119 
121  AliMUONVCalibParam* Pedestals(Int_t detElemId, Int_t manuId) const;
122 
124  virtual void Print(Option_t* opt="") const;
125 
128 
129 
131  Int_t RunNumber() const { return fRunNumber; }
132 
134  AliMUONTriggerLut* TriggerLut() const;
135 
138 
139  void Reset();
140 
141  static TObject* CreateObject(Int_t runNumber, const char* path, Int_t* startOfValidity=0x0);
142 
143  static void Check(Int_t runNumber);
144 
145  static void BypassStores(AliMUONVStore* ped, AliMUONVStore* gain);
146 
147 protected:
152 
153  static Bool_t PatchHVValues(TObjArray& values, TString* msg=0x0, Bool_t dryRun=kFALSE);
154 
155  static Bool_t CheckHVGroup(TObjArray& values, Int_t first, Int_t last, Double_t& value,
156  Int_t& slope, TString* msg);
157 
158  static void PatchSt1DCSAliases(TMap& hvMap);
159 
160  static void AddToMap(const TMap& sourceMap,
161  TMap& destMap,
162  const TString& key,
163  const char* source,
164  const char* dest);
165 
166 private:
167  mutable Bool_t fIsValid;
168  Int_t fRunNumber;
171  mutable TMap* fHV;
172  mutable TMap* fTriggerDCS;
176 
181 
183 
185 
188 
190 
191  static UInt_t fgkDCSSt1Flag;
192 
193  ClassDef(AliMUONCalibrationData,14) // Storage for all MUON calibration data.
194 };
195 
196 #endif
TMap * TriggerDCS() const
Get the Trigger HV and current values.
The class defines the configuration of global crate.
AliMUONRegionalTriggerConfig * RegionalTriggerConfig() const
Get the config for regional trigger.
AliMUONRejectList * fRejectList
! reject list
static AliMUONVStore * CreateOccupancyMap(Int_t runNumber, Int_t *startOfValidity=0)
Create an occupancy map store (which must be deleted) from OCDB for the given run.
static AliMUONVStore * CreateLocalTriggerBoardMasks(Int_t runNumber, Int_t *startOfValidity=0)
Create a local trigger mask store (which must be deleted) for a given run.
AliMUONVStore * fConfig
! configuration of the tracker
TMap * HV(Bool_t patched=kTRUE) const
Get the HV values. Use patched=kFALSE to get unprocessed (i.e. "raw") values as they are in the OCDB...
AliMUONVStore * fLocalTriggerBoardMasks
! Local trigger board maska
#define TObjArray
AliMUONVStore * Neighbours() const
Get the neighbours store.
static void AddToMap(const TMap &sourceMap, TMap &destMap, const TString &key, const char *source, const char *dest)
AliMUONVStore * fNeighbours
! list of neighbours for all channels
Int_t fRunNumber
The run number for which we hold calibrations.
AliMUONCalibrationData(Int_t runNumber=-1, Bool_t deferredInitialization=kTRUE)
static void Check(Int_t runNumber)
AliMUONTriggerEfficiencyCells * fTriggerEfficiency
! Trigger efficiency cells
static AliMUONVStore * CreateCapacitances(Int_t runNumber, Int_t *startOfValidity=0)
Create a capa store (which must be deleted) from OCDB for the given run.
Store and give access to the trigger chamber efficiency.
static AliMUONTriggerEfficiencyCells * CreateTriggerEfficiency(Int_t runNumber, Int_t *startOfValidity=0)
Create a trigger efficiency map (which must be deleted) for a given run.
virtual void Print(Option_t *opt="") const
Dump to screen.
AliMUONVStore * Config() const
Get the config store.
static AliMUONVStore * CreateConfig(Int_t runNumber, Int_t *startOfValidity=0)
Create a configuration store (which must be deleted) from OCDB for the given run. ...
AliMUONVStore * fGains
! Gains
AliMUONVCalibParam * LocalTriggerBoardMasks(Int_t localBoardNumber) const
Get the mask for a given local trigger board.
static AliMUONVStore * fgBypassGains
Bool_t IsValid() const
Whether this object is valid or not (might be invalid if fetching from CDB failed).
Int_t RunNumber() const
The runnumber used by this object.
AliMUONGlobalCrateConfig * fGlobalTriggerCrateConfig
! Global trigger crate config
AliMUONTriggerLut * TriggerLut() const
Get the trigger Look Up Table.
static AliMUONVStore * CreateGains(Int_t runNumber, Int_t *startOfValidity=0)
Create a gain store (which must be deleted) from OCDB for the given run.
Container of calibration values for a given number of channels.
static AliMUONGlobalCrateConfig * CreateGlobalTriggerCrateConfig(Int_t runNumber, Int_t *startOfValidity=0)
Create a global trigger mask (which must be deleted) from OCDB for the given run. ...
AliMUONVStore * fPedestals
! Pedestals
AliMUONVStore * fOccupancyMap
! occupancy map
AliMUONGlobalCrateConfig * GlobalTriggerCrateConfig() const
Get the configuration for the global trigger board.
static AliMUONVStore * CreateNeighbours(Int_t runNumber, Int_t *startOfValidity=0)
Create a neighbours store (which must be deleted) from OCDB for the given run.
static Bool_t PatchHVValues(TObjArray &values, TString *msg=0x0, Bool_t dryRun=kFALSE)
static TMap * CreateTriggerDCS(Int_t runNumber, Int_t *startOfValidity=0)
Create a Trigger HV and current map (which must be deleted) from OCDB for the given run...
AliMUONVStore * Pedestals() const
Get the pedestal store.
static void BypassStores(AliMUONVStore *ped, AliMUONVStore *gain)
Bool_t fIsValid
Whether we were able to correctly initialize.
static Bool_t CheckHVGroup(TObjArray &values, Int_t first, Int_t last, Double_t &value, Int_t &slope, TString *msg)
AliMUONTriggerEfficiencyCells * TriggerEfficiency() const
Get the trigger efficiency map.
static AliMUONVStore * fgBypassPedestals
AliMUONTriggerLut * fTriggerLut
! TRigger LUTs
AliMUONRegionalTriggerConfig * fRegionalTriggerConfig
! Regional trigger config
static AliMUONRegionalTriggerConfig * CreateRegionalTriggerConfig(Int_t runNumber, Int_t *startOfValidity=0)
Create a regional trigger mask store (which must be deleted) for a given run.
Single entry point to access MUON calibration data.
static void PatchSt1DCSAliases(TMap &hvMap)
static TObject * CreateObject(Int_t runNumber, const char *path, Int_t *startOfValidity=0x0)
TMap * fTriggerDCS
! Trigger HV and Currents
static UInt_t fgkDCSSt1Flag
! flag to indicate that the DCS alias naming is not messed up in St1
Object to hold the list of elements we want to reject from the reconstruction.
AliMUONCalibrationData & operator=(const AliMUONCalibrationData &other)
Not implemented.
AliMUONVStore * OccupancyMap() const
Get the occupancy map store.
static TMap * CreateHV(Int_t runNumber, Int_t *startOfValidity=0, Bool_t patched=kTRUE, TList *messages=0x0, Bool_t dryRun=kFALSE)
Create a hv map (which must be deleted) from OCDB for the given run.
static AliMUONTriggerLut * CreateTriggerLut(Int_t runNumber, Int_t *startOfValidity=0)
Create a trigger Look Up Table (which must be deleted) for a given run.
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
AliMUONRejectList * RejectList() const
Get the reject list store.
AliMUONVStore * Capacitances() const
AliMUONVStore * fCapacitances
! Manu capacitances
MUON trigger look up table class.
AliMUONVStore * Gains() const
Get all the gains.
The class defines the properties of regional trigger crate.
static AliMUONRejectList * CreateRejectList(Int_t runNumber, Int_t *startOfValidity=0)
Create a rejectlist store (which must be deleted) from OCDB for the given run.
static AliMUONVStore * CreatePedestals(Int_t runNumber, Int_t *startOfValidity=0)
Create a pedestal store (which must be deleted) from OCDB for the given run.