CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ME0DigiPreReco.cc
Go to the documentation of this file.
1 
11 #include <iostream>
12 
13 //ME0DigiPreReco::ME0DigiPreReco (float x, float y, float ex, float ey, float corr, float tof) :
14 ME0DigiPreReco::ME0DigiPreReco (float x, float y, float ex, float ey, float corr, float tof, int pdgid) :
15  x_(x),
16  y_(y),
17  ex_(ex),
18  ey_(ey),
19  corr_(corr),
20  tof_(tof),
21  pdgid_(pdgid)
22 {}
23 
25  x_(0.),
26  y_(0.),
27  ex_(0.),
28  ey_(0.),
29  corr_(0.),
30  tof_(-1.),
31  pdgid_(0)
32 {}
33 
34 
35 // Comparison
37 {
38  return x_ == digi.x() and y_ == digi.y() and tof_ == digi.tof();
39 }
40 
41 
42 // Comparison
44 {
45  return x_ != digi.x() or y_ != digi.y() or tof_ != digi.tof();
46 }
47 
48 
51 {
52  if (digi.tof() == tof_){
53  if(digi.x() == x_)
54  return digi.y() < y_;
55  else
56  return digi.x() < x_;
57  } else {
58  return digi.tof() < tof_;
59  }
60 }
61 
62 
63 std::ostream & operator<<(std::ostream & o, const ME0DigiPreReco& digi)
64 {
65 // return o << "local x=" << digi.x() << " cm y=" << digi.y()<<" cm ex=" << digi.ex() << " cm ey=" << digi.ey()<< " cm tof="<<digi.tof()<<" ns";
66  return o << "local x=" << digi.x() << " cm y=" << digi.y()<<" cm ex=" << digi.ex() << " cm ey=" << digi.ey()<< " cm tof="<<digi.tof()<<" ns"<<" pdgID "<<digi.pdgid();
67 }
68 
70 {
71 // std::cout << "local x=" << this->x() << " cm y=" << this->y() <<" cm tof="<<this->tof()<<" ns"<<std::endl;
72  std::cout << "local x=" << this->x() << " cm y=" << this->y() <<" cm tof="<<this->tof()<<" ns"<<" pdgID "<<this->pdgid()<<std::endl;
73 }
74 
float y() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
float tof() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int pdgid() const
float ey() const
bool operator<(const ME0DigiPreReco &digi) const
Precedence operator.
void print() const
bool operator!=(const ME0DigiPreReco &digi) const
JetCorrectorParameters corr
Definition: classes.h:5
bool operator==(const ME0DigiPreReco &digi) const
float x() const
float ex() const
tuple cout
Definition: gather_cfg.py:121
Definition: DDAxes.h:10