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 ipartition,
9  const int ipattern,
10  const int ibend,
11  const int ibx):
12  trknmb_(itrknmb),
13  quality_(iquality),
14  strip_(istrip),
15  partition_(ipartition),
16  pattern_(ipattern),
17  bend_(ibend),
18  bx_(ibx)
19 {}
20 
22  clear(); // set contents to zero
23 }
24 
26  trknmb_ = 0;
27  quality_ = 0;
28  strip_ = 0;
29  partition_ = 0;
30  pattern_ = 0;
31  bend_ = 0;
32  bx_ = 0;
33 }
34 
36  return ((trknmb_ == rhs.trknmb_) && (quality_ == rhs.quality_) &&
37  (strip_ == rhs.strip_) && (partition_ == rhs.partition_) &&
38  (pattern_ == rhs.pattern_) &&
39  (bend_ == rhs.bend_) && (bx_ == rhs.bx_) );
40 }
41 
42 std::ostream & operator<<(std::ostream & o,
43  const ME0TriggerDigi& digi) {
44  return o << "ME0 Trigger #" << digi.getTrknmb()
45  << ": Quality = " << digi.getQuality()
46  << " Strip = " << digi.getStrip()
47  << " Partition = " << digi.getPartition()
48  << " Pattern = " << digi.getPattern()
49  << " Bend = " << ((digi.getBend() == 0) ? 'L' : 'R') << "\n"
50  << " BX = " << digi.getBX()
51  << "\n";
52 }
int getPattern() const
return pattern
uint16_t partition_
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
uint16_t trknmb_
static const char partition_[]
uint16_t quality_
int getPartition() const
return the key "partition"
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)