Public Member Functions | Private Attributes | Friends | List of all members
sim::TrueEnergy Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-28/Simulation/TrueEnergy.h"

Public Member Functions

 TrueEnergy ()
 
 TrueEnergy (int TrId, float EnEnt, float EnEsc, float TotDep, float TotEsc)
 
 ~TrueEnergy ()
 
void SetTrackId (int TrId)
 
void SetEnteringEnergy (float EnEnt)
 
void SetEscapingEnergy (float EnEsc)
 
void SetTotalDepEnergy (float ToDep)
 
void SetTotalEscEnergy (float ToEsc)
 
int TrackId () const
 
float EnteringEnergy () const
 
float EscapingEnergy () const
 
float TotalDepEnergy () const
 
float TotalEscEnergy () const
 

Private Attributes

int fTrackId
 The track id of the Monte Carlo particle we are looking at. More...
 
float fEnteringEnergy
 The kinetic energy which the given particle when it FIRST entered the detector. More...
 
float fEscapingEnergy
 The kinetic energy which from this particle which is not deposited in the detector. More...
 
float fTotalDepEnergy
 The sum of energy depositions due to this particle, and all of its daughters in the detector. More...
 
float fTotalEscEnergy
 The sum of the kinetic energy for all daughters of the particle which exit the detector. More...
 

Friends

std::ostream & operator<< (std::ostream &o, const TrueEnergy &TrueE)
 

Detailed Description

Definition at line 23 of file TrueEnergy.h.

Constructor & Destructor Documentation

sim::TrueEnergy::TrueEnergy ( )

Definition at line 13 of file TrueEnergy.cxx.

13  :
15  {
16  }
float fEscapingEnergy
The kinetic energy which from this particle which is not deposited in the detector.
Definition: TrueEnergy.h:47
float fEnteringEnergy
The kinetic energy which the given particle when it FIRST entered the detector.
Definition: TrueEnergy.h:46
int fTrackId
The track id of the Monte Carlo particle we are looking at.
Definition: TrueEnergy.h:45
float fTotalEscEnergy
The sum of the kinetic energy for all daughters of the particle which exit the detector.
Definition: TrueEnergy.h:49
float fTotalDepEnergy
The sum of energy depositions due to this particle, and all of its daughters in the detector...
Definition: TrueEnergy.h:48
sim::TrueEnergy::TrueEnergy ( int  TrId,
float  EnEnt,
float  EnEsc,
float  TotDep,
float  TotEsc 
)

Definition at line 19 of file TrueEnergy.cxx.

19  :
20  fTrackId(TrId), fEnteringEnergy(EnEnt), fEscapingEnergy(EnEsc), fTotalDepEnergy(TotDep), fTotalEscEnergy(TotEsc)
21  {
22  }
float fEscapingEnergy
The kinetic energy which from this particle which is not deposited in the detector.
Definition: TrueEnergy.h:47
float fEnteringEnergy
The kinetic energy which the given particle when it FIRST entered the detector.
Definition: TrueEnergy.h:46
int fTrackId
The track id of the Monte Carlo particle we are looking at.
Definition: TrueEnergy.h:45
float fTotalEscEnergy
The sum of the kinetic energy for all daughters of the particle which exit the detector.
Definition: TrueEnergy.h:49
float fTotalDepEnergy
The sum of energy depositions due to this particle, and all of its daughters in the detector...
Definition: TrueEnergy.h:48
sim::TrueEnergy::~TrueEnergy ( )

Definition at line 25 of file TrueEnergy.cxx.

26  {
27  }

Member Function Documentation

float sim::TrueEnergy::EnteringEnergy ( ) const
inline

Definition at line 37 of file TrueEnergy.h.

References fEnteringEnergy.

Referenced by filter::TruthContain::filter(), sim::operator<<(), and MergeG4Collections::MergeG4Collections::produce().

37 { return fEnteringEnergy; }
float fEnteringEnergy
The kinetic energy which the given particle when it FIRST entered the detector.
Definition: TrueEnergy.h:46
float sim::TrueEnergy::EscapingEnergy ( ) const
inline

Definition at line 38 of file TrueEnergy.h.

References fEscapingEnergy.

Referenced by filter::TruthContain::filter(), sim::operator<<(), and MergeG4Collections::MergeG4Collections::produce().

38 { return fEscapingEnergy; }
float fEscapingEnergy
The kinetic energy which from this particle which is not deposited in the detector.
Definition: TrueEnergy.h:47
void sim::TrueEnergy::SetEnteringEnergy ( float  EnEnt)
inline

Definition at line 30 of file TrueEnergy.h.

References fEnteringEnergy.

30 { fEnteringEnergy = EnEnt; }
float fEnteringEnergy
The kinetic energy which the given particle when it FIRST entered the detector.
Definition: TrueEnergy.h:46
void sim::TrueEnergy::SetEscapingEnergy ( float  EnEsc)
inline

Definition at line 31 of file TrueEnergy.h.

References fEscapingEnergy.

31 { fEscapingEnergy = EnEsc; }
float fEscapingEnergy
The kinetic energy which from this particle which is not deposited in the detector.
Definition: TrueEnergy.h:47
void sim::TrueEnergy::SetTotalDepEnergy ( float  ToDep)
inline

Definition at line 32 of file TrueEnergy.h.

References fTotalDepEnergy.

32 { fTotalDepEnergy = ToDep; }
float fTotalDepEnergy
The sum of energy depositions due to this particle, and all of its daughters in the detector...
Definition: TrueEnergy.h:48
void sim::TrueEnergy::SetTotalEscEnergy ( float  ToEsc)
inline

Definition at line 33 of file TrueEnergy.h.

References fTotalEscEnergy.

33 { fTotalEscEnergy = ToEsc; }
float fTotalEscEnergy
The sum of the kinetic energy for all daughters of the particle which exit the detector.
Definition: TrueEnergy.h:49
void sim::TrueEnergy::SetTrackId ( int  TrId)
inline

Definition at line 29 of file TrueEnergy.h.

References fTrackId.

29 { fTrackId = TrId; }
int fTrackId
The track id of the Monte Carlo particle we are looking at.
Definition: TrueEnergy.h:45
float sim::TrueEnergy::TotalDepEnergy ( ) const
inline

Definition at line 39 of file TrueEnergy.h.

References fTotalDepEnergy.

Referenced by cheat::BackTracker::CalcEscapingEnergy(), cheat::BackTracker::CalcTotalEscapingEnergy(), sim::operator<<(), and MergeG4Collections::MergeG4Collections::produce().

39 { return fTotalDepEnergy; }
float fTotalDepEnergy
The sum of energy depositions due to this particle, and all of its daughters in the detector...
Definition: TrueEnergy.h:48
float sim::TrueEnergy::TotalEscEnergy ( ) const
inline

Definition at line 40 of file TrueEnergy.h.

References fTotalEscEnergy, msf_helper::o, and operator<<.

Referenced by cheat::BackTracker::CalcEscapingEnergy(), cheat::BackTracker::CalcTotalEscapingEnergy(), sim::operator<<(), and MergeG4Collections::MergeG4Collections::produce().

40 { return fTotalEscEnergy; }
float fTotalEscEnergy
The sum of the kinetic energy for all daughters of the particle which exit the detector.
Definition: TrueEnergy.h:49
int sim::TrueEnergy::TrackId ( ) const
inline

Definition at line 36 of file TrueEnergy.h.

References fTrackId.

Referenced by filter::TruthContain::filter(), sim::operator<<(), and MergeG4Collections::MergeG4Collections::produce().

36 { return fTrackId; }
int fTrackId
The track id of the Monte Carlo particle we are looking at.
Definition: TrueEnergy.h:45

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const TrueEnergy TrueE 
)
friend

Definition at line 30 of file TrueEnergy.cxx.

Referenced by TotalEscEnergy().

31  {
32  o << std::setiosflags(std::ios::fixed) << std::setprecision(2);
33  o << " Looking at particle with TrackId " << TE.TrackId() << " it had;"
34  << " Entering Energy = " << TE.EnteringEnergy()
35  << " Escaping Energy = " << TE.EscapingEnergy()
36  << " Total En Depos. = " << TE.TotalDepEnergy()
37  << " Total En Escap. = " << TE.TotalEscEnergy();
38  return o;
39  }

Member Data Documentation

float sim::TrueEnergy::fEnteringEnergy
private

The kinetic energy which the given particle when it FIRST entered the detector.

Definition at line 46 of file TrueEnergy.h.

Referenced by EnteringEnergy(), and SetEnteringEnergy().

float sim::TrueEnergy::fEscapingEnergy
private

The kinetic energy which from this particle which is not deposited in the detector.

Definition at line 47 of file TrueEnergy.h.

Referenced by EscapingEnergy(), and SetEscapingEnergy().

float sim::TrueEnergy::fTotalDepEnergy
private

The sum of energy depositions due to this particle, and all of its daughters in the detector.

Definition at line 48 of file TrueEnergy.h.

Referenced by SetTotalDepEnergy(), and TotalDepEnergy().

float sim::TrueEnergy::fTotalEscEnergy
private

The sum of the kinetic energy for all daughters of the particle which exit the detector.

Definition at line 49 of file TrueEnergy.h.

Referenced by SetTotalEscEnergy(), and TotalEscEnergy().

int sim::TrueEnergy::fTrackId
private

The track id of the Monte Carlo particle we are looking at.

Definition at line 45 of file TrueEnergy.h.

Referenced by SetTrackId(), and TrackId().


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