CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ME0DigiPreReco Class Reference

#include <ME0DigiPreReco.h>

Public Member Functions

float corr () const
 
float ex () const
 
float ey () const
 
 ME0DigiPreReco (float x, float y, float ex, float ey, float corr, float tof, int pdgid)
 
 ME0DigiPreReco ()
 
bool operator!= (const ME0DigiPreReco &digi) const
 
bool operator< (const ME0DigiPreReco &digi) const
 Precedence operator. More...
 
bool operator== (const ME0DigiPreReco &digi) const
 
int pdgid () const
 
void print () const
 
float tof () const
 
float x () const
 
float y () const
 

Private Attributes

float corr_
 
float ex_
 
float ey_
 
int pdgid_
 
float tof_
 
float x_
 
float y_
 

Detailed Description

Digi for ME0

Author
Marcello Maggi

Definition at line 15 of file ME0DigiPreReco.h.

Constructor & Destructor Documentation

ME0DigiPreReco::ME0DigiPreReco ( float  x,
float  y,
float  ex,
float  ey,
float  corr,
float  tof,
int  pdgid 
)
explicit

Definition at line 14 of file ME0DigiPreReco.cc.

14  :
15  x_(x),
16  y_(y),
17  ex_(ex),
18  ey_(ey),
19  corr_(corr),
20  tof_(tof),
21  pdgid_(pdgid)
22 {}
float y() const
float tof() const
int pdgid() const
float ey() const
float x() const
float corr() const
float ex() const
ME0DigiPreReco::ME0DigiPreReco ( )

Definition at line 24 of file ME0DigiPreReco.cc.

24  :
25  x_(0.),
26  y_(0.),
27  ex_(0.),
28  ey_(0.),
29  corr_(0.),
30  tof_(-1.),
31  pdgid_(0)
32 {}

Member Function Documentation

float ME0DigiPreReco::corr ( ) const
inline

Definition at line 30 of file ME0DigiPreReco.h.

References corr_.

30 { return corr_; }
float ME0DigiPreReco::ex ( ) const
inline

Definition at line 28 of file ME0DigiPreReco.h.

References ex_.

Referenced by operator<<().

28 { return ex_; }
float ME0DigiPreReco::ey ( ) const
inline

Definition at line 29 of file ME0DigiPreReco.h.

References ey_.

Referenced by operator<<().

29 { return ey_; }
bool ME0DigiPreReco::operator!= ( const ME0DigiPreReco digi) const

Definition at line 43 of file ME0DigiPreReco.cc.

References or, tof(), tof_, x(), x_, y(), and y_.

44 {
45  return x_ != digi.x() or y_ != digi.y() or tof_ != digi.tof();
46 }
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
float x() const
bool ME0DigiPreReco::operator< ( const ME0DigiPreReco digi) const

Precedence operator.

Definition at line 50 of file ME0DigiPreReco.cc.

References tof(), tof_, x(), x_, y(), and y_.

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 }
float y() const
float tof() const
float x() const
bool ME0DigiPreReco::operator== ( const ME0DigiPreReco digi) const

Definition at line 36 of file ME0DigiPreReco.cc.

References tof(), tof_, x(), x_, y(), and y_.

37 {
38  return x_ == digi.x() and y_ == digi.y() and tof_ == digi.tof();
39 }
float y() const
float tof() const
float x() const
int ME0DigiPreReco::pdgid ( ) const
inline

Definition at line 33 of file ME0DigiPreReco.h.

References pdgid_.

Referenced by operator<<(), and print().

33 { return pdgid_;}
void ME0DigiPreReco::print ( void  ) const

Definition at line 69 of file ME0DigiPreReco.cc.

References gather_cfg::cout, pdgid(), tof(), x(), and y().

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 }
float y() const
float tof() const
int pdgid() const
float x() const
tuple cout
Definition: gather_cfg.py:121
float ME0DigiPreReco::tof ( ) const
inline

Definition at line 31 of file ME0DigiPreReco.h.

References tof_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), and print().

31 { return tof_;}
float ME0DigiPreReco::x ( ) const
inline
float ME0DigiPreReco::y ( ) const
inline

Member Data Documentation

float ME0DigiPreReco::corr_
private

Definition at line 41 of file ME0DigiPreReco.h.

Referenced by corr().

float ME0DigiPreReco::ex_
private

Definition at line 39 of file ME0DigiPreReco.h.

Referenced by ex().

float ME0DigiPreReco::ey_
private

Definition at line 40 of file ME0DigiPreReco.h.

Referenced by ey().

int ME0DigiPreReco::pdgid_
private

Definition at line 44 of file ME0DigiPreReco.h.

Referenced by pdgid().

float ME0DigiPreReco::tof_
private

Definition at line 42 of file ME0DigiPreReco.h.

Referenced by operator!=(), operator<(), operator==(), and tof().

float ME0DigiPreReco::x_
private

Definition at line 37 of file ME0DigiPreReco.h.

Referenced by operator!=(), operator<(), operator==(), and x().

float ME0DigiPreReco::y_
private

Definition at line 38 of file ME0DigiPreReco.h.

Referenced by operator!=(), operator<(), operator==(), and y().