CMS 3D CMS Logo

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

#include <GEMCoPadDigi.h>

Public Member Functions

int bx (int l) const
 
GEMPadDigi first () const
 
 GEMCoPadDigi ()
 
 GEMCoPadDigi (uint8_t roll, GEMPadDigi pad1, GEMPadDigi pad2)
 
bool isValid () const
 
bool operator!= (const GEMCoPadDigi &digi) const
 
bool operator== (const GEMCoPadDigi &digi) const
 
int pad (int l) const
 
void print () const
 
int roll () const
 
GEMPadDigi second () const
 

Private Attributes

GEMPadDigi first_
 
uint8_t roll_
 
GEMPadDigi second_
 

Detailed Description

Digi for GEM-CSC trigger copads

Author
Sven Dildick

Definition at line 16 of file GEMCoPadDigi.h.

Constructor & Destructor Documentation

◆ GEMCoPadDigi() [1/2]

GEMCoPadDigi::GEMCoPadDigi ( uint8_t  roll,
GEMPadDigi  pad1,
GEMPadDigi  pad2 
)
explicit

Definition at line 4 of file GEMCoPadDigi.cc.

4 : roll_(roll), first_(f), second_(s) {}

◆ GEMCoPadDigi() [2/2]

GEMCoPadDigi::GEMCoPadDigi ( )

Definition at line 6 of file GEMCoPadDigi.cc.

Member Function Documentation

◆ bx()

int GEMCoPadDigi::bx ( int  l) const

Definition at line 29 of file GEMCoPadDigi.cc.

29  {
30  if (l == 1)
31  return first_.bx();
32  else if (l == 2)
33  return second_.bx();
34  else
35  return -99; // invalid
36 }

References GEMPadDigi::bx(), first_, cmsLHEtoEOSManager::l, and second_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ first()

GEMPadDigi GEMCoPadDigi::first ( ) const
inline

Definition at line 29 of file GEMCoPadDigi.h.

29 { return first_; }

References first_.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), operator!=(), operator<<(), and operator==().

◆ isValid()

bool GEMCoPadDigi::isValid ( void  ) const

◆ operator!=()

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

Definition at line 14 of file GEMCoPadDigi.cc.

14  {
15  return digi.first() != first_ or digi.second() != second_ or digi.roll() != roll_;
16 }

References first(), first_, or, roll(), roll_, second(), and second_.

◆ operator==()

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

Definition at line 9 of file GEMCoPadDigi.cc.

9  {
10  return digi.first() == first_ and digi.second() == second_ and digi.roll() == roll_;
11 }

References first(), first_, roll(), roll_, second(), and second_.

◆ pad()

int GEMCoPadDigi::pad ( int  l) const

Definition at line 20 of file GEMCoPadDigi.cc.

20  {
21  if (l == 1)
22  return first_.pad();
23  else if (l == 2)
24  return second_.pad();
25  else
26  return -99; // invalid
27 }

References first_, cmsLHEtoEOSManager::l, GEMPadDigi::pad(), and second_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ print()

void GEMCoPadDigi::print ( void  ) const

Definition at line 38 of file GEMCoPadDigi.cc.

38  {
39  std::cout << "Roll " << roll_ << ", pad1 " << first_.pad() << " bx1 " << first_.bx() << ", Pad2 " << second_.pad()
40  << " bx2 " << second_.bx() << std::endl;
41 }

References GEMPadDigi::bx(), gather_cfg::cout, first_, GEMPadDigi::pad(), roll_, and second_.

◆ roll()

int GEMCoPadDigi::roll ( ) const
inline

Definition at line 25 of file GEMCoPadDigi.h.

25 { return roll_; }

References roll_.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), operator!=(), operator<<(), and operator==().

◆ second()

GEMPadDigi GEMCoPadDigi::second ( ) const
inline

Definition at line 30 of file GEMCoPadDigi.h.

30 { return second_; }

References second_.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), operator!=(), operator<<(), and operator==().

Member Data Documentation

◆ first_

GEMPadDigi GEMCoPadDigi::first_
private

Definition at line 36 of file GEMCoPadDigi.h.

Referenced by bx(), first(), isValid(), operator!=(), operator==(), pad(), and print().

◆ roll_

uint8_t GEMCoPadDigi::roll_
private

Definition at line 35 of file GEMCoPadDigi.h.

Referenced by operator!=(), operator==(), print(), and roll().

◆ second_

GEMPadDigi GEMCoPadDigi::second_
private

Definition at line 37 of file GEMCoPadDigi.h.

Referenced by bx(), isValid(), operator!=(), operator==(), pad(), print(), and second().

GEMPadDigi
Definition: GEMPadDigi.h:17
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMCoPadDigi::roll_
uint8_t roll_
Definition: GEMCoPadDigi.h:35
GEMPadDigi::pad
uint16_t pad() const
Definition: GEMPadDigi.h:38
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GEMCoPadDigi::second_
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
GEMCoPadDigi::first_
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
GEMCoPadDigi::second
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:30
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
GEMPadDigi::bx
int16_t bx() const
Definition: GEMPadDigi.h:39
GEMCoPadDigi::roll
int roll() const
Definition: GEMCoPadDigi.h:25
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::isValid
bool isValid() const
Definition: GEMPadDigi.cc:26
GEMCoPadDigi::first
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:29