#include <DTRecoConditions.h>
Public Types | |
typedef std::map< uint32_t, std::vector< double > >::const_iterator | const_iterator |
Public Member Functions | |
const_iterator | begin () const |
Access the data. More... | |
DTRecoConditions () | |
Constructor. More... | |
DTRecoConditions (const DTRecoConditions &) | |
const_iterator | end () const |
float | get (const DTWireId &wireid, double *x=nullptr) const |
Get the value correspoding to the given WireId, / using x[] as parameters of the parametrization when relevant. More... | |
std::string | getFormulaExpr () const |
const DTRecoConditions & | operator= (const DTRecoConditions &) |
void | set (const DTWireId &wireid, const std::vector< double > &values) |
Fill the payload. More... | |
void | setFormulaExpr (const std::string &expr) |
Set the expression representing the formula used for parametrization. More... | |
void | setVersion (int version) |
int | version () const |
Version numer specifying the structure of the payload. See .cc file for details. More... | |
virtual | ~DTRecoConditions () |
Destructor. More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::string | expression |
std::atomic< TFormula * > | formula |
std::atomic< int > | formulaType |
std::map< uint32_t, std::vector< double > > | payload |
int | theVersion |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
DB object for storing per-SL DT reconstruction parameters (ttrig, vdrift, uncertainties), possibly with their dependency from external quantities (like position, angle, etc.)
Dependencies can be specified with the expression set by setFormula(string), representing: -a TFormula, e.g. "[0]+[1]*x", in the most general case; -special cases like "[0]" = fixed constant, that are implemented without calling TFormula.
Definition at line 28 of file DTRecoConditions.h.
typedef std::map<uint32_t, std::vector<double> >::const_iterator DTRecoConditions::const_iterator |
Definition at line 30 of file DTRecoConditions.h.
DTRecoConditions::DTRecoConditions | ( | ) |
DTRecoConditions::DTRecoConditions | ( | const DTRecoConditions & | iOther | ) |
Definition at line 23 of file DTRecoConditions.cc.
|
virtual |
DTRecoConditions::const_iterator DTRecoConditions::begin | ( | void | ) | const |
Access the data.
Definition at line 82 of file DTRecoConditions.cc.
References payload.
DTRecoConditions::const_iterator DTRecoConditions::end | ( | void | ) | const |
Definition at line 84 of file DTRecoConditions.cc.
References payload.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
float DTRecoConditions::get | ( | const DTWireId & | wireid, |
double * | x = nullptr |
||
) | const |
Get the value correspoding to the given WireId, / using x[] as parameters of the parametrization when relevant.
Definition at line 42 of file DTRecoConditions.cc.
References Exception, expression, formula, formulaType, payload, DetId::rawId(), DTLayerId::superlayerId(), groupFilesInBlocks::temp, and x.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), DTRunConditionVar::analyze(), rrapi.RRApi::columns(), util.rrapi.RRApi::columns(), dtCalibration::DTVDriftSegment::compute(), DTLinearDriftFromDBAlgo::compute(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), util.rrapi.RRApi::data(), rrapi.RRApi::data(), DTVDriftWriter::endJob(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
|
inline |
const DTRecoConditions & DTRecoConditions::operator= | ( | const DTRecoConditions & | iOther | ) |
Definition at line 30 of file DTRecoConditions.cc.
References expression, formula, formulaType, payload, and theVersion.
|
private |
void DTRecoConditions::set | ( | const DTWireId & | wireid, |
const std::vector< double > & | values | ||
) |
Fill the payload.
Definition at line 78 of file DTRecoConditions.cc.
References payload, DTLayerId::superlayerId(), and contentValuesCheck::values.
|
inline |
Set the expression representing the formula used for parametrization.
Definition at line 50 of file DTRecoConditions.h.
References jetsAK8_cff::expr, and expression.
|
inline |
Definition at line 40 of file DTRecoConditions.h.
References theVersion, and version().
|
inline |
Version numer specifying the structure of the payload. See .cc file for details.
Definition at line 43 of file DTRecoConditions.h.
References theVersion.
Referenced by DTRunConditionVar::analyze(), DTVDriftWriter::beginRun(), validation.Sample::datasetpattern(), validation.Sample::filename(), DTLinearDriftFromDBAlgo::setES(), dtCalibration::DTVDriftSegment::setES(), and setVersion().
|
friend |
Definition at line 85 of file DTRecoConditions.h.
|
friend |
Definition at line 85 of file DTRecoConditions.h.
|
private |
Definition at line 77 of file DTRecoConditions.h.
Referenced by get(), getFormulaExpr(), operator=(), and setFormulaExpr().
|
mutableprivate |
Definition at line 64 of file DTRecoConditions.h.
Referenced by get(), operator=(), and ~DTRecoConditions().
|
mutableprivate |
Definition at line 71 of file DTRecoConditions.h.
Referenced by get(), and operator=().
|
private |
Definition at line 80 of file DTRecoConditions.h.
Referenced by begin(), end(), get(), operator=(), and set().
|
private |
Definition at line 83 of file DTRecoConditions.h.
Referenced by operator=(), setVersion(), and version().