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 (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
 
GEMPadDigi second () const
 

Private Attributes

GEMPadDigi first_
 
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 ( GEMPadDigi  pad1,
GEMPadDigi  pad2 
)
explicit

Definition at line 4 of file GEMCoPadDigi.cc.

4  :
5  first_(f),
6  second_(s)
7 {}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
double f[11][100]
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
GEMCoPadDigi::GEMCoPadDigi ( )

Definition at line 10 of file GEMCoPadDigi.cc.

10  :
11  first_(GEMPadDigi()),
13 {}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34

Member Function Documentation

int GEMCoPadDigi::bx ( int  l) const

Definition at line 38 of file GEMCoPadDigi.cc.

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

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

Definition at line 28 of file GEMCoPadDigi.h.

References first_.

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

28 {return first_;}
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
bool GEMCoPadDigi::operator!= ( const GEMCoPadDigi digi) const

Definition at line 24 of file GEMCoPadDigi.cc.

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

25 {
26  return digi.first() != first_ or digi.second() != second_;
27 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
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
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:28
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:29
bool GEMCoPadDigi::operator== ( const GEMCoPadDigi digi) const

Definition at line 17 of file GEMCoPadDigi.cc.

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

18 {
19  return digi.first() == first_ and digi.second() == second_;
20 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:28
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:29
int GEMCoPadDigi::pad ( int  l) const

Definition at line 30 of file GEMCoPadDigi.cc.

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

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

Definition at line 46 of file GEMCoPadDigi.cc.

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

47 {
48  std::cout << "Pad1 " << first_.pad() << " bx1 " << first_.bx()
49  << ", Pad2 " << second_.pad() << " bx2 " << second_.bx() << std::endl;
50 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
int pad() const
Definition: GEMPadDigi.h:25
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
int bx() const
Definition: GEMPadDigi.h:26
tuple cout
Definition: gather_cfg.py:121
GEMPadDigi GEMCoPadDigi::second ( ) const
inline

Definition at line 29 of file GEMCoPadDigi.h.

References second_.

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

29 {return second_;}
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35

Member Data Documentation

GEMPadDigi GEMCoPadDigi::first_
private

Definition at line 34 of file GEMCoPadDigi.h.

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

GEMPadDigi GEMCoPadDigi::second_
private

Definition at line 35 of file GEMCoPadDigi.h.

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