CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
int getQuality() const
return the Quality
static const char partition_[]
int getPartition() const
return the key &quot;partition&quot;
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