AliRoot Core  ee782a0 (ee782a0)
AliMUONCDB Namespace Reference

Helper functions to experience the OCDB. More...

Functions

Bool_t CheckOCDB (Bool_t pathOnly)
 
void CheckHV (Int_t runNumber, Int_t verbose)
 
void CheckHV_ALIROOT_6402 (const char *runlist, Bool_t verbose)
 
Bool_t CheckHV_ALIROOT_6402 (Int_t runNumber, Bool_t verbose)
 
Bool_t CheckMapping (Bool_t segmentationOnly)
 
Bool_t IsSt1DCSAliasRemapped (const TString &name)
 
Bool_t LoadField ()
 
Bool_t LoadMapping (Bool_t segmentationOnly)
 
AliMUONRecoParamLoadRecoParam ()
 
TClonesArray * LoadAlignmentData ()
 
AliMUONVStoreDiff (AliMUONVStore &store1, AliMUONVStore &store2, const char *opt)
 
TH1 ** Plot (const AliMUONVStore &store, const char *name, Int_t nbins)
 
Int_t MakeBusPatchEvolution (AliMergeableCollection &hc, int timeResolution)
 
Int_t MakeHVStore (TMap &aliasMap, Bool_t defaultValues)
 
Int_t MakeLVStore (TMap &aliasMap, Bool_t defaultValues, time_t refTime)
 
void AddDCSValue (TMap &aliasMap, Int_t imeas, const char *smt, const char *sInOut, Int_t rpc, Float_t value)
 
Int_t MakeTriggerDCSStore (TMap &aliasMap)
 
Int_t MakePedestalStore (AliMUONVStore &pedestalStore, Bool_t defaultValues)
 
AliMUONRejectListMakeRejectListStore (Bool_t defaultValues)
 
Int_t MakeOccupancyMapStore (AliMUONVStore &occupancyMapStore, Bool_t defaultValues)
 
Int_t MakeLocalTriggerMaskStore (AliMUONVStore &localBoardMasks)
 
Int_t MakeRegionalTriggerConfigStore (AliMUONRegionalTriggerConfig &rtm)
 
Int_t MakeGlobalTriggerConfigStore (AliMUONGlobalCrateConfig &gtm)
 
AliMUONTriggerLutMakeTriggerLUT (const char *file)
 
AliMUONTriggerEfficiencyCellsMakeTriggerEfficiency (const char *file)
 
void PatchHV (TMap &hvMap, TList *messages, Bool_t onlySt1remapped)
 
void WriteToCDB (const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, const char *filename)
 
void WriteToCDB (const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, Bool_t defaultValues)
 
void WriteToCDB (TObject *object, const char *calibpath, Int_t startRun, Int_t endRun, const char *comment, const char *responsible)
 
void WriteLocalTriggerMasks (Int_t startRun, Int_t endRun)
 
void WriteRegionalTriggerConfig (Int_t startRun, Int_t endRun)
 
void WriteGlobalTriggerConfig (Int_t startRun, Int_t endRun)
 
void WriteTriggerLut (Int_t startRun, Int_t endRun)
 
void WriteTriggerEfficiency (Int_t startRun, Int_t endRun)
 
void WriteHV (const char *inputFile, Int_t runNumber)
 
void WriteHV (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void WriteLV (Bool_t defaultValues, Int_t startRun, Int_t endRun, time_t refTime)
 
void WriteTriggerDCS (Int_t startRun, Int_t endRun)
 
void WritePedestals (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void WriteOccupancyMap (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void WriteRejectList (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void WriteMapping (Int_t startRun, Int_t endRun)
 
void WriteTrigger (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void WriteConfig (Int_t startRun, Int_t endRun)
 
void WriteBPEVO (Int_t startRun, Int_t endRun)
 
void WriteTracker (Bool_t defaultValues, Int_t startRun, Int_t endRun)
 
void ShowConfig (Bool_t withStatusMap)
 
void ReadIntegers (const char *filename, std::vector< int > &integers)
 
void ShowFaultyPedestalsBusPatches (const char *runlist, double fractionLimit, double meanLimit, double sigmaLimit, double outputFractionLimit, const char *outputBaseName, const char *ocdbPath)
 
void ShowFaultyBusPatches (const char *runlist, double occLimit, const char *outputBaseName, const char *ocdbPath)
 
Double_t MeanHVValueForDCSAlias (TMap &hvMap, const char *hvChannel)
 

Detailed Description

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

Author
Laurent Aphecetche

Function Documentation

void AliMUONCDB::AddDCSValue ( TMap &  aliasMap,
Int_t  imeas,
const char *  smt,
const char *  sInOut,
Int_t  rpc,
Float_t  value 
)

Definition at line 892 of file AliMUONCDB.cxx.

Referenced by MakeTriggerDCSStore().

void AliMUONCDB::CheckHV ( Int_t  runNumber,
Int_t  verbose 
)

Check the HV values in OCDB for a given run

Definition at line 217 of file AliMUONCDB.cxx.

Referenced by AliMUONTrackerHV::Scan().

void AliMUONCDB::CheckHV_ALIROOT_6402 ( const char *  runlist,
Bool_t  verbose 
)

Check HV for some St1 channels (the ones that are remapped in AliMUONCalibrationData::PatchSt1DCSAliases (see JIRA bug ALIROOT-6402 for details)

Definition at line 343 of file AliMUONCDB.cxx.

Bool_t AliMUONCDB::CheckHV_ALIROOT_6402 ( Int_t  runNumber,
Bool_t  verbose 
)

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 376 of file AliMUONCDB.cxx.

Bool_t AliMUONCDB::CheckMapping ( Bool_t  segmentationOnly)

Check that the mapping has been loaded

Definition at line 434 of file AliMUONCDB.cxx.

Referenced by CheckHV(), MakeBusPatchEvolution(), MakeHVStore(), MakeLVStore(), MakeOccupancyMapStore(), MakePedestalStore(), Plot(), and ShowConfig().

Bool_t AliMUONCDB::CheckOCDB ( Bool_t  pathOnly)
AliMUONVStore * AliMUONCDB::Diff ( AliMUONVStore store1,
AliMUONVStore store2,
const char *  opt 
)

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 597 of file AliMUONCDB.cxx.

Bool_t AliMUONCDB::IsSt1DCSAliasRemapped ( const TString &  name)

Definition at line 456 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 572 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 478 of file AliMUONCDB.cxx.

Referenced by MUONClusterInfo(), MUONefficiency(), MUONmassPlot(), MUONRecoCheck(), MUONRefit(), AliMUONAlignmentTask::NotifyRun(), and AliMUONESDInterface::ResetTracker().

Bool_t AliMUONCDB::LoadMapping ( Bool_t  segmentationOnly)
AliMUONRecoParam * AliMUONCDB::LoadRecoParam ( )

Load and return reconstruction parameters. OCDB path is supposed to be set.

Definition at line 535 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 hc,
int  timeResolution 
)

Make a fake bus patch evolution mergeable collection, where the (mean) occupancy is the bus patch id

Definition at line 723 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 1224 of file AliMUONCDB.cxx.

Referenced by WriteGlobalTriggerConfig().

Int_t AliMUONCDB::MakeHVStore ( TMap &  aliasMap,
Bool_t  defaultValues 
)

Create a HV store

Definition at line 776 of file AliMUONCDB.cxx.

Referenced by WriteHV().

Int_t AliMUONCDB::MakeLocalTriggerMaskStore ( AliMUONVStore localBoardMasks)

Generate local trigger masks store. All masks are set to FFFF

Definition at line 1182 of file AliMUONCDB.cxx.

Referenced by WriteLocalTriggerMasks().

Int_t AliMUONCDB::MakeLVStore ( TMap &  aliasMap,
Bool_t  defaultValues,
time_t  refTime 
)

Create a MCH LV store

Definition at line 833 of file AliMUONCDB.cxx.

Referenced by WriteLV().

Int_t AliMUONCDB::MakeOccupancyMapStore ( AliMUONVStore occupancyMapStore,
Bool_t  defaultValues 
)

Create an occupancy map.

Definition at line 1133 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 1018 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 1207 of file AliMUONCDB.cxx.

Referenced by WriteRegionalTriggerConfig().

AliMUONRejectList * AliMUONCDB::MakeRejectListStore ( Bool_t  defaultValues)

Create a reject list

Definition at line 1114 of file AliMUONCDB.cxx.

Referenced by WriteRejectList().

Int_t AliMUONCDB::MakeTriggerDCSStore ( TMap &  aliasMap)

Create a Trigger HV and Currents store

Definition at line 909 of file AliMUONCDB.cxx.

Referenced by WriteTriggerDCS().

AliMUONTriggerEfficiencyCells * AliMUONCDB::MakeTriggerEfficiency ( const char *  file)

Make a trigger efficiency object from a file.

Definition at line 1249 of file AliMUONCDB.cxx.

Referenced by WriteTriggerEfficiency().

AliMUONTriggerLut * AliMUONCDB::MakeTriggerLUT ( const char *  file)

Make a triggerlut object, from a file.

Definition at line 1236 of file AliMUONCDB.cxx.

Referenced by WriteTriggerLut().

Double_t AliMUONCDB::MeanHVValueForDCSAlias ( TMap &  hvMap,
const char *  hvChannel 
)

Definition at line 2105 of file AliMUONCDB.cxx.

Referenced by CheckHV(), and CheckHV_ALIROOT_6402().

void AliMUONCDB::PatchHV ( TMap &  hvMap,
TList *  messages,
Bool_t  onlySt1remapped 
)

Definition at line 1259 of file AliMUONCDB.cxx.

Referenced by CheckHV_ALIROOT_6402().

TH1 ** AliMUONCDB::Plot ( const AliMUONVStore store,
const char *  name,
Int_t  nbins 
)

Make histograms of each dimension of the AliMUONVCalibParam contained inside store. It produces histograms named name_0, name_1, etc...

Definition at line 655 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

Definition at line 1758 of file AliMUONCDB.cxx.

Referenced by CheckHV_ALIROOT_6402(), ShowFaultyBusPatches(), and ShowFaultyPedestalsBusPatches().

void AliMUONCDB::ShowConfig ( Bool_t  withStatusMap)

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 1614 of file AliMUONCDB.cxx.

void AliMUONCDB::ShowFaultyBusPatches ( const char *  runlist,
double  occLimit,
const char *  outputBaseName,
const char *  ocdbPath 
)

Shows the list of bus patches above a given occupancy limit, for each run in the runlist

Definition at line 1974 of file AliMUONCDB.cxx.

void AliMUONCDB::ShowFaultyPedestalsBusPatches ( const char *  runlist,
double  fractionLimit,
double  meanLimit,
double  sigmaLimit,
double  outputFractionLimit,
const char *  outputBaseName,
const char *  ocdbPath 
)

Shows the list of bus patches where the fraction of pads with pedestal mean >= meanLimit || pedestal sigma >= sigmaLimit is greater than fractionLimit.

Do this for each run in the runlist If a buspatch is bad for more than outputFractionLimit, printout its id

Definition at line 1860 of file AliMUONCDB.cxx.

void AliMUONCDB::WriteBPEVO ( Int_t  startRun,
Int_t  endRun 
)

Write a fake bus patch evolution to OCDB

Definition at line 1586 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteConfig ( Int_t  startRun,
Int_t  endRun 
)

Write complete tracker configuration to OCDB

Definition at line 1565 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteGlobalTriggerConfig ( Int_t  startRun,
Int_t  endRun 
)

Write global trigger masks to OCDB

Definition at line 1377 of file AliMUONCDB.cxx.

Referenced by MakeMUONCDBObjects(), and WriteTrigger().

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 1420 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteHV ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

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 1439 of file AliMUONCDB.cxx.

void AliMUONCDB::WriteLocalTriggerMasks ( Int_t  startRun,
Int_t  endRun 
)

Write local trigger masks to OCDB

Definition at line 1346 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().

void AliMUONCDB::WriteLV ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun,
time_t  refTime 
)

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 1458 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteMapping ( Int_t  startRun,
Int_t  endRun 
)

Definition at line 1543 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteOccupancyMap ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

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 1512 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WritePedestals ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

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 1495 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteRegionalTriggerConfig ( Int_t  startRun,
Int_t  endRun 
)

Write regional trigger masks to OCDB

Definition at line 1361 of file AliMUONCDB.cxx.

Referenced by MakeMUONCDBObjects(), and WriteTrigger().

void AliMUONCDB::WriteRejectList ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

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 1529 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 1315 of file AliMUONCDB.cxx.

void AliMUONCDB::WriteToCDB ( TObject *  object,
const char *  calibpath,
Int_t  startRun,
Int_t  endRun,
const char *  comment,
const char *  responsible 
)

Write a given object to OCDB

Definition at line 1329 of file AliMUONCDB.cxx.

void AliMUONCDB::WriteTracker ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

Writes all Tracker related calibration to CDB

Definition at line 1599 of file AliMUONCDB.cxx.

Referenced by MakeMUONCDBObjects().

void AliMUONCDB::WriteTrigger ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun 
)

Writes all Trigger related calibration to CDB

Definition at line 1552 of file AliMUONCDB.cxx.

Referenced by MakeMUONCDBObjects().

void AliMUONCDB::WriteTriggerDCS ( Int_t  startRun,
Int_t  endRun 
)

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 1478 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().

void AliMUONCDB::WriteTriggerEfficiency ( Int_t  startRun,
Int_t  endRun 
)

Write trigger efficiency to OCDB

Definition at line 1407 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().

void AliMUONCDB::WriteTriggerLut ( Int_t  startRun,
Int_t  endRun 
)

Write trigger LUT to OCDB

Definition at line 1394 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().