1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//-------------------------------------------------
//
/** \class DTSectCollId
* Definition of a Sector Coollector
*
*
*
* \authors
* D. Bonacorsi,
* S. Marcellini
*
*/
//
//--------------------------------------------------
#ifndef DT_SECT_COLL_ID_H
#define DT_SECT_COLL_ID_H
class DTSectCollId {
public:
// Constructor
DTSectCollId() : _wheel(0), _sector(0) {}
DTSectCollId(int wheel_id, int sector_id) : _wheel(wheel_id), _sector(sector_id) {}
DTSectCollId(const DTSectCollId& statId) : _wheel(statId._wheel), _sector(statId._sector) {}
// Destructor
// Operations
inline int wheel() const { return _wheel; }
inline int sector() const { return _sector; }
inline bool operator==(const DTSectCollId&) const;
inline bool operator!=(const DTSectCollId&) const;
inline bool operator<(const DTSectCollId&) const;
inline DTSectCollId& operator=(const DTSectCollId&);
private:
int _wheel;
int _sector;
};
#include <iosfwd>
std::ostream& operator<<(std::ostream& os, const DTSectCollId& id);
#include "DataFormats/MuonDetId/interface/DTSectCollId.icc"
#endif
|