61 const vector<double>& par = slIt->second;
70 std::unique_ptr<TFormula>
temp{
new TFormula(
"DTExpr",
expression.c_str())};
71 TFormula* expected =
nullptr;
72 if(
formula.compare_exchange_strong(expected,
temp.get())) {
85 return par[unsigned (x[0])];
88 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
std::map< uint32_t, std::vector< double > >::const_iterator const_iterator
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
float get(const DTWireId &wireid, double *x=0) const
Get the value correspoding to the given WireId, / using x[] as parameters of the parametrization when...
uint32_t rawId() const
get the raw id
const DTRecoConditions & operator=(const DTRecoConditions &)
DTRecoConditions()
Constructor.
const_iterator begin() const
Access the data.
virtual ~DTRecoConditions()
Destructor.
std::atomic< TFormula * > formula
std::atomic< int > formulaType