CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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:37
uint8_t roll_
Definition: GEMCoPadDigi.h:35
double f[11][100]
int roll() const
Definition: GEMCoPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
GEMCoPadDigi::GEMCoPadDigi ( )

Definition at line 11 of file GEMCoPadDigi.cc.

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

Member Function Documentation

int GEMCoPadDigi::bx ( int  l) const

Definition at line 40 of file GEMCoPadDigi.cc.

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

41 {
42  if (l==1) return first_.bx();
43  else if (l==2) return second_.bx();
44  else return -99; // invalid
45 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
int bx() const
Definition: GEMPadDigi.h:26
GEMPadDigi GEMCoPadDigi::first ( ) const
inline

Definition at line 29 of file GEMCoPadDigi.h.

References first_.

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

29 {return first_;}
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
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:37
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::EventIDconst &, edm::Timestampconst & > 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:35
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:29
int roll() const
Definition: GEMCoPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:30
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:37
uint8_t roll_
Definition: GEMCoPadDigi.h:35
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:29
int roll() const
Definition: GEMCoPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:30
int GEMCoPadDigi::pad ( int  l) const

Definition at line 32 of file GEMCoPadDigi.cc.

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

33 {
34  if (l==1) return first_.pad();
35  else if (l==2) return second_.pad();
36  else return -99; // invalid
37 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
int pad() const
Definition: GEMPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
void GEMCoPadDigi::print ( void  ) const

Definition at line 48 of file GEMCoPadDigi.cc.

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

49 {
50  std::cout << "Roll " << roll_ << ", pad1 " << first_.pad() << " bx1 " << first_.bx()
51  << ", Pad2 " << second_.pad() << " bx2 " << second_.bx() << std::endl;
52 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
int pad() const
Definition: GEMPadDigi.h:25
uint8_t roll_
Definition: GEMCoPadDigi.h:35
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
int bx() const
Definition: GEMPadDigi.h:26
tuple cout
Definition: gather_cfg.py:145
int GEMCoPadDigi::roll ( ) const
inline

Definition at line 25 of file GEMCoPadDigi.h.

References roll_.

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

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

Definition at line 30 of file GEMCoPadDigi.h.

References second_.

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

30 {return second_;}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37

Member Data Documentation

GEMPadDigi GEMCoPadDigi::first_
private

Definition at line 36 of file GEMCoPadDigi.h.

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

uint8_t GEMCoPadDigi::roll_
private

Definition at line 35 of file GEMCoPadDigi.h.

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

GEMPadDigi GEMCoPadDigi::second_
private

Definition at line 37 of file GEMCoPadDigi.h.

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