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 ()
 
 ME0DigiPreReco (float x, float y, float ex, float ey, float corr, float tof, int pdgid, int prompt)
 
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() [1/2]

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) {}

◆ ME0DigiPreReco() [2/2]

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

◆ corr()

float ME0DigiPreReco::corr ( ) const
inline

Definition at line 29 of file ME0DigiPreReco.h.

29 { return corr_; }

References corr_.

Referenced by ME0RecHitStandardAlgo::compute().

◆ ex()

float ME0DigiPreReco::ex ( ) const
inline

Definition at line 27 of file ME0DigiPreReco.h.

27 { return ex_; }

References ex_.

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

◆ ey()

float ME0DigiPreReco::ey ( ) const
inline

Definition at line 28 of file ME0DigiPreReco.h.

28 { return ey_; }

References ey_.

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

◆ operator!=()

bool ME0DigiPreReco::operator!= ( const ME0DigiPreReco digi) const

Definition at line 24 of file ME0DigiPreReco.cc.

24  {
25  return x_ != digi.x() or y_ != digi.y() or tof_ != digi.tof();
26 }

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

◆ operator<()

bool ME0DigiPreReco::operator< ( const ME0DigiPreReco digi) const

Precedence operator.

Definition at line 29 of file ME0DigiPreReco.cc.

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 }

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

◆ operator==()

bool ME0DigiPreReco::operator== ( const ME0DigiPreReco digi) const

Definition at line 19 of file ME0DigiPreReco.cc.

19  {
20  return x_ == digi.x() and y_ == digi.y() and tof_ == digi.tof();
21 }

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

◆ pdgid()

int ME0DigiPreReco::pdgid ( ) const
inline

Definition at line 32 of file ME0DigiPreReco.h.

32 { return pdgid_; }

References pdgid_.

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

◆ print()

void ME0DigiPreReco::print ( void  ) const

Definition at line 47 of file ME0DigiPreReco.cc.

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 }

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

◆ prompt()

int ME0DigiPreReco::prompt ( ) const
inline

Definition at line 33 of file ME0DigiPreReco.h.

33 { return prompt_; }

References prompt_.

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

◆ tof()

float ME0DigiPreReco::tof ( ) const
inline

Definition at line 30 of file ME0DigiPreReco.h.

30 { return tof_; }

References tof_.

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

◆ x()

float ME0DigiPreReco::x ( ) const
inline

◆ y()

float ME0DigiPreReco::y ( ) const
inline

Member Data Documentation

◆ corr_

float ME0DigiPreReco::corr_
private

Definition at line 41 of file ME0DigiPreReco.h.

Referenced by corr().

◆ ex_

float ME0DigiPreReco::ex_
private

Definition at line 39 of file ME0DigiPreReco.h.

Referenced by ex().

◆ ey_

float ME0DigiPreReco::ey_
private

Definition at line 40 of file ME0DigiPreReco.h.

Referenced by ey().

◆ pdgid_

int ME0DigiPreReco::pdgid_
private

Definition at line 44 of file ME0DigiPreReco.h.

Referenced by pdgid().

◆ prompt_

int ME0DigiPreReco::prompt_
private

Definition at line 45 of file ME0DigiPreReco.h.

Referenced by prompt().

◆ tof_

float ME0DigiPreReco::tof_
private

Definition at line 42 of file ME0DigiPreReco.h.

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

◆ x_

float ME0DigiPreReco::x_
private

Definition at line 37 of file ME0DigiPreReco.h.

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

◆ y_

float ME0DigiPreReco::y_
private

Definition at line 38 of file ME0DigiPreReco.h.

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

ME0DigiPreReco::corr
float corr() const
Definition: ME0DigiPreReco.h:29
ME0DigiPreReco::prompt
int prompt() const
Definition: ME0DigiPreReco.h:33
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ME0DigiPreReco::tof_
float tof_
Definition: ME0DigiPreReco.h:42
ME0DigiPreReco::ey
float ey() const
Definition: ME0DigiPreReco.h:28
ME0DigiPreReco::y
float y() const
Definition: ME0DigiPreReco.h:26
ME0DigiPreReco::ex_
float ex_
Definition: ME0DigiPreReco.h:39
ME0DigiPreReco::pdgid_
int pdgid_
Definition: ME0DigiPreReco.h:44
ME0DigiPreReco::prompt_
int prompt_
Definition: ME0DigiPreReco.h:45
ME0DigiPreReco::corr_
float corr_
Definition: ME0DigiPreReco.h:41
ME0DigiPreReco::pdgid
int pdgid() const
Definition: ME0DigiPreReco.h:32
ME0DigiPreReco::ex
float ex() const
Definition: ME0DigiPreReco.h:27
or
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
ME0DigiPreReco::y_
float y_
Definition: ME0DigiPreReco.h:38
ME0DigiPreReco::x_
float x_
Definition: ME0DigiPreReco.h:37
ME0DigiPreReco::tof
float tof() const
Definition: ME0DigiPreReco.h:30
ME0DigiPreReco::x
float x() const
Definition: ME0DigiPreReco.h:25
ME0DigiPreReco::ey_
float ey_
Definition: ME0DigiPreReco.h:40