CMS 3D CMS Logo

DTRecoUncertainties.h
Go to the documentation of this file.
1 #ifndef CondFormats_DTObjects_DTRecoUncertainties_H
2 #define CondFormats_DTObjects_DTRecoUncertainties_H
3 
11 
12 #include <map>
13 #include <vector>
14 #include <string>
15 #include <cstdint>
16 
17 class DTWireId;
18 
20 public:
23 
25  virtual ~DTRecoUncertainties();
26 
28 
31  int version() const { return theVersion; }
32 
34  float get(const DTWireId& wireid, unsigned int index) const;
35 
37  void set(const DTWireId& wireid, const std::vector<float>& values);
38 
40  typedef std::map<uint32_t, std::vector<float> >::const_iterator const_iterator;
41  const_iterator begin() const;
42  const_iterator end() const;
43 
44 private:
45  // map of uncertainties per SL Id. The position in the vector depends on
46  // version() as it depends on the Reco algorithm being used.
47  std::map<uint32_t, std::vector<float> > payload;
48 
50 
52 };
53 #endif
DTRecoUncertainties::setVersion
void setVersion(int version)
Definition: DTRecoUncertainties.h:27
DTRecoUncertainties::const_iterator
std::map< uint32_t, std::vector< float > >::const_iterator const_iterator
Access methods to data.
Definition: DTRecoUncertainties.h:40
DTRecoUncertainties
Definition: DTRecoUncertainties.h:19
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
DTRecoUncertainties::payload
std::map< uint32_t, std::vector< float > > payload
Definition: DTRecoUncertainties.h:47
DTRecoUncertainties::get
float get(const DTWireId &wireid, unsigned int index) const
get the uncertainties for the SL correspoding to the given WireId and for the correct step as defined...
Definition: DTRecoUncertainties.cc:21
DTRecoUncertainties::set
void set(const DTWireId &wireid, const std::vector< float > &values)
fills the map
Definition: DTRecoUncertainties.cc:40
DTWireId
Definition: DTWireId.h:12
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
DTRecoUncertainties::theVersion
int theVersion
Definition: DTRecoUncertainties.h:49
DTRecoUncertainties::end
const_iterator end() const
Definition: DTRecoUncertainties.cc:46
Serializable.h
DTRecoUncertainties::DTRecoUncertainties
DTRecoUncertainties()
Constructor.
Definition: DTRecoUncertainties.cc:17
DTRecoUncertainties::~DTRecoUncertainties
virtual ~DTRecoUncertainties()
Destructor.
Definition: DTRecoUncertainties.cc:19
DTRecoUncertainties::version
int version() const
Definition: DTRecoUncertainties.h:31
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
DTRecoUncertainties::begin
const_iterator begin() const
Definition: DTRecoUncertainties.cc:44