#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 is mainly 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. The first 5 fields for each key are allocated to ttri, sigma_ttrig, kfactor, vdrift and sigma_vdrift.
Definition at line 29 of file DTCalibrationMap.h.
typedef std::vector<float> DTCalibrationMap::CalibConsts |
Definition at line 54 of file DTCalibrationMap.h.
typedef std::map<Key, CalibConsts>::const_iterator DTCalibrationMap::const_iterator |
Definition at line 56 of file DTCalibrationMap.h.
typedef DTWireId DTCalibrationMap::Key |
Definition at line 55 of file DTCalibrationMap.h.
|
private |
Enumerator | |
---|---|
byChamber | |
bySL | |
byLayer | |
byWire |
Definition at line 95 of file DTCalibrationMap.h.
DTCalibrationMap::DTCalibrationMap | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 25 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 205 of file DTCalibrationMap.cc.
References edm::hlt::Exception.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 234 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 |
float DTCalibrationMap::getField | ( | DTWireId | wireId, |
int | field | ||
) | const |
Definition at line 131 of file DTCalibrationMap.cc.
References edm::hlt::Exception.
DTCalibrationMap::Key DTCalibrationMap::getKey | ( | DTWireId | wireId | ) | const |
Definition at line 90 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 68 of file DTCalibrationMap.cc.
float DTCalibrationMap::meanVDrift | ( | DTWireId | wireId | ) | const |
Return the mean drift velocity for a particular wire (cm/ns)
Definition at line 75 of file DTCalibrationMap.cc.
|
private |
Definition at line 146 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 82 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 61 of file DTCalibrationMap.cc.
float DTCalibrationMap::tTrig | ( | DTWireId | wireId | ) | const |
Return the t_trig (ns) for a particular wire.
Definition at line 54 of file DTCalibrationMap.cc.
void DTCalibrationMap::writeConsts | ( | const std::string & | outputFileName | ) | const |
Definition at line 215 of file DTCalibrationMap.cc.
References filterCSVwithJSON::copy, and dbtoconf::out.
Referenced by DTVDriftCalibration::endJob().
|
private |
Definition at line 111 of file DTCalibrationMap.h.
|
private |
Definition at line 114 of file DTCalibrationMap.h.
|
private |
Definition at line 108 of file DTCalibrationMap.h.
|
private |
Definition at line 96 of file DTCalibrationMap.h.
|
private |
Definition at line 117 of file DTCalibrationMap.h.
Referenced by cleanTheConsts(), keyAndConsts_begin(), and keyAndConsts_end().