CMS 3D CMS Logo

ME0TriggerDigi.cc
Go to the documentation of this file.
3 #include <iostream>
4 
5 ME0TriggerDigi::ME0TriggerDigi(const int ichamberid,
6  const int iquality,
7  const int iphiposition,
8  const int ipartition,
9  const int ideltaphi,
10  const int ibend,
11  const int ibx)
12  : chamberid_(ichamberid),
13  quality_(iquality),
14  phiposition_(iphiposition),
15  partition_(ipartition),
16  deltaphi_(ideltaphi),
17  bend_(ibend),
18  bx_(ibx) {}
19 
21  clear(); // set contents to zero
22 }
23 
25  chamberid_ = 0;
26  quality_ = 0;
27  phiposition_ = 0;
28  partition_ = 0;
29  deltaphi_ = 0;
30  bend_ = 0;
31  bx_ = 0;
32 }
33 
35  return ((chamberid_ == rhs.chamberid_) && (quality_ == rhs.quality_) && (phiposition_ == rhs.phiposition_) &&
36  (partition_ == rhs.partition_) && (deltaphi_ == rhs.deltaphi_) && (bend_ == rhs.bend_) && (bx_ == rhs.bx_));
37 }
38 
39 std::ostream& operator<<(std::ostream& o, const ME0TriggerDigi& digi) {
40  return o << "ME0 chamber id #" << digi.getChamberid() << " Partition = " << digi.getPartition()
41  << ": Quality = " << digi.getQuality() << " Phiposition = " << digi.getPhiposition()
42  << " Strip = " << digi.getStrip() << " deltaPhi = " << digi.getDeltaphi()
43  << " Bend = " << ((digi.getBend() == 0) ? 'L' : 'R') << "\n"
44  << " BX = " << digi.getBX() << "\n";
45 }
uint16_t partition_
int getQuality() const
return the Quality
int getChamberid() const
return chamber number in one CTP7
int getBend() const
return bend
int getDeltaphi() const
return bending angle
static const char partition_[]
ME0TriggerDigi()
default
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getStrip() const
return the key strip
uint16_t deltaphi_
uint16_t phiposition_
int getPhiposition() const
return the phi position, resolution: half strip level
int getBX() const
return BX
uint16_t chamberid_
void clear()
clear this Trigger
int getPartition() const
return the key "partition"
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)