CondFormats
DTObjects
interface
DTRecoUncertainties.h
Go to the documentation of this file.
1
#ifndef CondFormats_DTObjects_DTRecoUncertainties_H
2
#define CondFormats_DTObjects_DTRecoUncertainties_H
3
10
#include "
CondFormats/Serialization/interface/Serializable.h
"
11
12
#include <map>
13
#include <vector>
14
#include <string>
15
#include <cstdint>
16
17
class
DTWireId
;
18
19
class
DTRecoUncertainties
{
20
public
:
22
DTRecoUncertainties
();
23
25
virtual
~DTRecoUncertainties
();
26
27
void
setVersion
(
int
version
) {
theVersion
=
version
; }
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
49
int
theVersion
;
50
51
COND_SERIALIZABLE
;
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
Generated for CMSSW Reference Manual by
1.8.16