CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 (uint16_t pad, int16_t bx, enum GEMSubDetId::Station station=GEMSubDetId::Station::GE11, unsigned nPart=NumberPartitions::GE11)
 
 GEMPadDigi ()
 
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.

◆ NumberPartitions

Enumerator
ME0 
GE11 
GE21 
GE21SplitStrip 

Definition at line 22 of file GEMPadDigi.h.

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.

unsigned part_
Definition: GEMPadDigi.h:50
int16_t bx() const
Definition: GEMPadDigi.h:39
GEMSubDetId::Station station() const
Definition: GEMPadDigi.h:40
uint16_t pad_
Definition: GEMPadDigi.h:46
GEMSubDetId::Station station_
Definition: GEMPadDigi.h:48
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
uint16_t pad() const
Definition: GEMPadDigi.h:38
int16_t bx_
Definition: GEMPadDigi.h:47

◆ 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) {}
unsigned part_
Definition: GEMPadDigi.h:50
uint16_t pad_
Definition: GEMPadDigi.h:46
GEMSubDetId::Station station_
Definition: GEMPadDigi.h:48
int16_t bx_
Definition: GEMPadDigi.h:47

Member Function Documentation

◆ bx()

int16_t GEMPadDigi::bx ( ) const
inline

Definition at line 39 of file GEMPadDigi.h.

References bx_.

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

39 { return bx_; }
int16_t bx_
Definition: GEMPadDigi.h:47

◆ isValid()

bool GEMPadDigi::isValid ( void  ) const

◆ nPartitions()

unsigned GEMPadDigi::nPartitions ( ) const
inline

Definition at line 42 of file GEMPadDigi.h.

References part_.

42 { return part_; }
unsigned part_
Definition: GEMPadDigi.h:50

◆ operator!=()

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

Definition at line 16 of file GEMPadDigi.cc.

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

16 { return pad_ != digi.pad() or bx_ != digi.bx(); }
int16_t bx() const
Definition: GEMPadDigi.h:39
uint16_t pad_
Definition: GEMPadDigi.h:46
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
uint16_t pad() const
Definition: GEMPadDigi.h:38
int16_t bx_
Definition: GEMPadDigi.h:47

◆ operator<()

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

Precedence operator.

Definition at line 19 of file GEMPadDigi.cc.

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

19  {
20  if (digi.bx() == bx_)
21  return digi.pad() < pad_;
22  else
23  return digi.bx() < bx_;
24 }
int16_t bx() const
Definition: GEMPadDigi.h:39
uint16_t pad_
Definition: GEMPadDigi.h:46
uint16_t pad() const
Definition: GEMPadDigi.h:38
int16_t bx_
Definition: GEMPadDigi.h:47

◆ operator==()

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

Definition at line 11 of file GEMPadDigi.cc.

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

11  {
12  return pad_ == digi.pad() and bx_ == digi.bx() and station_ == digi.station();
13 }
int16_t bx() const
Definition: GEMPadDigi.h:39
GEMSubDetId::Station station() const
Definition: GEMPadDigi.h:40
uint16_t pad_
Definition: GEMPadDigi.h:46
GEMSubDetId::Station station_
Definition: GEMPadDigi.h:48
uint16_t pad() const
Definition: GEMPadDigi.h:38
int16_t bx_
Definition: GEMPadDigi.h:47

◆ pad()

uint16_t GEMPadDigi::pad ( ) const
inline

Definition at line 38 of file GEMPadDigi.h.

References pad_.

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

38 { return pad_; }
uint16_t pad_
Definition: GEMPadDigi.h:46

◆ print()

void GEMPadDigi::print ( void  ) const

Definition at line 40 of file GEMPadDigi.cc.

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

40 { std::cout << "Pad " << pad() << " bx " << bx() << std::endl; }
int16_t bx() const
Definition: GEMPadDigi.h:39
uint16_t pad() const
Definition: GEMPadDigi.h:38

◆ station()

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

Definition at line 40 of file GEMPadDigi.h.

References station_.

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

40 { return station_; }
GEMSubDetId::Station station_
Definition: GEMPadDigi.h:48

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().