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 (uint8_t roll, GEMPadDigi pad1, GEMPadDigi pad2)
 
 GEMCoPadDigi ()
 
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::GEMCoPadDigi ( uint8_t  roll,
GEMPadDigi  pad1,
GEMPadDigi  pad2 
)
explicit

Definition at line 4 of file GEMCoPadDigi.cc.

4  :
5  roll_(roll),
6  first_(f),
7  second_(s)
8 {}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
uint8_t roll_
Definition: GEMCoPadDigi.h:36
double f[11][100]
int roll() const
Definition: GEMCoPadDigi.h:26
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
GEMCoPadDigi::GEMCoPadDigi ( )

Definition at line 11 of file GEMCoPadDigi.cc.

11  :
12  roll_(0),
13  first_(GEMPadDigi()),
15 {}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
uint8_t roll_
Definition: GEMCoPadDigi.h:36
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37

Member Function Documentation

int GEMCoPadDigi::bx ( int  l) const

Definition at line 46 of file GEMCoPadDigi.cc.

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

Referenced by CSCGEMMotherboard::constructLCTsGEM(), CSCGEMMotherboard::getBX(), and roll().

47 {
48  if (l==1) return first_.bx();
49  else if (l==2) return second_.bx();
50  else return -99; // invalid
51 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
int bx() const
Definition: GEMPadDigi.h:28
GEMPadDigi GEMCoPadDigi::first ( ) const
inline

Definition at line 30 of file GEMCoPadDigi.h.

References first_.

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

30 {return first_;}
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
bool GEMCoPadDigi::isValid ( void  ) const
bool GEMCoPadDigi::operator!= ( const GEMCoPadDigi digi) const

Definition at line 26 of file GEMCoPadDigi.cc.

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

27 {
28  return digi.first() != first_ or digi.second() != second_ or digi.roll() != roll_;
29 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
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
uint8_t roll_
Definition: GEMCoPadDigi.h:36
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:30
int roll() const
Definition: GEMCoPadDigi.h:26
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:31
bool GEMCoPadDigi::operator== ( const GEMCoPadDigi digi) const

Definition at line 19 of file GEMCoPadDigi.cc.

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

20 {
21  return digi.first() == first_ and digi.second() == second_ and digi.roll() == roll_;
22 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
uint8_t roll_
Definition: GEMCoPadDigi.h:36
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:30
int roll() const
Definition: GEMCoPadDigi.h:26
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:31
int GEMCoPadDigi::pad ( int  l) const

Definition at line 38 of file GEMCoPadDigi.cc.

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

Referenced by CSCGEMMotherboard::constructLCTsGEM(), CSCGEMMotherboard::getPad(), and roll().

39 {
40  if (l==1) return first_.pad();
41  else if (l==2) return second_.pad();
42  else return -99; // invalid
43 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
int pad() const
Definition: GEMPadDigi.h:27
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
void GEMCoPadDigi::print ( void  ) const

Definition at line 54 of file GEMCoPadDigi.cc.

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

Referenced by second().

55 {
56  std::cout << "Roll " << roll_ << ", pad1 " << first_.pad() << " bx1 " << first_.bx()
57  << ", Pad2 " << second_.pad() << " bx2 " << second_.bx() << std::endl;
58 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38
int pad() const
Definition: GEMPadDigi.h:27
uint8_t roll_
Definition: GEMCoPadDigi.h:36
GEMPadDigi first_
Definition: GEMCoPadDigi.h:37
int bx() const
Definition: GEMPadDigi.h:28
int GEMCoPadDigi::roll ( ) const
inline

Definition at line 26 of file GEMCoPadDigi.h.

References bx(), checklumidiff::l, pad(), and roll_.

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

26 {return roll_;}
uint8_t roll_
Definition: GEMCoPadDigi.h:36
GEMPadDigi GEMCoPadDigi::second ( ) const
inline

Definition at line 31 of file GEMCoPadDigi.h.

References print(), and second_.

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

31 {return second_;}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:38

Member Data Documentation

GEMPadDigi GEMCoPadDigi::first_
private

Definition at line 37 of file GEMCoPadDigi.h.

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

uint8_t GEMCoPadDigi::roll_
private

Definition at line 36 of file GEMCoPadDigi.h.

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

GEMPadDigi GEMCoPadDigi::second_
private

Definition at line 38 of file GEMCoPadDigi.h.

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