test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 #include <utility>
32 
33 template <class Key, class Content> class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
39 class DTRangeT0Id {
40 
41  public:
42 
43  DTRangeT0Id();
44  ~DTRangeT0Id();
45 
46  int wheelId;
47  int stationId;
48  int sectorId;
49  int slId;
50 
51 
53 };
54 
55 
57 
58  public:
59 
60  DTRangeT0Data();
62 
63  int t0min;
64  int t0max;
65 
66 
68 };
69 
70 
71 class DTRangeT0 {
72 
73  public:
74 
77  DTRangeT0();
78  DTRangeT0( const std::string& version );
79 
82  ~DTRangeT0();
83 
86  int slRangeT0( int wheelId,
88  int stationId,
89  int sectorId,
90  int slId,
91  int& t0min,
92  int& t0max ) const
93  { return get( wheelId, stationId, sectorId, slId,
94  t0min, t0max ); };
95  int slRangeT0( const DTSuperLayerId& id,
96  int& t0min,
97  int& t0max ) const
98  { return get( id, t0min, t0max ); };
99  int get( int wheelId,
100  int stationId,
101  int sectorId,
102  int slId,
103  int& t0min,
104  int& t0max ) const;
105  int get( const DTSuperLayerId& id,
106  int& t0min,
107  int& t0max ) const;
108 
110  const
111  std::string& version() const;
112  std::string& version();
113 
115  void clear();
116 
117  int setSLRangeT0( int wheelId,
118  int stationId,
119  int sectorId,
120  int slId,
121  int t0min,
122  int t0max )
123  { return set( wheelId, stationId, sectorId, slId, t0min, t0max ); };
124  int setSLRangeT0( const DTSuperLayerId& id,
125  int t0min,
126  int t0max )
127  { return set( id, t0min, t0max ); };
128  int set( int wheelId,
129  int stationId,
130  int sectorId,
131  int slId,
132  int t0min,
133  int t0max );
134  int set( const DTSuperLayerId& id,
135  int t0min,
136  int t0max );
137 
139  typedef std::vector< std::pair<DTRangeT0Id,
142  const_iterator begin() const;
143  const_iterator end() const;
144 
145  void initialize();
146 
147  private:
148 
149  DTRangeT0(DTRangeT0 const&);
150  DTRangeT0& operator=(DTRangeT0 const&);
151 
153 
154  std::vector< std::pair<DTRangeT0Id,DTRangeT0Data> > dataList;
155 
157 
159  std::string mapName() const;
160 
161 
163 };
164 #endif // DTRangeT0_H
DTRangeT0 & operator=(DTRangeT0 const &)
int slRangeT0(int wheelId, int stationId, int sectorId, int slId, int &t0min, int &t0max) const
get content
Definition: DTRangeT0.h:87
std::string mapName() const
read and store full content
Definition: DTRangeT0.cc:201
int wheelId
Definition: DTRangeT0.h:46
const_iterator end() const
Definition: DTRangeT0.cc:196
std::vector< std::pair< DTRangeT0Id, DTRangeT0Data > >::const_iterator const_iterator
Access methods to data.
Definition: DTRangeT0.h:141
std::string dataVersion
Definition: DTRangeT0.h:152
const std::string & version() const
access version
Definition: DTRangeT0.cc:121
int setSLRangeT0(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max)
Definition: DTRangeT0.h:117
void initialize()
Definition: DTRangeT0.cc:208
int setSLRangeT0(const DTSuperLayerId &id, int t0min, int t0max)
Definition: DTRangeT0.h:124
std::vector< std::pair< DTRangeT0Id, DTRangeT0Data > > dataList
Definition: DTRangeT0.h:154
~DTRangeT0()
Definition: DTRangeT0.cc:63
#define COND_TRANSIENT
Definition: Serializable.h:60
void clear()
reset content
Definition: DTRangeT0.cc:131
int slRangeT0(const DTSuperLayerId &id, int &t0min, int &t0max) const
Definition: DTRangeT0.h:95
int sectorId
Definition: DTRangeT0.h:48
#define COND_SERIALIZABLE
Definition: Serializable.h:37
const_iterator begin() const
Definition: DTRangeT0.cc:191
int set(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max)
Definition: DTRangeT0.cc:138
int stationId
Definition: DTRangeT0.h:47
DTBufferTree< int, int > * dBuf
Definition: DTRangeT0.h:156