CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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 : roll_(roll), first_(f), second_(s) {}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
uint8_t roll_
Definition: GEMCoPadDigi.h:35
int roll() const
Definition: GEMCoPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
GEMCoPadDigi::GEMCoPadDigi ( )

Definition at line 6 of file GEMCoPadDigi.cc.

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 29 of file GEMCoPadDigi.cc.

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

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 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
int16_t bx() const
Definition: GEMPadDigi.h:39
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::isValid ( void  ) const

Definition at line 18 of file GEMCoPadDigi.cc.

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

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

18 { return first_.isValid() and second_.isValid(); }
bool isValid() const
Definition: GEMPadDigi.cc:26
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
bool GEMCoPadDigi::operator!= ( const GEMCoPadDigi digi) const

Definition at line 14 of file GEMCoPadDigi.cc.

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

14  {
15  return digi.first() != first_ or digi.second() != second_ or digi.roll() != roll_;
16 }
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 9 of file GEMCoPadDigi.cc.

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

9  {
10  return digi.first() == first_ and digi.second() == second_ and digi.roll() == roll_;
11 }
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 20 of file GEMCoPadDigi.cc.

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

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 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
uint16_t pad() const
Definition: GEMPadDigi.h:38
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
void GEMCoPadDigi::print ( void  ) const

Definition at line 38 of file GEMCoPadDigi.cc.

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

38  {
39  std::cout << "Roll " << roll_ << ", pad1 " << first_.pad() << " bx1 " << first_.bx() << ", Pad2 " << second_.pad()
40  << " bx2 " << second_.bx() << std::endl;
41 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:37
uint16_t pad() const
Definition: GEMPadDigi.h:38
uint8_t roll_
Definition: GEMCoPadDigi.h:35
GEMPadDigi first_
Definition: GEMCoPadDigi.h:36
int16_t bx() const
Definition: GEMPadDigi.h:39
tuple cout
Definition: gather_cfg.py:144
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(), isValid(), 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(), isValid(), operator!=(), operator==(), pad(), print(), and second().