#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 40 of file DTCalibrationMap.h.
typedef std::vector<float> DTCalibrationMap::CalibConsts |
Definition at line 65 of file DTCalibrationMap.h.
typedef std::map<Key, CalibConsts>::const_iterator DTCalibrationMap::const_iterator |
Definition at line 67 of file DTCalibrationMap.h.
typedef DTWireId DTCalibrationMap::Key |
Definition at line 66 of file DTCalibrationMap.h.
|
private |
Enumerator | |
---|---|
byChamber | |
bySL | |
byLayer | |
byWire |
Definition at line 106 of file DTCalibrationMap.h.
DTCalibrationMap::DTCalibrationMap | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 23 of file DTCalibrationMap.cc.
References MeasureLA_cff::byLayer, gather_cfg::cout, and edm::ParameterSet::getUntrackedParameter().
|
virtual |
void DTCalibrationMap::addCell | ( | Key | wireId, |
const CalibConsts & | calibConst | ||
) |
Definition at line 203 of file DTCalibrationMap.cc.
References edm::hlt::Exception.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 232 of file DTCalibrationMap.cc.
References MeasureLA_cff::byLayer, DTLayerId::layer(), run_regression::ret, DTSuperLayerId::superlayer(), and DTWireId::wire().
|
inline |
const DTCalibrationMap::CalibConsts * DTCalibrationMap::getConsts | ( | DTWireId | wireId | ) | const |
Definition at line 103 of file DTCalibrationMap.cc.
References getKey().
Referenced by DTVDriftCalibration::endJob().
float DTCalibrationMap::getField | ( | DTWireId | wireId, |
int | field | ||
) | const |
Definition at line 129 of file DTCalibrationMap.cc.
References edm::hlt::Exception.
DTCalibrationMap::Key DTCalibrationMap::getKey | ( | DTWireId | wireId | ) | const |
Definition at line 88 of file DTCalibrationMap.cc.
References MeasureLA_cff::byLayer, 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 66 of file DTCalibrationMap.cc.
float DTCalibrationMap::meanVDrift | ( | DTWireId | wireId | ) | const |
Return the mean drift velocity for a particular wire (cm/ns)
Definition at line 73 of file DTCalibrationMap.cc.
|
private |
Definition at line 144 of file DTCalibrationMap.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, mergeVDriftHistosByStation::file, and geometryCSVtoXML::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 80 of file DTCalibrationMap.cc.
float DTCalibrationMap::sigma_tTrig | ( | DTWireId | wireId | ) | const |
Return the sigma of the t_trig (ns) for a particular wire.
Definition at line 59 of file DTCalibrationMap.cc.
float DTCalibrationMap::tTrig | ( | DTWireId | wireId | ) | const |
Return the t_trig (ns) for a particular wire.
Definition at line 52 of file DTCalibrationMap.cc.
void DTCalibrationMap::writeConsts | ( | const std::string & | outputFileName | ) | const |
Definition at line 213 of file DTCalibrationMap.cc.
References filterCSVwithJSON::copy, and dbtoconf::out.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 122 of file DTCalibrationMap.h.
|
private |
Definition at line 125 of file DTCalibrationMap.h.
|
private |
Definition at line 119 of file DTCalibrationMap.h.
|
private |
Definition at line 107 of file DTCalibrationMap.h.
|
private |
Definition at line 128 of file DTCalibrationMap.h.
Referenced by cleanTheConsts(), keyAndConsts_begin(), and keyAndConsts_end().