LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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.

References Reset().

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 ( ) const
inline

Definition at line 45 of file MCDataHolder.h.

References fEnergy.

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

Definition at line 49 of file MCDataHolder.h.

References fEnergy, fTrackId, and fVertex.

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
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19
Float_t e
Definition: plot.C:34
void sim::MCEnDep::Reset ( )
inline

Definition at line 25 of file MCDataHolder.h.

References sim::kINVALID_FLOAT, kINVALID_FLOAT, and sim::kINVALID_UINT.

Referenced by MCEnDep().

26  {
30  }
unsigned int fTrackId
Definition: MCDataHolder.h:21
static const float kINVALID_FLOAT
Definition: TruncMean.h:35
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.

References e.

Referenced by hit::MCHitFinder::produce().

39 { fEnergy = e; }
Float_t e
Definition: plot.C:34
void sim::MCEnDep::SetTrackId ( unsigned int  id)
inline

Definition at line 41 of file MCDataHolder.h.

Referenced by hit::MCHitFinder::produce().

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.

References x, y, and z.

Referenced by hit::MCHitFinder::produce().

33  {
34  fVertex.at(0) = x;
35  fVertex.at(1) = y;
36  fVertex.at(2) = z;
37  }
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:279
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:19
unsigned int sim::MCEnDep::TrackId ( ) const
inline

Definition at line 47 of file MCDataHolder.h.

References fTrackId.

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

Definition at line 43 of file MCDataHolder.h.

References fVertex.

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.

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

unsigned int sim::MCEnDep::fTrackId
protected

Definition at line 21 of file MCDataHolder.h.

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

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

Definition at line 19 of file MCDataHolder.h.

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


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