DataFormats
GEMDigi
interface
GEMPadDigi.h
Go to the documentation of this file.
1
#ifndef DataFormats_GEMDigi_GEMPadDigi_h
2
#define DataFormats_GEMDigi_GEMPadDigi_h
3
12
#include "
DataFormats/MuonDetId/interface/GEMSubDetId.h
"
13
14
#include <cstdint>
15
#include <iosfwd>
16
17
class
GEMPadDigi
{
18
public
:
19
enum
InValid
{
ME0InValid
= 255,
GE11InValid
= 255,
GE21InValid
= 511 };
20
// Newer GE2/1 geometries will have 16 eta partitions
21
// instead of the usual 8.
22
enum
NumberPartitions
{
ME0
= 8,
GE11
= 8,
GE21
= 8,
GE21SplitStrip
= 16 };
23
24
explicit
GEMPadDigi
(uint16_t
pad
,
25
int16_t
bx
,
26
enum
GEMSubDetId::Station
station
=
GEMSubDetId::Station::GE11
,
27
unsigned
nPart
= NumberPartitions::GE11);
28
GEMPadDigi
();
29
30
bool
operator==
(
const
GEMPadDigi
& digi)
const
;
31
bool
operator!=
(
const
GEMPadDigi
& digi)
const
;
32
bool
operator<
(
const
GEMPadDigi
& digi)
const
;
33
// only depends on the "InValid" enum so it also
34
// works on unpacked data
35
bool
isValid
()
const
;
36
37
// return the pad number. counts from 0.
38
uint16_t
pad
()
const
{
return
pad_
; }
39
int16_t
bx
()
const
{
return
bx_
; }
40
GEMSubDetId::Station
station
()
const
{
return
station_
; }
41
42
unsigned
nPartitions
()
const
{
return
part_
; }
43
void
print
()
const
;
44
45
private
:
46
uint16_t
pad_
;
47
int16_t
bx_
;
48
GEMSubDetId::Station
station_
;
49
// number of eta partitions
50
unsigned
part_
;
51
};
52
53
std::ostream&
operator<<
(std::ostream&
o
,
const
GEMPadDigi
& digi);
54
55
#endif
GEMPadDigi::print
void print() const
Definition:
GEMPadDigi.cc:40
GEMPadDigi::ME0InValid
Definition:
GEMPadDigi.h:19
GEMPadDigi
Definition:
GEMPadDigi.h:17
GEMPadDigi::operator!=
bool operator!=(const GEMPadDigi &digi) const
Definition:
GEMPadDigi.cc:16
GEMPadDigi::GE11InValid
Definition:
GEMPadDigi.h:19
GEMPadDigi::InValid
InValid
Definition:
GEMPadDigi.h:19
GEMPadDigi::pad
uint16_t pad() const
Definition:
GEMPadDigi.h:38
GEMPadDigi::bx_
int16_t bx_
Definition:
GEMPadDigi.h:47
GEMPadDigi::GE21
Definition:
GEMPadDigi.h:22
GEMPadDigi::GE21SplitStrip
Definition:
GEMPadDigi.h:22
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:42
GEMSubDetId.h
GEMPadDigi::operator<
bool operator<(const GEMPadDigi &digi) const
Precedence operator.
Definition:
GEMPadDigi.cc:19
operator<<
std::ostream & operator<<(std::ostream &o, const GEMPadDigi &digi)
Definition:
GEMPadDigi.cc:36
nPart
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
GEMSubDetId::Station
Station
Definition:
GEMSubDetId.h:12
GEMPadDigi::ME0
Definition:
GEMPadDigi.h:22
GEMPadDigi::part_
unsigned part_
Definition:
GEMPadDigi.h:50
GEMPadDigi::station
GEMSubDetId::Station station() const
Definition:
GEMPadDigi.h:40
GEMPadDigi::nPartitions
unsigned nPartitions() const
Definition:
GEMPadDigi.h:42
GEMPadDigi::GE21InValid
Definition:
GEMPadDigi.h:19
GEMPadDigi::bx
int16_t bx() const
Definition:
GEMPadDigi.h:39
GEMPadDigi::operator==
bool operator==(const GEMPadDigi &digi) const
Definition:
GEMPadDigi.cc:11
GEMPadDigi::GE11
Definition:
GEMPadDigi.h:22
GEMSubDetId::Station::GE11
GEMPadDigi::station_
GEMSubDetId::Station station_
Definition:
GEMPadDigi.h:48
GEMPadDigi::NumberPartitions
NumberPartitions
Definition:
GEMPadDigi.h:22
GEMPadDigi::isValid
bool isValid() const
Definition:
GEMPadDigi.cc:26
GEMPadDigi::pad_
uint16_t pad_
Definition:
GEMPadDigi.h:46
GEMPadDigi::GEMPadDigi
GEMPadDigi()
Definition:
GEMPadDigi.cc:7
Generated for CMSSW Reference Manual by
1.8.16