AliRoot Core  3dc7879 (3dc7879)
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 
42  static AliMUONGlobalCrateConfig* CreateGlobalTriggerCrateConfig(Int_t runNumber, Int_t* startOfValidity=0);
43 
45  static TMap* CreateHV(Int_t runNumber, Int_t* startOfValidity=0, Bool_t patched=kTRUE, TList* messages=0x0, Bool_t dryRun=kFALSE);
46 
48  static TMap* CreateTriggerDCS(Int_t runNumber, Int_t* startOfValidity=0);
49 
51  static TMap* CreateLV(Int_t runNumber, Int_t* startOfValidity=0);
52 
54  static AliMUONVStore* CreateNeighbours(Int_t runNumber, Int_t* startOfValidity=0);
55 
57  static AliMUONVStore* CreateLocalTriggerBoardMasks(Int_t runNumber, Int_t* startOfValidity=0);
58 
60  static AliMUONVStore* CreateOccupancyMap(Int_t runNumber, Int_t* startOfValidity=0);
61 
63  static AliMUONRejectList* CreateRejectList(Int_t runNumber, Int_t* startOfValidity=0);
64 
66  static AliMUONVStore* CreatePedestals(Int_t runNumber, Int_t* startOfValidity=0);
67 
69  static AliMUONVStore* CreateConfig(Int_t runNumber, Int_t* startOfValidity=0);
70 
72  static AliMUONRegionalTriggerConfig* CreateRegionalTriggerConfig(Int_t runNumber, Int_t* startOfValidity=0);
73 
75  static AliMUONTriggerLut* CreateTriggerLut(Int_t runNumber, Int_t* startOfValidity=0);
77  static AliMUONTriggerEfficiencyCells* CreateTriggerEfficiency(Int_t runNumber, Int_t* startOfValidity=0);
78 
81 
83  TMap* HV(Bool_t patched=kTRUE) const;
84 
86  TMap* TriggerDCS() const;
87 
89  TMap* LV() const;
90 
92  Bool_t IsValid() const { return fIsValid; }
93 
95  AliMUONVCalibParam* LocalTriggerBoardMasks(Int_t localBoardNumber) const;
96 
98  AliMUONVStore* Neighbours() const;
99 
101  AliMUONVStore* Pedestals() const;
102 
104  AliMUONVStore* Config() const;
105 
107  AliMUONVStore* OccupancyMap() const;
108 
110  AliMUONRejectList* RejectList() const;
111 
113  AliMUONVCalibParam* Pedestals(Int_t detElemId, Int_t manuId) const;
114 
116  virtual void Print(Option_t* opt="") const;
117 
120 
121 
123  Int_t RunNumber() const { return fRunNumber; }
124 
126  AliMUONTriggerLut* TriggerLut() const;
127 
130 
131  void Reset();
132 
133  static TObject* CreateObject(Int_t runNumber, const char* path, Int_t* startOfValidity=0x0);
134 
135  static void Check(Int_t runNumber);
136 
137  static void BypassStores(AliMUONVStore* ped);
138 
139  static void PatchSt1DCSAliases(TMap& hvMap);
140 
141  static Bool_t PatchHVValues(TObjArray& values, TString* msg=0x0, Bool_t dryRun=kFALSE);
142 
144 
146 
147 protected:
152 
153  static Bool_t CheckHVGroup(TObjArray& values, Int_t first, Int_t last, Double_t& value,
154  Int_t& slope, TString* msg);
155 
156  static void AddToMap(const TMap& sourceMap,
157  TMap& destMap,
158  const TString& key,
159  const char* source,
160  const char* dest);
161 
162 private:
163  mutable Bool_t fIsValid;
164  Int_t fRunNumber;
166  mutable TMap* fHV;
167  mutable TMap* fTriggerDCS;
171 
175 
177 
179 
181 
183 
184  mutable TMap* fLV;
185 
188 
189  ClassDef(AliMUONCalibrationData,17) // Storage for all MUON calibration data.
190 };
191 
192 #endif
TMap * LV() const
Get the MCH LV.
static UInt_t PatchHVDCSAliasesSt1WasAppliedMask()
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)
const char * path
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
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. ...
AliMUONVCalibParam * LocalTriggerBoardMasks(Int_t localBoardNumber) const
Get the mask for a given local trigger board.
static void BypassStores(AliMUONVStore *ped)
static UInt_t fgkPatchHVAllWasAppliedMask
! mask to indicate that HV values were massaged already
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 UInt_t PatchHVAllWasAppliedMask()
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.
Definition: AliCDBEntry.h:18
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 TMap * CreateLV(Int_t runNumber, Int_t *startOfValidity=0)
Create a MCH LV map (which must be deleted) from OCDB for the given run.
static TObject * CreateObject(Int_t runNumber, const char *path, Int_t *startOfValidity=0x0)
TMap * fTriggerDCS
! Trigger HV and Currents
Object to hold the list of elements we want to reject from the reconstruction.
static Int_t runNumber
Definition: pdc06_config.C:126
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 UInt_t fgkPatchHVDCSAliasesSt1WasAppliedMask
! mask to indicate that the DCS alias naming is not messed up in St1
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.
MUON trigger look up table class.
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.