AliRoot Core  v5-06-30 (35d6c57)
 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)
 
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 MakeTriggerDCSStore (TMap &aliasMap)
 
Int_t MakePedestalStore (AliMUONVStore &pedestalStore, Bool_t defaultValues)
 
Int_t MakeCapacitanceStore (AliMUONVStore &capaStore, Bool_t defaultValues)
 
Int_t MakeCapacitanceStore (AliMUONVStore &capaStore, const char *file)
 
Int_t MakeGainStore (AliMUONVStore &gainStore, Bool_t defaultValues)
 
Int_t MakeOccupancyMapStore (AliMUONVStore &occupancyMap, Bool_t defaultValues)
 
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 ShowCapacitances ()
 
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 WritePedestals (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
 
void WriteGains (Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
 
void WriteCapacitances (Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
 
void WriteCapacitances (const char *file, Int_t startRun=0, 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 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 559 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 1889 of file AliMUONCDB.cxx.

Referenced by AliMUONTrackerHV::Scan().

Bool_t AliMUONCDB::CheckMapping ( Bool_t  segmentationOnly = kFALSE)

Check that the mapping has been loaded

Definition at line 211 of file AliMUONCDB.cxx.

Referenced by MakeCapacitanceStore(), MakeGainStore(), MakeHVStore(), MakeOccupancyMapStore(), MakePedestalStore(), Plot(), ShowCapacitances(), 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 352 of file AliMUONCDB.cxx.

TClonesArray * AliMUONCDB::LoadAlignmentData ( )

Load and return the array of alignment objects.

Definition at line 327 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 233 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 290 of file AliMUONCDB.cxx.

Referenced by AddEventsSingleRun(), CheckHV(), DataMakerReading(), DIMUONFakes(), GetBadChannels(), MUONClusterInfo(), MUONFakes(), MUONRecoCheck(), MUONStatusMap(), AliMUONESDInterface::ResetTracker(), ShowConfig(), and TestRecPoints().

Int_t AliMUONCDB::MakeCapacitanceStore ( AliMUONVStore capaStore,
Bool_t  defaultValues 
)

Create a capacitance store. if defaultValues=true, all capa are 1.0, otherwise they are from a gaussian with parameters defined in the kCapa* constants below.

Definition at line 869 of file AliMUONCDB.cxx.

Referenced by WriteCapacitances().

Int_t AliMUONCDB::MakeCapacitanceStore ( AliMUONVStore capaStore,
const char *  file 
)

Read the capacitance values from file and append them to the capaStore

Definition at line 858 of file AliMUONCDB.cxx.

Int_t AliMUONCDB::MakeGainStore ( AliMUONVStore gainStore,
Bool_t  defaultValues 
)

Create a gain store. if defaultValues=true, all gains set so that charge = (adc-ped)

otherwise parameters are taken from gaussians with parameters defined in the k* constants below.

Definition at line 955 of file AliMUONCDB.cxx.

Referenced by WriteGains().

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

Referenced by WriteGlobalTriggerConfig().

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

Create a HV store

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

Referenced by WriteLocalTriggerMasks().

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

Create an occupancy map.

Definition at line 807 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 685 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 1063 of file AliMUONCDB.cxx.

Referenced by WriteRegionalTriggerConfig().

AliMUONRejectList * AliMUONCDB::MakeRejectListStore ( Bool_t  defaultValues)

Create a reject list

Definition at line 787 of file AliMUONCDB.cxx.

Referenced by WriteRejectList().

Int_t AliMUONCDB::MakeTriggerDCSStore ( TMap &  aliasMap)

Create a Trigger HV and Currents store

Definition at line 576 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 1105 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 1092 of file AliMUONCDB.cxx.

Referenced by WriteTriggerLut().

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

Definition at line 1847 of file AliMUONCDB.cxx.

Referenced by CheckHV().

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

Referenced by MUONStatusMapEvolution(), and ShowFaultyBusPatches().

void AliMUONCDB::ShowCapacitances ( )

Show briefly the number of capa values we have in the OCDB, and the list of manu that are actually in the config and for which we miss the capa (if any).

Definition at line 1457 of file AliMUONCDB.cxx.

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

void AliMUONCDB::WriteCapacitances ( Bool_t  defaultValues,
Int_t  startRun = 0,
Int_t  endRun = AliCDBRunRange::Infinity() 
)

generate manu capacitance values (either 1 if defaultValues=true or random if defaultValues=false, see makeCapacitanceStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun

Definition at line 1381 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteCapacitances ( const char *  file,
Int_t  startRun = 0,
Int_t  endRun = AliCDBRunRange::Infinity() 
)

read manu capacitance and injection gain values from file and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun

Definition at line 1362 of file AliMUONCDB.cxx.

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

Write complete tracker configuration to OCDB

Definition at line 1419 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteGains ( Bool_t  defaultValues,
Int_t  startRun,
Int_t  endRun = AliCDBRunRange::Infinity() 
)

generate gain values (either 1 if defaultValues=true or random if defaultValues=false, see makeGainStore) and store them into CDB located at cdbpath, with a validity period ranging from startRun to endRun

Definition at line 1345 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 1193 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 1257 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 1239 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 1160 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().

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

Definition at line 1397 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 1312 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 1295 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 1176 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 1329 of file AliMUONCDB.cxx.

Referenced by WriteTracker().

void AliMUONCDB::WriteToCDB ( const char *  calibpath,
TObject *  object,
Int_t  startRun,
Int_t  endRun,
Bool_t  defaultValues 
)
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 1116 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 1143 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 1442 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 1406 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 1277 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 1225 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 1211 of file AliMUONCDB.cxx.

Referenced by WriteTrigger().