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 {}
20 
22  clear(); // set contents to zero
23 }
24 
26  chamberid_ = 0;
27  quality_ = 0;
28  phiposition_ = 0;
29  partition_ = 0;
30  deltaphi_ = 0;
31  bend_ = 0;
32  bx_ = 0;
33 }
34 
36  return ((chamberid_ == rhs.chamberid_) && (quality_ == rhs.quality_) &&
37  (phiposition_ == rhs.phiposition_) && (partition_ == rhs.partition_) &&
38  (deltaphi_ == rhs.deltaphi_) &&
39  (bend_ == rhs.bend_) && (bx_ == rhs.bx_) );
40 }
41 
42 std::ostream & operator<<(std::ostream & o,
43  const ME0TriggerDigi& digi) {
44  return o << "ME0 chamber id #" << digi.getChamberid()
45  << " Partition = " << digi.getPartition()
46  << ": Quality = " << digi.getQuality()
47  << " Phiposition = " << digi.getPhiposition()
48  << " Strip = " << digi.getStrip()
49  << " deltaPhi = " << digi.getDeltaphi()
50  << " Bend = " << ((digi.getBend() == 0) ? 'L' : 'R') << "\n"
51  << " BX = " << digi.getBX()
52  << "\n";
53 }
int getDeltaphi() const
return bending angle
uint16_t partition_
int getStrip() const
return the key strip
bool operator==(const ME0TriggerDigi &) const
Comparison.
int getPhiposition() const
return the phi position, resolution: half strip level
int getQuality() const
return the Quality
static const char partition_[]
int getPartition() const
return the key "partition"
ME0TriggerDigi()
default
int getBX() const
return BX
uint16_t deltaphi_
uint16_t phiposition_
int getBend() const
return bend
uint16_t chamberid_
void clear()
clear this Trigger
int getChamberid() const
return chamber number in one CTP7
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)