CMS 3D CMS Logo

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, int prompt)
 
 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
 
int prompt () const
 
float tof () const
 
float x () const
 
float y () const
 

Private Attributes

float corr_
 
float ex_
 
float ey_
 
int pdgid_
 
int prompt_
 
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,
int  prompt 
)
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),
23 {}
float y() const
float tof() const
int pdgid() const
int prompt() const
float ey() const
float x() const
float corr() const
float ex() const
ME0DigiPreReco::ME0DigiPreReco ( )

Definition at line 25 of file ME0DigiPreReco.cc.

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

Member Function Documentation

float ME0DigiPreReco::corr ( ) const
inline

Definition at line 30 of file ME0DigiPreReco.h.

References corr_.

Referenced by ME0RecHitStandardAlgo::compute().

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

Definition at line 28 of file ME0DigiPreReco.h.

References ex_.

Referenced by ME0RecHitStandardAlgo::compute(), and operator<<().

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

Definition at line 29 of file ME0DigiPreReco.h.

References ey_.

Referenced by ME0RecHitStandardAlgo::compute(), and operator<<().

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

Definition at line 45 of file ME0DigiPreReco.cc.

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

46 {
47  return x_ != digi.x() or y_ != digi.y() or tof_ != digi.tof();
48 }
float y() const
float tof() 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::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
float x() const
bool ME0DigiPreReco::operator< ( const ME0DigiPreReco digi) const

Precedence operator.

Definition at line 52 of file ME0DigiPreReco.cc.

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

53 {
54  if (digi.tof() == tof_){
55  if(digi.x() == x_)
56  return digi.y() < y_;
57  else
58  return digi.x() < x_;
59  } else {
60  return digi.tof() < tof_;
61  }
62 }
float y() const
float tof() const
float x() const
bool ME0DigiPreReco::operator== ( const ME0DigiPreReco digi) const

Definition at line 38 of file ME0DigiPreReco.cc.

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

39 {
40  return x_ == digi.x() and y_ == digi.y() and tof_ == digi.tof();
41 }
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 71 of file ME0DigiPreReco.cc.

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

Referenced by prompt().

72 {
73 // std::cout << "local x=" << this->x() << " cm y=" << this->y() <<" cm tof="<<this->tof()<<" ns"<<std::endl;
74  std::cout << "local x=" << this->x() << " cm y=" << this->y() <<" cm tof="<<this->tof()<<" ns"<<" pdgID "<<this->pdgid()<<" prompt? "<<this->prompt()<<std::endl;
75 }
float y() const
float tof() const
int pdgid() const
int prompt() const
float x() const
int ME0DigiPreReco::prompt ( ) const
inline

Definition at line 34 of file ME0DigiPreReco.h.

References print(), and prompt_.

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

34 { return prompt_;}
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 42 of file ME0DigiPreReco.h.

Referenced by corr().

float ME0DigiPreReco::ex_
private

Definition at line 40 of file ME0DigiPreReco.h.

Referenced by ex().

float ME0DigiPreReco::ey_
private

Definition at line 41 of file ME0DigiPreReco.h.

Referenced by ey().

int ME0DigiPreReco::pdgid_
private

Definition at line 45 of file ME0DigiPreReco.h.

Referenced by pdgid().

int ME0DigiPreReco::prompt_
private

Definition at line 46 of file ME0DigiPreReco.h.

Referenced by prompt().

float ME0DigiPreReco::tof_
private

Definition at line 43 of file ME0DigiPreReco.h.

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

float ME0DigiPreReco::x_
private

Definition at line 38 of file ME0DigiPreReco.h.

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

float ME0DigiPreReco::y_
private

Definition at line 39 of file ME0DigiPreReco.h.

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