#include <DTCalibrationMap.h>
Public Types | |
typedef std::vector< float > | CalibConsts |
typedef std::map< Key, CalibConsts >::const_iterator | const_iterator |
typedef DTWireId | Key |
Public Member Functions | |
void | addCell (Key wireId, const CalibConsts &calibConst) |
void | cleanTheConsts () |
DTCalibrationMap (const edm::ParameterSet &pset) | |
Constructor. More... | |
const CalibConsts * | getConsts (DTWireId wireId) const |
float | getField (DTWireId wireId, int field) const |
Key | getKey (DTWireId wireId) const |
const_iterator | keyAndConsts_begin () const |
const_iterator | keyAndConsts_end () const |
float | kFactor (DTWireId wireId) const |
Return the kfactor for a particular wire. More... | |
float | meanVDrift (DTWireId wireId) const |
Return the mean drift velocity for a particular wire (cm/ns) More... | |
float | sigma_meanVDrift (DTWireId wireId) const |
Return the sigma of the mean drift velocity for a particular wire (cm/ns) More... | |
float | sigma_tTrig (DTWireId wireId) const |
Return the sigma of the t_trig (ns) for a particular wire. More... | |
float | tTrig (DTWireId wireId) const |
Return the t_trig (ns) for a particular wire. More... | |
void | writeConsts (const std::string &outputFileName) const |
virtual | ~DTCalibrationMap () |
Destructor. More... | |
Private Types | |
enum | CalibGranularity { byChamber, bySL, byLayer, byWire } |
Private Member Functions | |
bool | checkGranularity (Key aKey) const |
void | readConsts (const std::string &inputFileName) |
Private Attributes | |
std::string | calibConstFileName |
std::string | calibConstGranularity |
unsigned int | nFields |
CalibGranularity | theGranularity |
std::map< Key, CalibConsts > | theMap |
Allow saving and retrieving of calibration constants to/from txt file. This was originally provided for backward compatibility with the ORCA MuBarDigiParameters file. Can be used to save an arbitrary number of constants with the needed granularity and to retrieve them back using the wireId. Current field allocation: fields for each key are allocated to: –First block: legacy descriptors– [0] ttrig [1] sigma_ttrig (obsolete) [2] kfactor (obsolete) [3] vdrift
[4] sigma_vdrift (obsolete, was formerly hacked to include reoslution) [5] t0 [6] t0rms [7] noisy or dead flag [8-9] left for future usage –Second block (optional): free fields [10] Encoded information of free fields: (1000*version)+(100*type)+(number of fields); type is: ttrig=0, vdrift=1, uncertainties=3 [11-end] free fields
Definition at line 37 of file DTCalibrationMap.h.
typedef std::vector<float> DTCalibrationMap::CalibConsts |
Definition at line 62 of file DTCalibrationMap.h.
typedef std::map<Key, CalibConsts>::const_iterator DTCalibrationMap::const_iterator |
Definition at line 64 of file DTCalibrationMap.h.
typedef DTWireId DTCalibrationMap::Key |
Definition at line 63 of file DTCalibrationMap.h.
|
private |
Enumerator | |
---|---|
byChamber | |
bySL | |
byLayer | |
byWire |
Definition at line 93 of file DTCalibrationMap.h.
DTCalibrationMap::DTCalibrationMap | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 23 of file DTCalibrationMap.cc.
References gather_cfg::cout, and muonDTDigis_cfi::pset.
|
virtual |
void DTCalibrationMap::addCell | ( | Key | wireId, |
const CalibConsts & | calibConst | ||
) |
Definition at line 160 of file DTCalibrationMap.cc.
References Exception.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 180 of file DTCalibrationMap.cc.
References DTLayerId::layer(), runTheMatrix::ret, DTSuperLayerId::superlayer(), and DTWireId::wire().
|
inline |
const DTCalibrationMap::CalibConsts * DTCalibrationMap::getConsts | ( | DTWireId | wireId | ) | const |
Definition at line 77 of file DTCalibrationMap.cc.
References utilities::cache().
Referenced by DTVDriftCalibration::endJob().
float DTCalibrationMap::getField | ( | DTWireId | wireId, |
int | field | ||
) | const |
Definition at line 101 of file DTCalibrationMap.cc.
References Exception.
DTCalibrationMap::Key DTCalibrationMap::getKey | ( | DTWireId | wireId | ) | const |
Definition at line 64 of file DTCalibrationMap.cc.
References DTSuperLayerId::chamberId(), DTWireId::layerId(), and DTLayerId::superlayerId().
Referenced by DTVDriftCalibration::endJob(), MatrixToProcess.MatrixToProcess::getConfig(), MatrixToProcess.MatrixToProcess::getProcess(), MatrixToProcess.MatrixToProcess::identityTest(), and MatrixToProcess.MatrixToProcess::load().
|
inline |
|
inline |
float DTCalibrationMap::kFactor | ( | DTWireId | wireId | ) | const |
Return the kfactor for a particular wire.
Definition at line 54 of file DTCalibrationMap.cc.
References CaloRecHitAuxSetter::getField().
float DTCalibrationMap::meanVDrift | ( | DTWireId | wireId | ) | const |
Return the mean drift velocity for a particular wire (cm/ns)
Definition at line 57 of file DTCalibrationMap.cc.
References CaloRecHitAuxSetter::getField().
|
private |
Definition at line 113 of file DTCalibrationMap.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, geometryDiff::file, InefficientDoubleROC::inputFileName, and mps_splice::line.
float DTCalibrationMap::sigma_meanVDrift | ( | DTWireId | wireId | ) | const |
Return the sigma of the mean drift velocity for a particular wire (cm/ns)
Definition at line 60 of file DTCalibrationMap.cc.
References CaloRecHitAuxSetter::getField().
float DTCalibrationMap::sigma_tTrig | ( | DTWireId | wireId | ) | const |
Return the sigma of the t_trig (ns) for a particular wire.
Definition at line 51 of file DTCalibrationMap.cc.
References CaloRecHitAuxSetter::getField().
float DTCalibrationMap::tTrig | ( | DTWireId | wireId | ) | const |
Return the t_trig (ns) for a particular wire.
Definition at line 48 of file DTCalibrationMap.cc.
References CaloRecHitAuxSetter::getField().
void DTCalibrationMap::writeConsts | ( | const std::string & | outputFileName | ) | const |
Definition at line 169 of file DTCalibrationMap.cc.
References filterCSVwithJSON::copy, MillePedeFileConverter_cfg::out, and reco_skim_cfg_mod::outputFileName.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 106 of file DTCalibrationMap.h.
|
private |
Definition at line 109 of file DTCalibrationMap.h.
|
private |
Definition at line 103 of file DTCalibrationMap.h.
|
private |
Definition at line 94 of file DTCalibrationMap.h.
|
private |
Definition at line 112 of file DTCalibrationMap.h.
Referenced by cleanTheConsts(), keyAndConsts_begin(), and keyAndConsts_end().