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 //------------------------------------
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();
61  ~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
static AlgebraicMatrix initialize()
int wheelId
Definition: DTRangeT0.h:46
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
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
int setSLRangeT0(int wheelId, int stationId, int sectorId, int slId, int t0min, int t0max)
Definition: DTRangeT0.h:117
int setSLRangeT0(const DTSuperLayerId &id, int t0min, int t0max)
Definition: DTRangeT0.h:124
#define end
Definition: vmac.h:37
std::vector< std::pair< DTRangeT0Id, DTRangeT0Data > > dataList
Definition: DTRangeT0.h:154
#define COND_TRANSIENT
Definition: Serializable.h:61
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:38
#define begin
Definition: vmac.h:30
int stationId
Definition: DTRangeT0.h:47