CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
PassiveHit Class Reference

#include <PassiveHit.h>

Public Member Functions

double energy () const
 
const char * getName () const
 
unsigned int id () const
 
bool operator< (const PassiveHit &d) const
 
bool operator== (const PassiveHit &d) const
 
 PassiveHit (std::string vname, unsigned int id, float e=0., float t=0., int it=0)
 
 PassiveHit ()
 
void setEnergy (double e)
 
void setID (std::string vname, unsigned int id)
 
void setTime (float t)
 
void setTrackId (int it)
 
double time () const
 
int trackId () const
 
std::string vname () const
 

Static Public Member Functions

static const char * name ()
 

Protected Attributes

float energy_
 
unsigned int id_
 
int it_
 
float time_
 
std::string vname_
 

Detailed Description

Definition at line 9 of file PassiveHit.h.

Constructor & Destructor Documentation

PassiveHit::PassiveHit ( std::string  vname,
unsigned int  id,
float  e = 0.,
float  t = 0.,
int  it = 0 
)
inline

Definition at line 13 of file PassiveHit.h.

14  : vname_(vname), id_(id), energy_(e), time_(t), it_(it) {}
std::string vname() const
Definition: PassiveHit.h:37
std::string vname_
Definition: PassiveHit.h:49
float energy_
Definition: PassiveHit.h:51
float time_
Definition: PassiveHit.h:52
unsigned int id_
Definition: PassiveHit.h:50
PassiveHit::PassiveHit ( )
inline

Definition at line 15 of file PassiveHit.h.

15 : vname_(""), id_(0), energy_(0), time_(0), it_(0) {}
std::string vname_
Definition: PassiveHit.h:49
float energy_
Definition: PassiveHit.h:51
float time_
Definition: PassiveHit.h:52
unsigned int id_
Definition: PassiveHit.h:50

Member Function Documentation

double PassiveHit::energy ( void  ) const
inline

Definition at line 23 of file PassiveHit.h.

References energy_.

Referenced by operator<<(), and Jet.Jet::rawEnergy().

23 { return energy_; }
float energy_
Definition: PassiveHit.h:51
const char* PassiveHit::getName ( void  ) const
inline

Definition at line 20 of file PassiveHit.h.

References name().

Referenced by plotting.Plot::draw().

20 { return name (); }
static const char * name()
Definition: PassiveHit.h:18
unsigned int PassiveHit::id ( void  ) const
inline

Definition at line 38 of file PassiveHit.h.

References id_.

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

38 { return id_; }
unsigned int id_
Definition: PassiveHit.h:50
static const char* PassiveHit::name ( void  )
inlinestatic

Definition at line 18 of file PassiveHit.h.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and getName().

18 { return "PassiveHit"; }
bool PassiveHit::operator< ( const PassiveHit d) const
inline

Definition at line 41 of file PassiveHit.h.

References energy_.

41 { return energy_ < d.energy_; }
float energy_
Definition: PassiveHit.h:51
bool PassiveHit::operator== ( const PassiveHit d) const
inline

Definition at line 44 of file PassiveHit.h.

References energy_, id_, and vname_.

45  { return (energy_ == d.energy_ && id_ == d.id_ && vname_ == d.vname_); }
std::string vname_
Definition: PassiveHit.h:49
float energy_
Definition: PassiveHit.h:51
unsigned int id_
Definition: PassiveHit.h:50
void PassiveHit::setEnergy ( double  e)
inline

Definition at line 24 of file PassiveHit.h.

References MillePedeFileConverter_cfg::e, and energy_.

void PassiveHit::setID ( std::string  vname,
unsigned int  id 
)
inline

Definition at line 36 of file PassiveHit.h.

References id(), id_, vname(), and vname_.

36 { vname_ = vname; id_ = id; }
unsigned int id() const
Definition: PassiveHit.h:38
std::string vname() const
Definition: PassiveHit.h:37
std::string vname_
Definition: PassiveHit.h:49
unsigned int id_
Definition: PassiveHit.h:50
void PassiveHit::setTime ( float  t)
inline

Definition at line 29 of file PassiveHit.h.

References lumiQTWidget::t, and time_.

29 { time_ = t;}
float time_
Definition: PassiveHit.h:52
void PassiveHit::setTrackId ( int  it)
inline

Definition at line 33 of file PassiveHit.h.

References it_.

33 { it_ = it; }
double PassiveHit::time ( ) const
inline

Definition at line 28 of file PassiveHit.h.

References time_.

Referenced by operator<<().

28 { return time_; }
float time_
Definition: PassiveHit.h:52
int PassiveHit::trackId ( ) const
inline

Definition at line 32 of file PassiveHit.h.

References it_.

Referenced by operator<<().

32 { return it_; }
std::string PassiveHit::vname ( ) const
inline

Definition at line 37 of file PassiveHit.h.

References vname_.

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

37 { return vname_; }
std::string vname_
Definition: PassiveHit.h:49

Member Data Documentation

float PassiveHit::energy_
protected

Definition at line 51 of file PassiveHit.h.

Referenced by energy(), operator<(), operator==(), and setEnergy().

unsigned int PassiveHit::id_
protected

Definition at line 50 of file PassiveHit.h.

Referenced by id(), operator==(), and setID().

int PassiveHit::it_
protected

Definition at line 53 of file PassiveHit.h.

Referenced by setTrackId(), and trackId().

float PassiveHit::time_
protected

Definition at line 52 of file PassiveHit.h.

Referenced by setTime(), and time().

std::string PassiveHit::vname_
protected

Definition at line 49 of file PassiveHit.h.

Referenced by operator==(), setID(), and vname().