AliRoot Core  1687b2a (1687b2a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONCDB Namespace Reference

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)
 
AliMUONRecoParamLoadRecoParam ()
 
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)
 
AliMUONRejectListMakeRejectListStore (Bool_t defaultValues)
 
Int_t MakeLocalTriggerMaskStore (AliMUONVStore &ltm)
 
Int_t MakeRegionalTriggerConfigStore (AliMUONRegionalTriggerConfig &rtm)
 
Int_t MakeGlobalTriggerConfigStore (AliMUONGlobalCrateConfig &gtm)
 
AliMUONTriggerLutMakeTriggerLUT (const char *file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root")
 
AliMUONTriggerEfficiencyCellsMakeTriggerEfficiency (const char *file="$ALICE_ROOT/MUON/data/efficiencyCells.dat")
 
AliMUONVStoreDiff (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())
 

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 945 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 351 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 386 of file AliMUONCDB.cxx.

Bool_t AliMUONCDB::CheckMapping ( Bool_t  segmentationOnly = kFALSE)

Check that the mapping has been loaded

Definition at line 451 of file AliMUONCDB.cxx.

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

Bool_t AliMUONCDB::CheckOCDB ( Bool_t  pathOnly = kFALSE)
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 617 of file AliMUONCDB.cxx.

Bool_t AliMUONCDB::IsSt1DCSAliasRemapped ( const TString &  name)

Definition at line 473 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 592 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 498 of file AliMUONCDB.cxx.

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

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

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

Definition at line 555 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 760 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 1289 of file AliMUONCDB.cxx.

Referenced by WriteGlobalTriggerConfig().

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

Create a HV store

Definition at line 812 of file AliMUONCDB.cxx.

Referenced by WriteHV().

Int_t AliMUONCDB::MakeLocalTriggerMaskStore ( AliMUONVStore ltm)

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

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

Referenced by WriteLV().

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

Create an occupancy map.

Definition at line 1193 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 1071 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 1272 of file AliMUONCDB.cxx.

Referenced by WriteRegionalTriggerConfig().

AliMUONRejectList * AliMUONCDB::MakeRejectListStore ( Bool_t  defaultValues)

Create a reject list

Definition at line 1173 of file AliMUONCDB.cxx.

Referenced by WriteRejectList().

Int_t AliMUONCDB::MakeTriggerDCSStore ( TMap &  aliasMap)

Create a Trigger HV and Currents store

Definition at line 962 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 1314 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 1301 of file AliMUONCDB.cxx.

Referenced by WriteTriggerLut().

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

Definition at line 2032 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 1324 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 686 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 1856 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 1697 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 1901 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 1668 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 1645 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 1451 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 1516 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 1497 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 1418 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 1536 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteMapping ( Int_t  startRun = 0,
Int_t  endRun = AliCDBRunRange::Infinity() 
)

Definition at line 1623 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 1592 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 1575 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 1434 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 1609 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

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 1374 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 1401 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 1682 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 1632 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 1557 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 1483 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 1469 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().