CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMCoPadDigi.cc
Go to the documentation of this file.
2 #include <iostream>
3 
5  first_(f),
6  second_(s)
7 {}
8 
9 
11  first_(GEMPadDigi()),
12  second_(GEMPadDigi())
13 {}
14 
15 
16 // Comparison
18 {
19  return digi.first() == first_ and digi.second() == second_;
20 }
21 
22 
23 // Comparison
25 {
26  return digi.first() != first_ or digi.second() != second_;
27 }
28 
29 
30 int GEMCoPadDigi::pad(int l) const
31 {
32  if (l==1) return first_.pad();
33  else if (l==2) return second_.pad();
34  else return -99; // invalid
35 }
36 
37 
38 int GEMCoPadDigi::bx(int l) const
39 {
40  if (l==1) return first_.bx();
41  else if (l==2) return second_.bx();
42  else return -99; // invalid
43 }
44 
45 
46 void GEMCoPadDigi::print() const
47 {
48  std::cout << "Pad1 " << first_.pad() << " bx1 " << first_.bx()
49  << ", Pad2 " << second_.pad() << " bx2 " << second_.bx() << std::endl;
50 }
51 
52 
53 std::ostream & operator<<(std::ostream & o, const GEMCoPadDigi& digi)
54 {
55  return o << " 1:" << digi.first() << ", 2:" << digi.second();
56 }
GEMPadDigi second_
Definition: GEMCoPadDigi.h:35
bool operator!=(const GEMCoPadDigi &digi) const
Definition: GEMCoPadDigi.cc:24
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
bool operator==(const GEMCoPadDigi &digi) const
Definition: GEMCoPadDigi.cc:17
int pad(int l) const
Definition: GEMCoPadDigi.cc:30
void print() const
Definition: GEMCoPadDigi.cc:46
int bx(int l) const
Definition: GEMCoPadDigi.cc:38
int pad() const
Definition: GEMPadDigi.h:25
GEMPadDigi first() const
Definition: GEMCoPadDigi.h:28
double f[11][100]
GEMPadDigi first_
Definition: GEMCoPadDigi.h:34
int bx() const
Definition: GEMPadDigi.h:26
GEMPadDigi second() const
Definition: GEMCoPadDigi.h:29
tuple cout
Definition: gather_cfg.py:121