26 expression(iOther.expression),
28 theVersion(iOther.theVersion) {}
47 const vector<double>& par = slIt->second;
56 std::unique_ptr<TFormula>
temp{
new TFormula(
"DTExpr",
expression.c_str())};
57 TFormula* expected =
nullptr;
58 if (
formula.compare_exchange_strong(expected,
temp.get())) {
71 return par[unsigned(x[0])];
74 return (*formula).EvalPar(x, par.data());
const_iterator end() const
void set(const DTWireId &wireid, const std::vector< double > &values)
Fill the payload.
std::map< uint32_t, std::vector< double > > payload
constexpr uint32_t rawId() const
get the raw id
std::map< uint32_t, std::vector< double > >::const_iterator const_iterator
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
const DTRecoConditions & operator=(const DTRecoConditions &)
DTRecoConditions()
Constructor.
const_iterator begin() const
Access the data.
uint16_t const *__restrict__ x
float get(const DTWireId &wireid, double *x=nullptr) const
Get the value correspoding to the given WireId, / using x[] as parameters of the parametrization whe...
virtual ~DTRecoConditions()
Destructor.
std::atomic< TFormula * > formula
std::atomic< int > formulaType