CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
GEMPadDigi Class Reference

#include <GEMPadDigi.h>

Public Types

enum  InValid { ME0InValid = 255, GE11InValid = 255, GE21InValid = 511 }
 
enum  NumberPartitions { ME0 = 8, GE11 = 8, GE21 = 8, GE21SplitStrip = 16 }
 

Public Member Functions

int16_t bx () const
 
 GEMPadDigi ()
 
 GEMPadDigi (uint16_t pad, int16_t bx, enum GEMSubDetId::Station station=GEMSubDetId::Station::GE11, unsigned nPart=NumberPartitions::GE11)
 
bool isValid () const
 
unsigned nPartitions () const
 
bool operator!= (const GEMPadDigi &digi) const
 
bool operator< (const GEMPadDigi &digi) const
 Precedence operator. More...
 
bool operator== (const GEMPadDigi &digi) const
 
uint16_t pad () const
 
void print () const
 
GEMSubDetId::Station station () const
 

Private Attributes

int16_t bx_
 
uint16_t pad_
 
unsigned part_
 
GEMSubDetId::Station station_
 

Detailed Description

Digi for GEM-CSC trigger pads

Author
Vadim Khotilovich

Definition at line 17 of file GEMPadDigi.h.

Member Enumeration Documentation

◆ InValid

Enumerator
ME0InValid 
GE11InValid 
GE21InValid 

Definition at line 19 of file GEMPadDigi.h.

19 { ME0InValid = 255, GE11InValid = 255, GE21InValid = 511 };

◆ NumberPartitions

Enumerator
ME0 
GE11 
GE21 
GE21SplitStrip 

Definition at line 22 of file GEMPadDigi.h.

22 { ME0 = 8, GE11 = 8, GE21 = 8, GE21SplitStrip = 16 };

Constructor & Destructor Documentation

◆ GEMPadDigi() [1/2]

GEMPadDigi::GEMPadDigi ( uint16_t  pad,
int16_t  bx,
enum GEMSubDetId::Station  station = GEMSubDetId::Station::GE11,
unsigned  nPart = NumberPartitions::GE11 
)
explicit

Definition at line 4 of file GEMPadDigi.cc.

◆ GEMPadDigi() [2/2]

GEMPadDigi::GEMPadDigi ( )

Definition at line 7 of file GEMPadDigi.cc.

8  : pad_(GE11InValid), bx_(-99), station_(GEMSubDetId::Station::GE11), part_(NumberPartitions::GE11) {}

Member Function Documentation

◆ bx()

int16_t GEMPadDigi::bx ( ) const
inline

Definition at line 39 of file GEMPadDigi.h.

39 { return bx_; }

References bx_.

Referenced by GEMCoPadDigi::bx(), operator!=(), operator<(), operator<<(), operator==(), GEMCoPadDigi::print(), and print().

◆ isValid()

bool GEMPadDigi::isValid ( void  ) const

◆ nPartitions()

unsigned GEMPadDigi::nPartitions ( ) const
inline

Definition at line 42 of file GEMPadDigi.h.

42 { return part_; }

References part_.

◆ operator!=()

bool GEMPadDigi::operator!= ( const GEMPadDigi digi) const

Definition at line 16 of file GEMPadDigi.cc.

16 { return pad_ != digi.pad() or bx_ != digi.bx(); }

References bx(), bx_, or, pad(), and pad_.

◆ operator<()

bool GEMPadDigi::operator< ( const GEMPadDigi digi) const

Precedence operator.

Definition at line 19 of file GEMPadDigi.cc.

19  {
20  if (digi.bx() == bx_)
21  return digi.pad() < pad_;
22  else
23  return digi.bx() < bx_;
24 }

References bx(), bx_, pad(), and pad_.

◆ operator==()

bool GEMPadDigi::operator== ( const GEMPadDigi digi) const

Definition at line 11 of file GEMPadDigi.cc.

11  {
12  return pad_ == digi.pad() and bx_ == digi.bx() and station_ == digi.station();
13 }

References bx(), bx_, pad(), pad_, station(), and station_.

◆ pad()

uint16_t GEMPadDigi::pad ( ) const
inline

Definition at line 38 of file GEMPadDigi.h.

38 { return pad_; }

References pad_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), GEMCoPadDigi::pad(), GEMCoPadDigi::print(), and print().

◆ print()

void GEMPadDigi::print ( void  ) const

Definition at line 40 of file GEMPadDigi.cc.

40 { std::cout << "Pad " << pad() << " bx " << bx() << std::endl; }

References bx(), gather_cfg::cout, and pad().

◆ station()

GEMSubDetId::Station GEMPadDigi::station ( ) const
inline

Definition at line 40 of file GEMPadDigi.h.

40 { return station_; }

References station_.

Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and operator==().

Member Data Documentation

◆ bx_

int16_t GEMPadDigi::bx_
private

Definition at line 47 of file GEMPadDigi.h.

Referenced by bx(), operator!=(), operator<(), and operator==().

◆ pad_

uint16_t GEMPadDigi::pad_
private

Definition at line 46 of file GEMPadDigi.h.

Referenced by isValid(), operator!=(), operator<(), operator==(), and pad().

◆ part_

unsigned GEMPadDigi::part_
private

Definition at line 50 of file GEMPadDigi.h.

Referenced by nPartitions().

◆ station_

GEMSubDetId::Station GEMPadDigi::station_
private

Definition at line 48 of file GEMPadDigi.h.

Referenced by isValid(), operator==(), and station().

GEMSubDetId::Station::ME0
GEMPadDigi::ME0InValid
Definition: GEMPadDigi.h:19
GEMPadDigi::GE11InValid
Definition: GEMPadDigi.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMPadDigi::pad
uint16_t pad() const
Definition: GEMPadDigi.h:38
GEMPadDigi::bx_
int16_t bx_
Definition: GEMPadDigi.h:47
CTPPSpixelLocalTrackReconstructionInfo::invalid
GEMPadDigi::GE21
Definition: GEMPadDigi.h:22
GEMPadDigi::GE21SplitStrip
Definition: GEMPadDigi.h:22
GEMSubDetId::Station::GE21
nPart
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
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::GE21InValid
Definition: GEMPadDigi.h:19
GEMPadDigi::bx
int16_t bx() const
Definition: GEMPadDigi.h:39
GEMPadDigi::GE11
Definition: GEMPadDigi.h:22
GEMSubDetId::Station::GE11
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
GEMPadDigi::station_
GEMSubDetId::Station station_
Definition: GEMPadDigi.h:48
GEMPadDigi::pad_
uint16_t pad_
Definition: GEMPadDigi.h:46