![]() |
AliRoot Core
d69033e (d69033e)
|
Single entry point to access MUON calibration data. More...
#include <AliMUONCalibrationData.h>
Public Member Functions | |
AliMUONCalibrationData (Int_t runNumber=-1, Bool_t deferredInitialization=kTRUE) | |
virtual | ~AliMUONCalibrationData () |
AliMUONGlobalCrateConfig * | GlobalTriggerCrateConfig () const |
Get the configuration for the global trigger board. More... | |
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. More... | |
TMap * | TriggerDCS () const |
Get the Trigger HV and current values. More... | |
TMap * | LV () const |
Get the MCH LV. More... | |
Bool_t | IsValid () const |
Whether this object is valid or not (might be invalid if fetching from CDB failed). More... | |
AliMUONVCalibParam * | LocalTriggerBoardMasks (Int_t localBoardNumber) const |
Get the mask for a given local trigger board. More... | |
AliMUONVStore * | Neighbours () const |
Get the neighbours store. More... | |
AliMUONVStore * | Pedestals () const |
Get the pedestal store. More... | |
AliMUONVStore * | Config () const |
Get the config store. More... | |
AliMUONVStore * | OccupancyMap () const |
Get the occupancy map store. More... | |
AliMUONRejectList * | RejectList () const |
Get the reject list store. More... | |
AliMUONVCalibParam * | Pedestals (Int_t detElemId, Int_t manuId) const |
Get the Pedestal calibration object for channels within (detElemId,manuId). More... | |
virtual void | Print (Option_t *opt="") const |
Dump to screen. More... | |
AliMUONRegionalTriggerConfig * | RegionalTriggerConfig () const |
Get the config for regional trigger. More... | |
Int_t | RunNumber () const |
The runnumber used by this object. More... | |
AliMUONTriggerLut * | TriggerLut () const |
Get the trigger Look Up Table. More... | |
AliMUONTriggerEfficiencyCells * | TriggerEfficiency () const |
Get the trigger efficiency map. More... | |
void | Reset () |
Static Public Member Functions | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
static AliMUONVStore * | CreateNeighbours (Int_t runNumber, Int_t *startOfValidity=0) |
Create a neighbours store (which must be deleted) from OCDB for the given run. More... | |
static AliMUONVStore * | CreateLocalTriggerBoardMasks (Int_t runNumber, Int_t *startOfValidity=0) |
Create a local trigger mask store (which must be deleted) for a given run. More... | |
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. More... | |
static AliMUONRejectList * | CreateRejectList (Int_t runNumber, Int_t *startOfValidity=0) |
Create a rejectlist store (which must be deleted) from OCDB for the given run. More... | |
static AliMUONVStore * | CreatePedestals (Int_t runNumber, Int_t *startOfValidity=0) |
Create a pedestal store (which must be deleted) from OCDB for the given run. More... | |
static AliMUONVStore * | CreateConfig (Int_t runNumber, Int_t *startOfValidity=0) |
Create a configuration store (which must be deleted) from OCDB for the given run. More... | |
static AliMUONRegionalTriggerConfig * | CreateRegionalTriggerConfig (Int_t runNumber, Int_t *startOfValidity=0) |
Create a regional trigger mask store (which must be deleted) for a given run. More... | |
static AliMUONTriggerLut * | CreateTriggerLut (Int_t runNumber, Int_t *startOfValidity=0) |
Create a trigger Look Up Table (which must be deleted) for a given run. More... | |
static AliMUONTriggerEfficiencyCells * | CreateTriggerEfficiency (Int_t runNumber, Int_t *startOfValidity=0) |
Create a trigger efficiency map (which must be deleted) for a given run. More... | |
static TObject * | CreateObject (Int_t runNumber, const char *path, Int_t *startOfValidity=0x0) |
static void | Check (Int_t runNumber) |
static void | BypassStores (AliMUONVStore *ped) |
static void | PatchSt1DCSAliases (TMap &hvMap) |
static Bool_t | PatchHVValues (TObjArray &values, TString *msg=0x0, Bool_t dryRun=kFALSE) |
static UInt_t | PatchHVDCSAliasesSt1WasAppliedMask () |
static UInt_t | PatchHVAllWasAppliedMask () |
Protected Member Functions | |
AliMUONCalibrationData (const AliMUONCalibrationData &other) | |
Not implemented. More... | |
AliMUONCalibrationData & | operator= (const AliMUONCalibrationData &other) |
Not implemented. More... | |
Static Protected Member Functions | |
static Bool_t | CheckHVGroup (TObjArray &values, Int_t first, Int_t last, Double_t &value, Int_t &slope, TString *msg) |
static void | AddToMap (const TMap &sourceMap, TMap &destMap, const TString &key, const char *source, const char *dest) |
Private Attributes | |
Bool_t | fIsValid |
Whether we were able to correctly initialize. More... | |
Int_t | fRunNumber |
The run number for which we hold calibrations. More... | |
AliMUONVStore * | fPedestals |
! Pedestals More... | |
TMap * | fHV |
! HV More... | |
TMap * | fTriggerDCS |
! Trigger HV and Currents More... | |
AliMUONVStore * | fLocalTriggerBoardMasks |
! Local trigger board maska More... | |
AliMUONRegionalTriggerConfig * | fRegionalTriggerConfig |
! Regional trigger config More... | |
AliMUONGlobalCrateConfig * | fGlobalTriggerCrateConfig |
! Global trigger crate config More... | |
AliMUONTriggerLut * | fTriggerLut |
! TRigger LUTs More... | |
AliMUONTriggerEfficiencyCells * | fTriggerEfficiency |
! Trigger efficiency cells More... | |
AliMUONVStore * | fNeighbours |
! list of neighbours for all channels More... | |
AliMUONVStore * | fOccupancyMap |
! occupancy map More... | |
AliMUONRejectList * | fRejectList |
! reject list More... | |
AliMUONVStore * | fConfig |
! configuration of the tracker More... | |
TMap * | fLV |
! MCH LV More... | |
Static Private Attributes | |
static AliMUONVStore * | fgBypassPedestals |
static UInt_t | fgkPatchHVDCSAliasesSt1WasAppliedMask = static_cast<UInt_t>( 1 << 4 ) |
! mask to indicate that the DCS alias naming is not messed up in St1 More... | |
static UInt_t | fgkPatchHVAllWasAppliedMask = static_cast<UInt_t>( 1 << 8 ) |
! mask to indicate that HV values were massaged already More... | |
Single entry point to access MUON calibration data.
For the moment, this class stores pedestals, hv (for tracker) and lut, masks and efficiencies (for trigger) that are fetched from the CDB.
This class is to be considered as a convenience class. Its aim is to ease retrieval of calibration data from the condition database.
It acts as a "facade" to a bunch of underlying containers/calibration classes.
Definition at line 30 of file AliMUONCalibrationData.h.
AliMUONCalibrationData::AliMUONCalibrationData | ( | Int_t | runNumber = -1 , |
Bool_t | deferredInitialization = kTRUE |
||
) |
Constructor.
runNumber | is used as a key to the CDB |
deferredInitialization | if kFALSE, all the calibrations are fetched regardless of whether you'll use them or not. |
Default ctor.
Definition at line 80 of file AliMUONCalibrationData.cxx.
|
virtual |
Destructor. Note that we're the owner of our pointers if the OCDB cache is not set. Otherwise the cache is supposed to take care of them...
Definition at line 131 of file AliMUONCalibrationData.cxx.
|
protected |
Not implemented.
|
staticprotected |
Remap
Definition at line 594 of file AliMUONCalibrationData.cxx.
Referenced by PatchSt1DCSAliases().
|
static |
Force the use of those pedestals
Definition at line 1050 of file AliMUONCalibrationData.cxx.
|
static |
Self-check to see if we can read all data for a given run from the current OCDB...
Definition at line 1198 of file AliMUONCalibrationData.cxx.
|
staticprotected |
Definition at line 149 of file AliMUONCalibrationData.cxx.
Referenced by PatchHVValues().
AliMUONVStore * AliMUONCalibrationData::Config | ( | ) | const |
Get the config store.
Return config
Definition at line 1074 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), and AliMUONTrackerQADataMakerRec::InitCommon().
|
static |
Create a configuration store (which must be deleted) from OCDB for the given run.
Create a new config store from the OCDB for a given run
Definition at line 900 of file AliMUONCalibrationData.cxx.
Referenced by Check(), Config(), and AliMUONTrackerConditionDataMaker::CreateStore().
|
static |
Create a global trigger mask (which must be deleted) from OCDB for the given run.
Create the internal store for GlobalTriggerCrateConfig from OCDB
Definition at line 140 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and GlobalTriggerCrateConfig().
|
static |
Create a hv map (which must be deleted) from OCDB for the given run.
Create a new HV map from the OCDB for a given run
dryRun is only usefull with patched=kTRUE and non-empty messages) : it allow to get the list of messages without altering the values at all (A patch without a patch, so to speak...)
Definition at line 689 of file AliMUONCalibrationData.cxx.
Referenced by Check(), AliMUONCDB::CheckHV(), AliMUONTrackerHV::CreateMap(), AliMUONTrackerConditionDataMaker::CreateStore(), HV(), AliMUONTrackerHV::Plot(), and AliMUONTrackerHV::ReportTrips().
|
static |
Create a local trigger mask store (which must be deleted) for a given run.
Get the internal store for LocalTriggerBoardMasks from OCDB
Definition at line 816 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and LocalTriggerBoardMasks().
|
static |
Create a MCH LV map (which must be deleted) from OCDB for the given run.
Create a new MCH LV map from the OCDB for a given run
Definition at line 800 of file AliMUONCalibrationData.cxx.
Referenced by Check(), AliMUONTrackerConditionDataMaker::CreateStore(), and LV().
|
static |
Create a neighbours store (which must be deleted) from OCDB for the given run.
Create a neighbour store from the OCDB for a given run
Definition at line 825 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and Neighbours().
|
static |
Access the CDB for a given path (e.g. MUON/Calib/Pedestals), and return the corresponding TObject.
Definition at line 833 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCDB::CheckHV_ALIROOT_6402(), CreateConfig(), CreateGlobalTriggerCrateConfig(), CreateHV(), CreateLocalTriggerBoardMasks(), CreateLV(), AliMUONTrackerVoltages::CreateMap(), CreateNeighbours(), CreateOccupancyMap(), CreatePedestals(), CreateRegionalTriggerConfig(), CreateRejectList(), CreateTriggerDCS(), CreateTriggerEfficiency(), and CreateTriggerLut().
|
static |
Create an occupancy map store (which must be deleted) from OCDB for the given run.
Create a new occupancy map store from the OCDB for a given run
Definition at line 876 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONTrackerConditionDataMaker::CreateStore(), and OccupancyMap().
|
static |
Create a pedestal store (which must be deleted) from OCDB for the given run.
Create a new pedestal store from the OCDB for a given run
Definition at line 892 of file AliMUONCalibrationData.cxx.
Referenced by Check(), AliMUONTrackerConditionDataMaker::CreateStore(), and Pedestals().
|
static |
Create a regional trigger mask store (which must be deleted) for a given run.
Create the internal store for RegionalTriggerConfig from OCDB
Definition at line 909 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and RegionalTriggerConfig().
|
static |
Create a rejectlist store (which must be deleted) from OCDB for the given run.
Create a new rejectlist store from the OCDB for a given run
Definition at line 884 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONTrackerConditionDataMaker::AliMUONTrackerConditionDataMaker(), and RejectList().
|
static |
Create a Trigger HV and current map (which must be deleted) from OCDB for the given run.
Create a new Trigger HV and curent map from the OCDB for a given run
Definition at line 808 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and TriggerDCS().
|
static |
Create a trigger efficiency map (which must be deleted) for a given run.
Create trigger efficiency object from OCBD
Definition at line 918 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and TriggerEfficiency().
|
static |
Create a trigger Look Up Table (which must be deleted) for a given run.
Create trigger LUT from OCDB
Definition at line 927 of file AliMUONCalibrationData.cxx.
Referenced by Check(), and TriggerLut().
AliMUONGlobalCrateConfig * AliMUONCalibrationData::GlobalTriggerCrateConfig | ( | ) | const |
Get the configuration for the global trigger board.
Return the config for the global trigger board.
Definition at line 935 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONTriggerElectronics::LoadMasks(), MUONReCalcGlobalTrigger(), and AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal().
TMap * AliMUONCalibrationData::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.
Return the calibration for a given (detElemId, manuId) pair
Definition at line 949 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONCDB::CheckHV(), AliMUONTrackerDataMaker::Ctor(), AliMUONPadStatusMaker::HVSt12Status(), AliMUONPadStatusMaker::HVSt345Status(), and AliMUONPadStatusMaker::Report().
|
inline |
Whether this object is valid or not (might be invalid if fetching from CDB failed).
Definition at line 92 of file AliMUONCalibrationData.h.
AliMUONVCalibParam * AliMUONCalibrationData::LocalTriggerBoardMasks | ( | Int_t | localBoardNumber | ) | const |
Get the mask for a given local trigger board.
Return the masks for a given trigger local board.
Definition at line 1002 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), and AliMUONTriggerElectronics::LoadMasks().
TMap * AliMUONCalibrationData::LV | ( | ) | const |
Get the MCH LV.
Return the LV map for a given (detElemId, manuId) pair
LV object was only introduced at the beginning of 2016 (march ...), so we can not require it for runs before that...
Definition at line 962 of file AliMUONCalibrationData.cxx.
AliMUONVStore * AliMUONCalibrationData::Neighbours | ( | ) | const |
Get the neighbours store.
Create (if needed) and return the internal store for neighbours.
Definition at line 990 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONTrackerDataMaker::Ctor(), AliMUONPadStatusMaker::Neighbours(), and AliMUONPadStatusMaker::NeighboursStore().
AliMUONVStore * AliMUONCalibrationData::OccupancyMap | ( | ) | const |
Get the occupancy map store.
Get occupancy map
Definition at line 1026 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData().
|
protected |
Not implemented.
|
inlinestatic |
Definition at line 145 of file AliMUONCalibrationData.h.
Referenced by CreateHV().
|
inlinestatic |
Definition at line 143 of file AliMUONCalibrationData.h.
Referenced by PatchSt1DCSAliases(), and AliMUONHVSubprocessor::Process().
|
static |
We do here a little bit of massaging of the HV values, if needed.
The main point is to "gather" values that are within a given small amount of time (typically 60 seconds) and infer a slope from those values slope > 0 means it is a ramp-up, slope < 0 that's a ramp-down
This is to avoid both the "ramp-down-before-end-of-run" and the "ramp-up-after-start-of-run" syndroms...
Use dryRun = kTRUE to fill the messages without altering the values
Return kFALSE if the kind of HV (trouble) case we have here has not been identified...
Definition at line 214 of file AliMUONCalibrationData.cxx.
Referenced by CreateHV(), and AliMUONCDB::PatchHV().
|
static |
It was discovered (in sept. 2013) that the DCS aliases for St1 was wrongly assigned (in the hardware), so the correspondence between DCS channels and actual HV channels is wrong for St1 in the DCS (and thus in the DCS archive, and so in the OCDB HV object).
It affects all the OCDB object written in 2010-2013.
This method fixes that.
Definition at line 612 of file AliMUONCalibrationData.cxx.
Referenced by CreateHV().
AliMUONVStore * AliMUONCalibrationData::Pedestals | ( | ) | const |
Get the pedestal store.
Return pedestals
Definition at line 1059 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONDigitizerV3::ApplyResponseToTrackerDigit(), AliMUONDigitCalibrator::Ctor(), AliMUONTrackerDataMaker::Ctor(), AliMUONChamberCalibrationTask::Exec(), AliMUONDigitizerV3::GenerateNoisyDigitsForOneCathode(), AliMUONDigitizerV3::Init(), MUONClusterInfo(), and Pedestals().
AliMUONVCalibParam * AliMUONCalibrationData::Pedestals | ( | Int_t | detElemId, |
Int_t | manuId | ||
) | const |
Get the Pedestal calibration object for channels within (detElemId,manuId).
Return the pedestals for a given (detElemId, manuId) pair. A return value of 0x0 is considered an error, meaning we should get pedestals for all channels.
Definition at line 1087 of file AliMUONCalibrationData.cxx.
|
virtual |
Dump to screen.
A very basic dump of our guts.
Definition at line 1104 of file AliMUONCalibrationData.cxx.
AliMUONRegionalTriggerConfig * AliMUONCalibrationData::RegionalTriggerConfig | ( | ) | const |
Get the config for regional trigger.
Return the config for the regional trigger board.
Definition at line 1124 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONTriggerElectronics::LoadMasks(), MUONReCalcGlobalTrigger(), and AliMUONTriggerCrateStore::ReadFromFile().
AliMUONRejectList * AliMUONCalibrationData::RejectList | ( | ) | const |
Get the reject list store.
Get reject list
Definition at line 1038 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData().
void AliMUONCalibrationData::Reset | ( | void | ) |
Reset all data
Definition at line 1165 of file AliMUONCalibrationData.cxx.
Referenced by ~AliMUONCalibrationData().
|
inline |
The runnumber used by this object.
Definition at line 123 of file AliMUONCalibrationData.h.
TMap * AliMUONCalibrationData::TriggerDCS | ( | ) | const |
Get the Trigger HV and current values.
Return the calibration for a given (detElemId, manuId) pair
Definition at line 977 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), CheckTriggerDCS(), CompareDCSvalues(), and AliMUONTriggerQADataMakerRec::FillTriggerDCSHistos().
AliMUONTriggerEfficiencyCells * AliMUONCalibrationData::TriggerEfficiency | ( | ) | const |
Get the trigger efficiency map.
Return the trigger efficiency.
Definition at line 1138 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), AliMUONDigitizerV3::Init(), and ShowOCDBmap().
AliMUONTriggerLut * AliMUONCalibrationData::TriggerLut | ( | ) | const |
Get the trigger Look Up Table.
Return the trigger look up table.
Definition at line 1152 of file AliMUONCalibrationData.cxx.
Referenced by AliMUONCalibrationData(), and AliMUONTriggerCrateStore::ReadFromFile().
|
mutableprivate |
! configuration of the tracker
Definition at line 182 of file AliMUONCalibrationData.h.
|
staticprivate |
Definition at line 180 of file AliMUONCalibrationData.h.
Referenced by BypassStores(), and Pedestals().
|
staticprivate |
! mask to indicate that HV values were massaged already
Definition at line 187 of file AliMUONCalibrationData.h.
Referenced by PatchHVAllWasAppliedMask().
|
staticprivate |
! mask to indicate that the DCS alias naming is not messed up in St1
Definition at line 186 of file AliMUONCalibrationData.h.
Referenced by PatchHVDCSAliasesSt1WasAppliedMask().
|
mutableprivate |
! Global trigger crate config
Definition at line 170 of file AliMUONCalibrationData.h.
Referenced by GlobalTriggerCrateConfig(), Print(), and Reset().
|
mutableprivate |
! HV
Definition at line 166 of file AliMUONCalibrationData.h.
|
mutableprivate |
Whether we were able to correctly initialize.
Definition at line 163 of file AliMUONCalibrationData.h.
Referenced by IsValid().
|
mutableprivate |
! Local trigger board maska
Definition at line 168 of file AliMUONCalibrationData.h.
Referenced by LocalTriggerBoardMasks(), Print(), and Reset().
|
mutableprivate |
! MCH LV
Definition at line 184 of file AliMUONCalibrationData.h.
|
mutableprivate |
! list of neighbours for all channels
Definition at line 174 of file AliMUONCalibrationData.h.
Referenced by Neighbours(), and Reset().
|
mutableprivate |
! occupancy map
Definition at line 176 of file AliMUONCalibrationData.h.
Referenced by OccupancyMap().
|
mutableprivate |
! Pedestals
Definition at line 165 of file AliMUONCalibrationData.h.
Referenced by Pedestals(), Print(), and Reset().
|
mutableprivate |
! Regional trigger config
Definition at line 169 of file AliMUONCalibrationData.h.
Referenced by Print(), RegionalTriggerConfig(), and Reset().
|
mutableprivate |
|
private |
The run number for which we hold calibrations.
Definition at line 164 of file AliMUONCalibrationData.h.
Referenced by Config(), GlobalTriggerCrateConfig(), HV(), LocalTriggerBoardMasks(), LV(), Neighbours(), OccupancyMap(), Pedestals(), RegionalTriggerConfig(), RejectList(), RunNumber(), TriggerDCS(), TriggerEfficiency(), and TriggerLut().
|
mutableprivate |
! Trigger HV and Currents
Definition at line 167 of file AliMUONCalibrationData.h.
Referenced by Print(), Reset(), and TriggerDCS().
|
mutableprivate |
! Trigger efficiency cells
Definition at line 173 of file AliMUONCalibrationData.h.
Referenced by Reset(), and TriggerEfficiency().
|
mutableprivate |
! TRigger LUTs
Definition at line 172 of file AliMUONCalibrationData.h.
Referenced by Print(), Reset(), and TriggerLut().