CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecoConditions.h
Go to the documentation of this file.
1 #ifndef CondFormats_DTObjects_DTRecoConditions_H
2 #define CondFormats_DTObjects_DTRecoConditions_H
3 
17 
18 #include <map>
19 #include <vector>
20 #include <string>
21 #include <stdint.h>
22 
23 class DTWireId;
24 class TFormula;
25 
27 public:
28  typedef std::map<uint32_t, std::vector<double> >::const_iterator const_iterator;
29 
32 
34  virtual ~DTRecoConditions();
35 
36  void setVersion(int version) {
38  }
39 
41  int version() const {
42  return theVersion;
43  }
44 
47  float get(const DTWireId& wireid, double* x=0) const;
48 
50  void setFormulaExpr(const std::string& expr) {
51  expression=expr;
52  }
53 
55  return expression;
56  }
57 
59  void set(const DTWireId& wireid, const std::vector<double>& values);
60 
62  const_iterator begin() const;
63  const_iterator end() const;
64 
65 private:
66 
67  // The formula used for parametrization (transient pointer)
68  mutable TFormula* formula COND_TRANSIENT;
69 
70  // Formula evalaution strategy, derived from expression and cached for efficiency reasons
72 
73  // String with the expression representing the formula used for parametrization
75 
76  // Actual data
77  std::map<uint32_t, std::vector<double> > payload;
78 
79  // Versioning
81 
83 };
84 #endif
85 
const_iterator end() const
int version() const
Version numer specifying the structure of the payload. See .cc file for details.
void setVersion(int version)
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
std::string getFormulaExpr() const
DTRecoConditions()
Constructor.
const_iterator begin() const
Access the data.
virtual ~DTRecoConditions()
Destructor.
#define COND_TRANSIENT
Definition: Serializable.h:60
#define COND_SERIALIZABLE
Definition: Serializable.h:37
std::string expression
void setFormulaExpr(const std::string &expr)
Set the expression representing the formula used for parametrization.
Definition: DDAxes.h:10