Public Member Functions | Protected Attributes | List of all members
sim::MCEnDep Class Reference

#include <MCDataHolder.h>

Public Member Functions

 MCEnDep ()
 
 ~MCEnDep ()
 
void Reset ()
 
void SetVertex (float x, float y, float z)
 
void SetEnergy (float e)
 
void SetTrackId (unsigned int id)
 
const std::array< float, 3 > & Vertex () const
 
float Energy () const
 
unsigned int TrackId () const
 
bool operator< (const MCEnDep &e) const
 

Protected Attributes

std::array< float, 3 > fVertex
 
float fEnergy
 
unsigned int fTrackId
 

Detailed Description

Definition at line 10 of file MCDataHolder.h.

Constructor & Destructor Documentation

sim::MCEnDep::MCEnDep ( )
inline

Definition at line 14 of file MCDataHolder.h.

14 { Reset(); }
void Reset()
Definition: MCDataHolder.h:25
sim::MCEnDep::~MCEnDep ( )
inline

Definition at line 15 of file MCDataHolder.h.

15 {}

Member Function Documentation

float sim::MCEnDep::Energy ( void  ) const
inline

Definition at line 45 of file MCDataHolder.h.

45 { return fEnergy; }
bool sim::MCEnDep::operator< ( const MCEnDep e) const
inline

Definition at line 49 of file MCDataHolder.h.

50  {
51  if( fTrackId < e.fTrackId ) return true;
52  if( fTrackId > e.fTrackId ) return false;
53 
54  if( fVertex.at(0) < e.fVertex.at(0) ) return true;
55  if( fVertex.at(0) > e.fVertex.at(0) ) return false;
56 
57  if( fVertex.at(1) < e.fVertex.at(1) ) return true;
58  if( fVertex.at(1) > e.fVertex.at(1) ) return false;
59 
60  if( fVertex.at(2) < e.fVertex.at(2) ) return true;
61  if( fVertex.at(2) > e.fVertex.at(2) ) return false;
62 
63  if( fEnergy < e.fEnergy ) return true;
64  if( fEnergy > e.fEnergy ) return false;
65 
66  return false;
67  }
unsigned int fTrackId
Definition: MCDataHolder.h:21
const double e
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19
void sim::MCEnDep::Reset ( void  )
inline

Definition at line 25 of file MCDataHolder.h.

26  {
30  }
unsigned int fTrackId
Definition: MCDataHolder.h:21
static const float kINVALID_FLOAT
Definition: TruncMean.h:31
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19
const unsigned int kINVALID_UINT
Definition: MCLimits.h:14
const float kINVALID_FLOAT
Definition: MCLimits.h:12
void sim::MCEnDep::SetEnergy ( float  e)
inline

Definition at line 39 of file MCDataHolder.h.

39 { fEnergy = e; }
const double e
void sim::MCEnDep::SetTrackId ( unsigned int  id)
inline

Definition at line 41 of file MCDataHolder.h.

41 { fTrackId = id; }
unsigned int fTrackId
Definition: MCDataHolder.h:21
void sim::MCEnDep::SetVertex ( float  x,
float  y,
float  z 
)
inline

Definition at line 32 of file MCDataHolder.h.

33  {
34  fVertex.at(0) = x;
35  fVertex.at(1) = y;
36  fVertex.at(2) = z;
37  }
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19
list x
Definition: train.py:276
unsigned int sim::MCEnDep::TrackId ( ) const
inline

Definition at line 47 of file MCDataHolder.h.

47 { return fTrackId; }
unsigned int fTrackId
Definition: MCDataHolder.h:21
const std::array<float,3>& sim::MCEnDep::Vertex ( void  ) const
inline

Definition at line 43 of file MCDataHolder.h.

43 { return fVertex; }
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19

Member Data Documentation

float sim::MCEnDep::fEnergy
protected

Definition at line 20 of file MCDataHolder.h.

unsigned int sim::MCEnDep::fTrackId
protected

Definition at line 21 of file MCDataHolder.h.

std::array<float,3> sim::MCEnDep::fVertex
protected

Definition at line 19 of file MCDataHolder.h.


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