CMS 3D CMS Logo

DTRangeT0.h
Go to the documentation of this file.
1 #ifndef DTRangeT0_H
2 #define DTRangeT0_H
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
21 
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 #include <vector>
30 #include <utility>
31 
32 template <class Key, class Content>
33 class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 class DTRangeT0Id {
40 public:
41  DTRangeT0Id();
42  ~DTRangeT0Id();
43 
44  int wheelId;
45  int stationId;
46  int sectorId;
47  int slId;
48 
50 };
51 
53 public:
54  DTRangeT0Data();
56 
57  int t0min;
58  int t0max;
59 
61 };
62 
63 class DTRangeT0 {
64 public:
67  DTRangeT0();
69 
72  ~DTRangeT0();
73 
76  int slRangeT0(int wheelId, int stationId, int sectorId, int slId, int& t0min, int& t0max) const {
78  return get(wheelId, stationId, sectorId, slId, t0min, t0max);
79  };
80  int slRangeT0(const DTSuperLayerId& id, int& t0min, int& t0max) const { return get(id, t0min, t0max); };
81  int get(int wheelId, int stationId, int sectorId, int slId, int& t0min, int& t0max) const;
82  int get(const DTSuperLayerId& id, int& t0min, int& t0max) const;
83 
85  const std::string& version() const;
87 
89  void clear();
90 
91  int setSLRangeT0(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max) {
92  return set(wheelId, stationId, sectorId, slId, t0min, t0max);
93  };
94  int setSLRangeT0(const DTSuperLayerId& id, int t0min, int t0max) { return set(id, t0min, t0max); };
95  int set(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max);
96  int set(const DTSuperLayerId& id, int t0min, int t0max);
97 
99  typedef std::vector<std::pair<DTRangeT0Id, DTRangeT0Data> >::const_iterator const_iterator;
100  const_iterator begin() const;
101  const_iterator end() const;
102 
103  void initialize();
104 
105 private:
106  DTRangeT0(DTRangeT0 const&) = delete;
107  DTRangeT0& operator=(DTRangeT0 const&) = delete;
108 
110 
111  std::vector<std::pair<DTRangeT0Id, DTRangeT0Data> > dataList;
112 
114 
116  std::string mapName() const;
117 
119 };
120 #endif // DTRangeT0_H
ConstRespectingPtr.h
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTRangeT0::mapName
std::string mapName() const
read and store full content
Definition: DTRangeT0.cc:130
DTRangeT0Id::wheelId
int wheelId
Definition: DTRangeT0.h:44
DTRangeT0::DTRangeT0
DTRangeT0()
Definition: DTRangeT0.cc:31
DTRangeT0::version
const std::string & version() const
access version
Definition: DTRangeT0.cc:79
DTRangeT0::operator=
DTRangeT0 & operator=(DTRangeT0 const &)=delete
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTRangeT0Id::~DTRangeT0Id
~DTRangeT0Id()
Definition: DTRangeT0.cc:46
DTRangeT0Data::~DTRangeT0Data
~DTRangeT0Data()
Definition: DTRangeT0.cc:48
DTRangeT0Data
Definition: DTRangeT0.h:52
DTRangeT0Data::DTRangeT0Data
DTRangeT0Data()
Definition: DTRangeT0.cc:39
DTRangeT0
Definition: DTRangeT0.h:63
DTRangeT0Id
Definition: DTRangeT0.h:39
DTRangeT0Data::t0max
int t0max
Definition: DTRangeT0.h:58
DTRangeT0::slRangeT0
int slRangeT0(const DTSuperLayerId &id, int &t0min, int &t0max) const
Definition: DTRangeT0.h:80
DTRangeT0::set
int set(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max)
Definition: DTRangeT0.cc:89
DTRangeT0::dataList
std::vector< std::pair< DTRangeT0Id, DTRangeT0Data > > dataList
Definition: DTRangeT0.h:111
DTRangeT0Data::t0min
int t0min
Definition: DTRangeT0.h:57
DTRangeT0::end
const_iterator end() const
Definition: DTRangeT0.cc:128
DTRangeT0::setSLRangeT0
int setSLRangeT0(const DTSuperLayerId &id, int t0min, int t0max)
Definition: DTRangeT0.h:94
DTRangeT0::slRangeT0
int slRangeT0(int wheelId, int stationId, int sectorId, int slId, int &t0min, int &t0max) const
get content
Definition: DTRangeT0.h:77
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTRangeT0::get
int get(int wheelId, int stationId, int sectorId, int slId, int &t0min, int &t0max) const
Definition: DTRangeT0.cc:53
DTRangeT0::setSLRangeT0
int setSLRangeT0(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max)
Definition: DTRangeT0.h:91
DTRangeT0::~DTRangeT0
~DTRangeT0()
Definition: DTRangeT0.cc:44
DTRangeT0::const_iterator
std::vector< std::pair< DTRangeT0Id, DTRangeT0Data > >::const_iterator const_iterator
Access methods to data.
Definition: DTRangeT0.h:99
Serializable.h
DTBufferTree
Definition: DTBufferTree.h:42
DTRangeT0Id::DTRangeT0Id
DTRangeT0Id()
Definition: DTRangeT0.cc:37
DTRangeT0Id::slId
int slId
Definition: DTRangeT0.h:47
DTRangeT0Id::sectorId
int sectorId
Definition: DTRangeT0.h:46
DTRangeT0Id::stationId
int stationId
Definition: DTRangeT0.h:45
DTRangeT0::begin
const_iterator begin() const
Definition: DTRangeT0.cc:126
DTRangeT0::dataVersion
std::string dataVersion
Definition: DTRangeT0.h:109
DTSuperLayerId.h
DTRangeT0::clear
void clear()
reset content
Definition: DTRangeT0.cc:83
DTRangeT0::dBuf
DTBufferTree< int, int > * dBuf
Definition: DTRangeT0.h:113
DTRangeT0::initialize
void initialize()
Definition: DTRangeT0.cc:136