test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecoUncertainties.h
Go to the documentation of this file.
1 #ifndef CondFormats_DTObjects_DTRecoUncertainties_H
2 #define CondFormats_DTObjects_DTRecoUncertainties_H
3 
12 
13 #include <map>
14 #include <vector>
15 #include <string>
16 #include <stdint.h>
17 
18 class DTWireId;
19 
21 public:
24 
26  virtual ~DTRecoUncertainties();
27 
28  void setVersion(int version) {
30  }
31 
34  int version() const {
35  return theVersion;
36  }
37 
39  float get(const DTWireId& wireid, unsigned int index) const;
40 
42  void set(const DTWireId& wireid, const std::vector<float>& values);
43 
44 
45 
47  typedef std::map<uint32_t, std::vector<float> >::const_iterator const_iterator;
48  const_iterator begin() const;
49  const_iterator end() const;
50 
51 private:
52 
53  // map of uncertainties per SL Id. The position in the vector depends on
54  // version() as it depends on the Reco algorithm being used.
55  std::map<uint32_t, std::vector<float> > payload;
56 
58 
60 };
61 #endif
62 
void setVersion(int version)
const_iterator begin() const
virtual ~DTRecoUncertainties()
Destructor.
std::map< uint32_t, std::vector< float > >::const_iterator const_iterator
Access methods to data.
std::map< uint32_t, std::vector< float > > payload
const_iterator end() const
#define COND_SERIALIZABLE
Definition: Serializable.h:38
void set(const DTWireId &wireid, const std::vector< float > &values)
fills the map
DTRecoUncertainties()
Constructor.