LDMX Software
trigger::TrigCaloHit Class Reference

Class for calo hits used in trigger computations. More...

#include <TrigCaloHit.h>

Public Member Functions

 TrigCaloHit (float position_x, float position_y, float position_z, float energy=0)
 
bool operator< (const TrigCaloHit &h)
 
void clear ()
 
void setEnergy (float energy)
 
void setXYZ (float position_x, float position_y, float position_z)
 
void setLayer (int layer)
 
void setStrip (int strip)
 
void setModule (int module)
 
void setSection (int module_section)
 
float positionX () const
 
float positionY () const
 
float positionZ () const
 
float energy () const
 
int layer () const
 
int strip () const
 
int module () const
 
int section () const
 

Private Member Functions

 ClassDef (TrigCaloHit, 2)
 ROOT Dictionary class definition macro.
 

Private Attributes

float position_x_ {0}
 
float position_y_ {0}
 
float position_z_ {0}
 
float energy_ {0}
 
int layer_ {0}
 
int strip_ {0}
 
int module_section_ {0}
 

Detailed Description

Class for calo hits used in trigger computations.

Definition at line 13 of file TrigCaloHit.h.

Constructor & Destructor Documentation

◆ TrigCaloHit()

trigger::TrigCaloHit::TrigCaloHit ( float position_x,
float position_y,
float position_z,
float energy = 0 )

Definition at line 6 of file TrigCaloHit.cxx.

8 : position_x_(position_x),
9 position_y_(position_y),
10 position_z_(position_z),
11 energy_(energy) {
12 layer_ = 0;
13 strip_ = 0;
14 module_section_ = 0;
15}

Member Function Documentation

◆ clear()

void trigger::TrigCaloHit::clear ( )
inline

Definition at line 24 of file TrigCaloHit.h.

24 {
25 position_x_ = 0;
26 position_y_ = 0;
27 position_z_ = 0;
28 energy_ = 0;
29 layer_ = 0;
30 strip_ = 0;
31 module_section_ = 0;
32 }

◆ energy()

float trigger::TrigCaloHit::energy ( ) const
inline

Definition at line 48 of file TrigCaloHit.h.

48{ return energy_; }

◆ layer()

int trigger::TrigCaloHit::layer ( ) const
inline

Definition at line 50 of file TrigCaloHit.h.

50{ return layer_; }

◆ module()

int trigger::TrigCaloHit::module ( ) const
inline

Definition at line 52 of file TrigCaloHit.h.

52{ return module_section_; }

◆ operator<()

bool trigger::TrigCaloHit::operator< ( const TrigCaloHit & h)
inline

Definition at line 22 of file TrigCaloHit.h.

22{ return energy_ < h.energy_; }

◆ positionX()

float trigger::TrigCaloHit::positionX ( ) const
inline

Definition at line 45 of file TrigCaloHit.h.

45{ return position_x_; }

◆ positionY()

float trigger::TrigCaloHit::positionY ( ) const
inline

Definition at line 46 of file TrigCaloHit.h.

46{ return position_y_; }

◆ positionZ()

float trigger::TrigCaloHit::positionZ ( ) const
inline

Definition at line 47 of file TrigCaloHit.h.

47{ return position_z_; }

◆ section()

int trigger::TrigCaloHit::section ( ) const
inline

Definition at line 53 of file TrigCaloHit.h.

53{ return module_section_; }

◆ setEnergy()

void trigger::TrigCaloHit::setEnergy ( float energy)
inline

Definition at line 34 of file TrigCaloHit.h.

34{ energy_ = energy; }

◆ setLayer()

void trigger::TrigCaloHit::setLayer ( int layer)
inline

Definition at line 40 of file TrigCaloHit.h.

40{ layer_ = layer; }

◆ setModule()

void trigger::TrigCaloHit::setModule ( int module)
inline

Definition at line 42 of file TrigCaloHit.h.

42{ module_section_ = module; }

◆ setSection()

void trigger::TrigCaloHit::setSection ( int module_section)
inline

Definition at line 43 of file TrigCaloHit.h.

43{ module_section_ = module_section; }

◆ setStrip()

void trigger::TrigCaloHit::setStrip ( int strip)
inline

Definition at line 41 of file TrigCaloHit.h.

41{ strip_ = strip; }

◆ setXYZ()

void trigger::TrigCaloHit::setXYZ ( float position_x,
float position_y,
float position_z )
inline

Definition at line 35 of file TrigCaloHit.h.

35 {
36 position_x_ = position_x;
37 position_y_ = position_y;
38 position_z_ = position_z;
39 }

◆ strip()

int trigger::TrigCaloHit::strip ( ) const
inline

Definition at line 51 of file TrigCaloHit.h.

51{ return strip_; }

Member Data Documentation

◆ energy_

float trigger::TrigCaloHit::energy_ {0}
private

Definition at line 59 of file TrigCaloHit.h.

59{0};

◆ layer_

int trigger::TrigCaloHit::layer_ {0}
private

Definition at line 60 of file TrigCaloHit.h.

60{0};

◆ module_section_

int trigger::TrigCaloHit::module_section_ {0}
private

Definition at line 62 of file TrigCaloHit.h.

62{0};

◆ position_x_

float trigger::TrigCaloHit::position_x_ {0}
private

Definition at line 56 of file TrigCaloHit.h.

56{0};

◆ position_y_

float trigger::TrigCaloHit::position_y_ {0}
private

Definition at line 57 of file TrigCaloHit.h.

57{0};

◆ position_z_

float trigger::TrigCaloHit::position_z_ {0}
private

Definition at line 58 of file TrigCaloHit.h.

58{0};

◆ strip_

int trigger::TrigCaloHit::strip_ {0}
private

Definition at line 61 of file TrigCaloHit.h.

61{0};

The documentation for this class was generated from the following files: