![]() |
AliRoot Core
7e03155 (7e03155)
|
Helper functions to experience the OCDB. More...
Functions | |
Bool_t | CheckOCDB (Bool_t pathOnly=kFALSE) |
Bool_t | CheckMapping (Bool_t segmentationOnly=kFALSE) |
Double_t | MeanHVValueForDCSAlias (TMap &hvMap, const char *hvChannel) |
void | CheckHV (Int_t runNumber, Int_t verbose=0) |
void | CheckHV_ALIROOT_6402 (const char *runlist, Bool_t verbose=kFALSE) |
Bool_t | CheckHV_ALIROOT_6402 (Int_t runNumber, Bool_t verbose=kFALSE) |
Bool_t | IsSt1DCSAliasRemapped (const TString &name) |
void | PatchHV (TMap &hvMap, TList *messages, Bool_t onlySt1remapped=kFALSE) |
Bool_t | LoadField () |
Bool_t | LoadMapping (Bool_t segmentationOnly=kFALSE) |
AliMUONRecoParam * | LoadRecoParam () |
TClonesArray * | LoadAlignmentData () |
void | AddDCSValue (TMap &aliasMap, Int_t imeas, const char *smt, const char *sInOut, Int_t rpc, Float_t value) |
Int_t | MakeHVStore (TMap &aliasMap, Bool_t defaultValues) |
Int_t | MakeLVStore (TMap &aliasMap, Bool_t defaultValues, time_t refTime) |
Int_t | MakeTriggerDCSStore (TMap &aliasMap) |
Int_t | MakePedestalStore (AliMUONVStore &pedestalStore, Bool_t defaultValues) |
Int_t | MakeOccupancyMapStore (AliMUONVStore &occupancyMap, Bool_t defaultValues) |
Int_t | MakeBusPatchEvolution (AliMergeableCollection &bpevo, int timeResolution=60) |
AliMUONRejectList * | MakeRejectListStore (Bool_t defaultValues) |
Int_t | MakeLocalTriggerMaskStore (AliMUONVStore <m) |
Int_t | MakeRegionalTriggerConfigStore (AliMUONRegionalTriggerConfig &rtm) |
Int_t | MakeGlobalTriggerConfigStore (AliMUONGlobalCrateConfig >m) |
AliMUONTriggerLut * | MakeTriggerLUT (const char *file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root") |
AliMUONTriggerEfficiencyCells * | MakeTriggerEfficiency (const char *file="$ALICE_ROOT/MUON/data/efficiencyCells.dat") |
AliMUONVStore * | Diff (AliMUONVStore &store1, AliMUONVStore &store2, const char *opt="abs") |
TH1 ** | Plot (const AliMUONVStore &store, const char *name, Int_t nbins=512) |
void | ReadIntegers (const char *filename, std::vector< int > &integers) |
void | ShowConfig (Bool_t withStatusMap=kFALSE) |
void | ShowFaultyBusPatches (const char *runlist, double occLimit=0.1, const char *outputBaseName="faulty.buspatches", const char *ocdbPath="raw://") |
void | WriteToCDB (const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, Bool_t defaultValues) |
void | WriteToCDB (const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, const char *filename) |
void | WriteToCDB (TObject *object, const char *calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(), const char *comment="", const char *responsible="AliMUONCDB tester class") |
void | WriteMapping (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteTrigger (Bool_t defaultValues=kTRUE, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteTracker (Bool_t defaultValues=kTRUE, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteHV (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteHV (const char *inputFile, Int_t runNumber) |
void | WriteLV (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(), time_t refTime=1449969676) |
void | WritePedestals (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteOccupancyMap (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteRejectList (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteConfig (Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteBPEVO (Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteLocalTriggerMasks (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteRegionalTriggerConfig (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteGlobalTriggerConfig (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteTriggerDCS (Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteTriggerLut (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
void | WriteTriggerEfficiency (Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()) |
Helper functions to experience the OCDB.
Helper functions to experience the OCDB
They allow to read magnetic field, mapping and recoParam from OCDB
And also to generate dummy (but complete) containers for all the calibration data types we have for tracker and trigger, and to write them into OCDB.
For more information, please see READMEcalib
void AliMUONCDB::AddDCSValue | ( | TMap & | aliasMap, |
Int_t | imeas, | ||
const char * | smt, | ||
const char * | sInOut, | ||
Int_t | rpc, | ||
Float_t | value | ||
) |
Definition at line 948 of file AliMUONCDB.cxx.
Referenced by MakeTriggerDCSStore().
void AliMUONCDB::CheckHV | ( | Int_t | runNumber, |
Int_t | verbose = 0 |
||
) |
Check the HV values in OCDB for a given run
Definition at line 213 of file AliMUONCDB.cxx.
Referenced by AliMUONTrackerHV::Scan().
void AliMUONCDB::CheckHV_ALIROOT_6402 | ( | const char * | runlist, |
Bool_t | verbose = kFALSE |
||
) |
Check HV for some St1 channels (the ones that are remapped in AliMUONCalibrationData::PatchSt1DCSAliases (see JIRA bug ALIROOT-6402 for details)
Definition at line 354 of file AliMUONCDB.cxx.
Bool_t AliMUONCDB::CheckHV_ALIROOT_6402 | ( | Int_t | runNumber, |
Bool_t | verbose = kFALSE |
||
) |
Check HV for some St1 channels (the ones that are remapped in AliMUONCalibrationData::PatchSt1DCSAliases (see JIRA bug ALIROOT-6402 for details) Returns true if that run is (potentially) affected by the bug Potentially means that the run is affected if reconstructed with an AliRoot version before the bug fix...
Definition at line 389 of file AliMUONCDB.cxx.
Bool_t AliMUONCDB::CheckMapping | ( | Bool_t | segmentationOnly = kFALSE | ) |
Check that the mapping has been loaded
Definition at line 454 of file AliMUONCDB.cxx.
Referenced by CheckHV(), MakeBusPatchEvolution(), MakeHVStore(), MakeLVStore(), MakeOccupancyMapStore(), MakePedestalStore(), Plot(), and ShowConfig().
Bool_t AliMUONCDB::CheckOCDB | ( | Bool_t | pathOnly = kFALSE | ) |
Check that OCDB path and run number are properly set
Definition at line 189 of file AliMUONCDB.cxx.
Referenced by AliMUONRecoCheck::InitCalibrationData(), AliMUONRecoCheck::InitGeometryTransformer(), LoadAlignmentData(), LoadField(), LoadMapping(), LoadRecoParam(), ShowConfig(), and WriteToCDB().
AliMUONVStore * AliMUONCDB::Diff | ( | AliMUONVStore & | store1, |
AliMUONVStore & | store2, | ||
const char * | opt = "abs" |
||
) |
creates a store which contains store1-store2 if opt="abs" the difference is absolute one, if opt="rel" then what is stored is (store1-store2)/store1 if opt="percent" then what is stored is rel*100
WARNING Works only for stores which holds AliMUONVCalibParam objects
Definition at line 620 of file AliMUONCDB.cxx.
Bool_t AliMUONCDB::IsSt1DCSAliasRemapped | ( | const TString & | name | ) |
Definition at line 476 of file AliMUONCDB.cxx.
Referenced by CheckHV_ALIROOT_6402(), and PatchHV().
TClonesArray * AliMUONCDB::LoadAlignmentData | ( | ) |
Load and return the array of alignment objects.
Definition at line 595 of file AliMUONCDB.cxx.
Bool_t AliMUONCDB::LoadField | ( | ) |
Load magnetic field (existing field will be deleted). OCDB path and run number are supposed to be set.
Definition at line 501 of file AliMUONCDB.cxx.
Referenced by MUONClusterInfo(), MUONefficiency(), MUONmassPlot(), MUONRecoCheck(), MUONRefit(), AliMUONAlignmentTask::NotifyRun(), and AliMUONESDInterface::ResetTracker().
Bool_t AliMUONCDB::LoadMapping | ( | Bool_t | segmentationOnly = kFALSE | ) |
Load mapping (existing mapping will be unloaded). OCDB path and run number are supposed to be set.
Definition at line 525 of file AliMUONCDB.cxx.
Referenced by CheckHV(), CheckHV_ALIROOT_6402(), AliMUONTrackerVoltages::DCSNamer(), AliMUONESDInterface::ESDToMUON(), AliMUONTrackerHV::HVoff(), AliMUONRecoCheck::MakeReconstructibleTracks(), MUONClusterInfo(), MUONOfflineShift(), MUONRecoCheck(), MUONRefit(), MUONStatusMap(), AliMUONAlignmentTask::NotifyRun(), AliMUONTrackerHV::ReportTrips(), ShowConfig(), and TestRecPoints().
AliMUONRecoParam * AliMUONCDB::LoadRecoParam | ( | ) |
Load and return reconstruction parameters. OCDB path is supposed to be set.
Definition at line 558 of file AliMUONCDB.cxx.
Referenced by AddEventsSingleRun(), CheckHV(), DataMakerReading(), DIMUONFakes(), GetBadChannels(), MUONClusterInfo(), MUONFakes(), MUONRecoCheck(), MUONStatusMap(), AliMUONESDInterface::ResetTracker(), ShowConfig(), and TestRecPoints().
Int_t AliMUONCDB::MakeBusPatchEvolution | ( | AliMergeableCollection & | bpevo, |
int | timeResolution = 60 |
||
) |
Make a fake bus patch evolution mergeable collection, where the (mean) occupancy is the bus patch id
Definition at line 763 of file AliMUONCDB.cxx.
Referenced by WriteBPEVO().
Int_t AliMUONCDB::MakeGlobalTriggerConfigStore | ( | AliMUONGlobalCrateConfig & | gtm | ) |
Make a global trigger config store. All masks (disable) set to 0x00 for each Darc board (Ch.F.)
Definition at line 1292 of file AliMUONCDB.cxx.
Referenced by WriteGlobalTriggerConfig().
Int_t AliMUONCDB::MakeHVStore | ( | TMap & | aliasMap, |
Bool_t | defaultValues | ||
) |
Int_t AliMUONCDB::MakeLocalTriggerMaskStore | ( | AliMUONVStore & | ltm | ) |
Generate local trigger masks store. All masks are set to FFFF
Definition at line 1247 of file AliMUONCDB.cxx.
Referenced by WriteLocalTriggerMasks().
Int_t AliMUONCDB::MakeLVStore | ( | TMap & | aliasMap, |
Bool_t | defaultValues, | ||
time_t | refTime | ||
) |
Int_t AliMUONCDB::MakeOccupancyMapStore | ( | AliMUONVStore & | occupancyMap, |
Bool_t | defaultValues | ||
) |
Create an occupancy map.
Definition at line 1196 of file AliMUONCDB.cxx.
Referenced by WriteOccupancyMap().
Int_t AliMUONCDB::MakePedestalStore | ( | AliMUONVStore & | pedestalStore, |
Bool_t | defaultValues | ||
) |
Create a pedestal store. if defaultValues=true, ped.mean=ped.sigma=1, otherwise mean and sigma are from a gaussian (with parameters defined below by the kPedestal* constants)
Definition at line 1074 of file AliMUONCDB.cxx.
Referenced by WritePedestals().
Int_t AliMUONCDB::MakeRegionalTriggerConfigStore | ( | AliMUONRegionalTriggerConfig & | rtm | ) |
Make a regional trigger config store. Mask is set to FFFF for each local board (Ch.F.)
Definition at line 1275 of file AliMUONCDB.cxx.
Referenced by WriteRegionalTriggerConfig().
AliMUONRejectList * AliMUONCDB::MakeRejectListStore | ( | Bool_t | defaultValues | ) |
Create a reject list
Definition at line 1176 of file AliMUONCDB.cxx.
Referenced by WriteRejectList().
Int_t AliMUONCDB::MakeTriggerDCSStore | ( | TMap & | aliasMap | ) |
Create a Trigger HV and Currents store
Definition at line 965 of file AliMUONCDB.cxx.
Referenced by WriteTriggerDCS().
AliMUONTriggerEfficiencyCells * AliMUONCDB::MakeTriggerEfficiency | ( | const char * | file = "$ALICE_ROOT/MUON/data/efficiencyCells.dat" | ) |
Make a trigger efficiency object from a file.
Definition at line 1317 of file AliMUONCDB.cxx.
Referenced by WriteTriggerEfficiency().
AliMUONTriggerLut * AliMUONCDB::MakeTriggerLUT | ( | const char * | file = "$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root" | ) |
Make a triggerlut object, from a file.
Definition at line 1304 of file AliMUONCDB.cxx.
Referenced by WriteTriggerLut().
Double_t AliMUONCDB::MeanHVValueForDCSAlias | ( | TMap & | hvMap, |
const char * | hvChannel | ||
) |
Definition at line 2035 of file AliMUONCDB.cxx.
Referenced by CheckHV(), and CheckHV_ALIROOT_6402().
void AliMUONCDB::PatchHV | ( | TMap & | hvMap, |
TList * | messages, | ||
Bool_t | onlySt1remapped = kFALSE |
||
) |
Definition at line 1327 of file AliMUONCDB.cxx.
Referenced by CheckHV_ALIROOT_6402().
TH1 ** AliMUONCDB::Plot | ( | const AliMUONVStore & | store, |
const char * | name, | ||
Int_t | nbins = 512 |
||
) |
Make histograms of each dimension of the AliMUONVCalibParam contained inside store. It produces histograms named name_0, name_1, etc...
Definition at line 689 of file AliMUONCDB.cxx.
void AliMUONCDB::ReadIntegers | ( | const char * | filename, |
std::vector< int > & | integers | ||
) |
Read integers from filename, where integers are either separated by "," or by return carriage
Read integers from filename, where integers are either separated by "," or by return carriage
Definition at line 1859 of file AliMUONCDB.cxx.
Referenced by CheckHV_ALIROOT_6402(), MUONStatusMapEvolution(), and ShowFaultyBusPatches().
void AliMUONCDB::ShowConfig | ( | Bool_t | withStatusMap = kFALSE | ) |
Dumps the current tracker configuration, i.e. number and identity of missing buspatches If statusMap is true, will also take into account the status map to report the number of good channels
Definition at line 1700 of file AliMUONCDB.cxx.
void AliMUONCDB::ShowFaultyBusPatches | ( | const char * | runlist, |
double | occLimit = 0.1 , |
||
const char * | outputBaseName = "faulty.buspatches" , |
||
const char * | ocdbPath = "raw://" |
||
) |
Shows the list of bus patches above a given occupancy limit, for each run in the runlist
Definition at line 1904 of file AliMUONCDB.cxx.
void AliMUONCDB::WriteBPEVO | ( | Int_t | startRun, |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write a fake bus patch evolution to OCDB
Definition at line 1671 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteConfig | ( | Int_t | startRun, |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write complete tracker configuration to OCDB
Definition at line 1648 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteGlobalTriggerConfig | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write global trigger masks to OCDB
Definition at line 1454 of file AliMUONCDB.cxx.
Referenced by MakeMUONCDBObjects(), and WriteTrigger().
void AliMUONCDB::WriteHV | ( | Bool_t | defaultValues, |
Int_t | startRun, | ||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
generate HV values (either cste = 1500 V) if defaultValues=true or random if defaultValues=false, see makeHVStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1519 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteHV | ( | const char * | inputFile, |
Int_t | runNumber | ||
) |
Read HV values from an external file containing a TMap of the DCS values store them into CDB located at cdbpath, with a validity period of exactly one run
Definition at line 1500 of file AliMUONCDB.cxx.
void AliMUONCDB::WriteLocalTriggerMasks | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write local trigger masks to OCDB
Definition at line 1421 of file AliMUONCDB.cxx.
Referenced by WriteTrigger().
void AliMUONCDB::WriteLV | ( | Bool_t | defaultValues, |
Int_t | startRun, | ||
Int_t | endRun = AliCDBRunRange::Infinity() , |
||
time_t | refTime = 1449969676 |
||
) |
generate LV values (either cste = -2.5 / 3.3 / 2.5 V) if defaultValues=true or random if defaultValues=false, see makeLVStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1539 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteMapping | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Definition at line 1626 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteOccupancyMap | ( | Bool_t | defaultValues, |
Int_t | startRun, | ||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
generate occupancy map values (either empty one if defaultValues=true, or random one, see MakeOccupancyMapStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1595 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WritePedestals | ( | Bool_t | defaultValues, |
Int_t | startRun, | ||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
generate pedestal values (either 0 if defaultValues=true or random if defaultValues=false, see makePedestalStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1578 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteRegionalTriggerConfig | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write regional trigger masks to OCDB
Definition at line 1437 of file AliMUONCDB.cxx.
Referenced by MakeMUONCDBObjects(), and WriteTrigger().
void AliMUONCDB::WriteRejectList | ( | Bool_t | defaultValues, |
Int_t | startRun, | ||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
generate reject list values (either empty one if defaultValues=true, or random one, see MakeRejectListStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1612 of file AliMUONCDB.cxx.
Referenced by WriteTracker().
void AliMUONCDB::WriteToCDB | ( | const char * | calibpath, |
TObject * | object, | ||
Int_t | startRun, | ||
Int_t | endRun, | ||
Bool_t | defaultValues | ||
) |
Write a given object to OCDB
Definition at line 1390 of file AliMUONCDB.cxx.
Referenced by BuildSystematicMap(), CheckTriggerDCS(), CreateWeightedRejectList(), MakeMUONRecoParamArray(), MakeMUONSingleRecoParam(), MUONTriggerChamberEfficiency(), WriteBPEVO(), WriteConfig(), WriteGlobalTriggerConfig(), WriteHV(), WriteLocalTriggerMasks(), WriteLV(), WriteOccupancyMap(), WritePedestals(), WriteRegionalTriggerConfig(), WriteRejectList(), WriteToCDB(), WriteTriggerDCS(), WriteTriggerEfficiency(), and WriteTriggerLut().
void AliMUONCDB::WriteToCDB | ( | const char * | calibpath, |
TObject * | object, | ||
Int_t | startRun, | ||
Int_t | endRun, | ||
const char * | filename | ||
) |
Write a given object to OCDB
Definition at line 1377 of file AliMUONCDB.cxx.
void AliMUONCDB::WriteToCDB | ( | TObject * | object, |
const char * | calibpath, | ||
Int_t | startRun = 0 , |
||
Int_t | endRun = AliCDBRunRange::Infinity() , |
||
const char * | comment = "" , |
||
const char * | responsible = "AliMUONCDB tester class" |
||
) |
Write a given object to OCDB
Definition at line 1404 of file AliMUONCDB.cxx.
void AliMUONCDB::WriteTracker | ( | Bool_t | defaultValues = kTRUE , |
Int_t | startRun = 0 , |
||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Writes all Tracker related calibration to CDB
Definition at line 1685 of file AliMUONCDB.cxx.
Referenced by MakeMUONCDBObjects().
void AliMUONCDB::WriteTrigger | ( | Bool_t | defaultValues = kTRUE , |
Int_t | startRun = 0 , |
||
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Writes all Trigger related calibration to CDB
Definition at line 1635 of file AliMUONCDB.cxx.
Referenced by MakeMUONCDBObjects().
void AliMUONCDB::WriteTriggerDCS | ( | Int_t | startRun, |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
generate Trigger HV and current values (using nominal HV for avalanche mode) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun
Definition at line 1560 of file AliMUONCDB.cxx.
Referenced by WriteTrigger().
void AliMUONCDB::WriteTriggerEfficiency | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write trigger efficiency to OCDB
Definition at line 1486 of file AliMUONCDB.cxx.
Referenced by WriteTrigger().
void AliMUONCDB::WriteTriggerLut | ( | Int_t | startRun = 0 , |
Int_t | endRun = AliCDBRunRange::Infinity() |
||
) |
Write trigger LUT to OCDB
Definition at line 1472 of file AliMUONCDB.cxx.
Referenced by WriteTrigger().