LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 13 of file MCDataHolder.h.

References Reset().

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

Definition at line 14 of file MCDataHolder.h.

14 {}

Member Function Documentation

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

Definition at line 42 of file MCDataHolder.h.

References fEnergy.

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

Definition at line 46 of file MCDataHolder.h.

References fEnergy, fTrackId, and fVertex.

47  {
48  if (fTrackId < e.fTrackId) return true;
49  if (fTrackId > e.fTrackId) return false;
50 
51  if (fVertex.at(0) < e.fVertex.at(0)) return true;
52  if (fVertex.at(0) > e.fVertex.at(0)) return false;
53 
54  if (fVertex.at(1) < e.fVertex.at(1)) return true;
55  if (fVertex.at(1) > e.fVertex.at(1)) return false;
56 
57  if (fVertex.at(2) < e.fVertex.at(2)) return true;
58  if (fVertex.at(2) > e.fVertex.at(2)) return false;
59 
60  if (fEnergy < e.fEnergy) return true;
61  if (fEnergy > e.fEnergy) return false;
62 
63  return false;
64  }
unsigned int fTrackId
Definition: MCDataHolder.h:19
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:17
Float_t e
Definition: plot.C:35
void sim::MCEnDep::Reset ( )
inline

Definition at line 22 of file MCDataHolder.h.

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

Referenced by MCEnDep().

23  {
27  }
static constexpr float kINVALID_FLOAT
Definition: TruncMean.h:32
unsigned int fTrackId
Definition: MCDataHolder.h:19
std::array< float, 3 > fVertex
Definition: MCDataHolder.h:17
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 36 of file MCDataHolder.h.

References e.

Referenced by hit::MCHitFinder::produce(), and shower::TCShowerTemplateMaker::showerProfileTrue().

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

Definition at line 38 of file MCDataHolder.h.

Referenced by hit::MCHitFinder::produce(), and shower::TCShowerTemplateMaker::showerProfileTrue().

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

Definition at line 29 of file MCDataHolder.h.

References x, y, and z.

Referenced by hit::MCHitFinder::produce(), and shower::TCShowerTemplateMaker::showerProfileTrue().

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

Definition at line 44 of file MCDataHolder.h.

References fTrackId.

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

Definition at line 40 of file MCDataHolder.h.

References fVertex.

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

Member Data Documentation

float sim::MCEnDep::fEnergy
protected

Definition at line 18 of file MCDataHolder.h.

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

unsigned int sim::MCEnDep::fTrackId
protected

Definition at line 19 of file MCDataHolder.h.

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

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

Definition at line 17 of file MCDataHolder.h.

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


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