DataFormats
MuonDetId
interface
DTSectCollId.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
13
//
14
//--------------------------------------------------
15
#ifndef DT_SECT_COLL_ID_H
16
#define DT_SECT_COLL_ID_H
17
18
class
DTSectCollId
{
19
public
:
20
// Constructor
21
DTSectCollId
() :
_wheel
(0),
_sector
(0) {}
22
23
DTSectCollId
(
int
wheel_id,
int
sector_id) :
_wheel
(wheel_id),
_sector
(sector_id) {}
24
25
DTSectCollId
(
const
DTSectCollId
& statId) :
_wheel
(statId.
_wheel
),
_sector
(statId.
_sector
) {}
26
27
// Destructor
28
29
// Operations
30
inline
int
wheel
()
const
{
return
_wheel
; }
31
inline
int
sector
()
const
{
return
_sector
; }
32
33
inline
bool
operator==
(
const
DTSectCollId
&)
const
;
34
inline
bool
operator!=
(
const
DTSectCollId
&)
const
;
35
inline
bool
operator<
(
const
DTSectCollId
&)
const
;
36
37
inline
DTSectCollId
&
operator=
(
const
DTSectCollId
&);
38
39
private
:
40
int
_wheel
;
41
int
_sector
;
42
};
43
44
#include <iosfwd>
45
std::ostream&
operator<<
(std::ostream& os,
const
DTSectCollId
&
id
);
46
#include "DataFormats/MuonDetId/interface/DTSectCollId.icc"
47
48
#endif
DTSectCollId::operator=
DTSectCollId & operator=(const DTSectCollId &)
DTSectCollId::DTSectCollId
DTSectCollId(int wheel_id, int sector_id)
Definition:
DTSectCollId.h:23
DTSectCollId::DTSectCollId
DTSectCollId()
Definition:
DTSectCollId.h:21
DTSectCollId::DTSectCollId
DTSectCollId(const DTSectCollId &statId)
Definition:
DTSectCollId.h:25
DTSectCollId
Definition:
DTSectCollId.h:18
operator<<
std::ostream & operator<<(std::ostream &os, const DTSectCollId &id)
Definition:
DTSectCollId.cc:30
DTSectCollId::wheel
int wheel() const
Definition:
DTSectCollId.h:30
DTSectCollId::operator!=
bool operator!=(const DTSectCollId &) const
DTSectCollId::sector
int sector() const
Definition:
DTSectCollId.h:31
DTSectCollId::_sector
int _sector
Definition:
DTSectCollId.h:41
DTSectCollId::operator<
bool operator<(const DTSectCollId &) const
DTSectCollId::_wheel
int _wheel
Definition:
DTSectCollId.h:40
DTSectCollId::operator==
bool operator==(const DTSectCollId &) const
Generated for CMSSW Reference Manual by
1.8.16