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 13 of file ME0DigiPreReco.cc.

14  : x_(x), y_(y), ex_(ex), ey_(ey), corr_(corr), tof_(tof), pdgid_(pdgid), prompt_(prompt) {}
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 16 of file ME0DigiPreReco.cc.

16 : x_(0.), y_(0.), ex_(0.), ey_(0.), corr_(0.), tof_(-1.), pdgid_(0), prompt_(0) {}

Member Function Documentation

float ME0DigiPreReco::corr ( ) const
inline

Definition at line 29 of file ME0DigiPreReco.h.

References corr_.

Referenced by ME0RecHitStandardAlgo::compute().

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

Definition at line 27 of file ME0DigiPreReco.h.

References ex_.

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

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

Definition at line 28 of file ME0DigiPreReco.h.

References ey_.

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

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

Definition at line 24 of file ME0DigiPreReco.cc.

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

24  {
25  return x_ != digi.x() or y_ != digi.y() or tof_ != digi.tof();
26 }
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 29 of file ME0DigiPreReco.cc.

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

29  {
30  if (digi.tof() == tof_) {
31  if (digi.x() == x_)
32  return digi.y() < y_;
33  else
34  return digi.x() < x_;
35  } else {
36  return digi.tof() < tof_;
37  }
38 }
float y() const
float tof() const
float x() const
bool ME0DigiPreReco::operator== ( const ME0DigiPreReco digi) const

Definition at line 19 of file ME0DigiPreReco.cc.

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

19  {
20  return x_ == digi.x() and y_ == digi.y() and tof_ == digi.tof();
21 }
float y() const
float tof() const
float x() const
int ME0DigiPreReco::pdgid ( ) const
inline

Definition at line 32 of file ME0DigiPreReco.h.

References pdgid_.

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

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

Definition at line 47 of file ME0DigiPreReco.cc.

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

Referenced by prompt().

47  {
48  // std::cout << "local x=" << this->x() << " cm y=" << this->y() <<" cm tof="<<this->tof()<<" ns"<<std::endl;
49  std::cout << "local x=" << this->x() << " cm y=" << this->y() << " cm tof=" << this->tof() << " ns"
50  << " pdgID " << this->pdgid() << " prompt? " << this->prompt() << std::endl;
51 }
float y() const
float tof() const
int pdgid() const
int prompt() const
float x() const
int ME0DigiPreReco::prompt ( ) const
inline

Definition at line 33 of file ME0DigiPreReco.h.

References print(), and prompt_.

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

33 { return prompt_; }
float ME0DigiPreReco::tof ( ) const
inline

Definition at line 30 of file ME0DigiPreReco.h.

References tof_.

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

30 { 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().

int ME0DigiPreReco::prompt_
private

Definition at line 45 of file ME0DigiPreReco.h.

Referenced by prompt().

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().