#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 27 of file DTCalibrationMap.h.
typedef std::vector<float> DTCalibrationMap::CalibConsts |
Definition at line 52 of file DTCalibrationMap.h.
typedef std::map<Key, CalibConsts>::const_iterator DTCalibrationMap::const_iterator |
Definition at line 54 of file DTCalibrationMap.h.
typedef DTWireId DTCalibrationMap::Key |
Definition at line 53 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 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, and statics::field.
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 109 of file DTCalibrationMap.h.
|
private |
Definition at line 112 of file DTCalibrationMap.h.
|
private |
Definition at line 106 of file DTCalibrationMap.h.
|
private |
Definition at line 94 of file DTCalibrationMap.h.
|
private |
Definition at line 115 of file DTCalibrationMap.h.
Referenced by cleanTheConsts(), keyAndConsts_begin(), and keyAndConsts_end().