CMS 3D CMS Logo

ME0TriggerDigi.cc
Go to the documentation of this file.
3 #include <iostream>
4 
6  const int iquality,
7  const int istrip,
8  const int ipattern,
9  const int ibend,
10  const int ibx):
11  trknmb(itrknmb),
12  quality(iquality),
13  strip(istrip),
14  pattern(ipattern),
15  bend(ibend),
16  bx(ibx)
17 {}
18 
20  clear(); // set contents to zero
21 }
22 
24  trknmb = 0;
25  quality = 0;
26  strip = 0;
27  pattern = 0;
28  bend = 0;
29  bx = 0;
30 }
31 
33  return ((trknmb == rhs.trknmb) && (quality == rhs.quality) &&
34  (strip == rhs.strip) && (pattern == rhs.pattern) &&
35  (bend == rhs.bend) && (bx == rhs.bx) );
36 }
37 
38 std::ostream & operator<<(std::ostream & o,
39  const ME0TriggerDigi& digi) {
40  return o << "ME0 Trigger #" << digi.getTrknmb()
41  << ": Quality = " << digi.getQuality()
42  << " Strip = " << digi.getStrip()
43  << " Pattern = " << digi.getPattern()
44  << " Bend = " << ((digi.getBend() == 0) ? 'L' : 'R') << "\n"
45  << " BX = " << digi.getBX()
46  << "\n";
47 }
int getPattern() const
return pattern
uint16_t quality
int getStrip() const
return the key strip
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getQuality() const
return the Quality
int getTrknmb() const
return track number
ME0TriggerDigi()
default
int getBX() const
return BX
int getBend() const
return bend
void clear()
clear this Trigger
uint16_t pattern
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)