LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
sim::MCStep Class Reference

#include "MCStep.h"

Public Member Functions

 MCStep ()
 
 MCStep (const TLorentzVector &p, const TLorentzVector &m)
 
virtual ~MCStep ()
 
const TLorentzVector & Momentum () const
 
const TLorentzVector & Position () const
 
double X () const
 
double Y () const
 
double Z () const
 
double T () const
 
double Px () const
 
double Py () const
 
double Pz () const
 
double E () const
 
void SetPosition (const TLorentzVector &v)
 
void SetMomentum (const TLorentzVector &v)
 

Protected Attributes

TLorentzVector _position
 
TLorentzVector _momentum
 

Detailed Description

Definition at line 25 of file MCStep.h.

Constructor & Destructor Documentation

sim::MCStep::MCStep ( )
inline

Definition at line 28 of file MCStep.h.

28 {};
sim::MCStep::MCStep ( const TLorentzVector &  p,
const TLorentzVector &  m 
)
inline

Definition at line 30 of file MCStep.h.

30 : _position(p), _momentum(m) {}
TLorentzVector _position
Definition: MCStep.h:48
TLorentzVector _momentum
Definition: MCStep.h:52
virtual sim::MCStep::~MCStep ( )
inlinevirtual

Definition at line 32 of file MCStep.h.

32 {}

Member Function Documentation

double sim::MCStep::E ( ) const
inline

Definition at line 45 of file MCStep.h.

References _momentum.

Referenced by trkf::SeedAna::analyze(), and trkf::TrackAna::analyze().

45 { return _momentum.E(); }
TLorentzVector _momentum
Definition: MCStep.h:52
const TLorentzVector& sim::MCStep::Momentum ( ) const
inline
const TLorentzVector& sim::MCStep::Position ( ) const
inline

Definition at line 36 of file MCStep.h.

References _position.

36 { return _position; }
TLorentzVector _position
Definition: MCStep.h:48
double sim::MCStep::Px ( ) const
inline

Definition at line 42 of file MCStep.h.

References _momentum.

42 { return _momentum.Px(); }
TLorentzVector _momentum
Definition: MCStep.h:52
double sim::MCStep::Py ( ) const
inline

Definition at line 43 of file MCStep.h.

References _momentum.

43 { return _momentum.Py(); }
TLorentzVector _momentum
Definition: MCStep.h:52
double sim::MCStep::Pz ( ) const
inline

Definition at line 44 of file MCStep.h.

References _momentum.

44 { return _momentum.Pz(); }
TLorentzVector _momentum
Definition: MCStep.h:52
void sim::MCStep::SetMomentum ( const TLorentzVector &  v)
inline

Definition at line 48 of file MCStep.h.

References _momentum, and _position.

48 { _momentum = v; };
TLorentzVector _momentum
Definition: MCStep.h:52
void sim::MCStep::SetPosition ( const TLorentzVector &  v)
inline

Definition at line 47 of file MCStep.h.

References _position.

47 { _position = v; };
TLorentzVector _position
Definition: MCStep.h:48
double sim::MCStep::T ( ) const
inline

Definition at line 41 of file MCStep.h.

References _position.

Referenced by trkf::SeedAna::analyze(), and trkf::TrackAna::analyze().

41 { return _position.T(); }
TLorentzVector _position
Definition: MCStep.h:48
double sim::MCStep::X ( ) const
inline

Definition at line 38 of file MCStep.h.

References _position.

38 { return _position.X(); }
TLorentzVector _position
Definition: MCStep.h:48
double sim::MCStep::Y ( ) const
inline

Definition at line 39 of file MCStep.h.

References _position.

39 { return _position.Y(); }
TLorentzVector _position
Definition: MCStep.h:48
double sim::MCStep::Z ( ) const
inline

Definition at line 40 of file MCStep.h.

References _position.

40 { return _position.Z(); }
TLorentzVector _position
Definition: MCStep.h:48

Member Data Documentation

TLorentzVector sim::MCStep::_momentum
protected

Definition at line 52 of file MCStep.h.

Referenced by E(), Momentum(), Px(), Py(), Pz(), and SetMomentum().

TLorentzVector sim::MCStep::_position
protected

Definition at line 48 of file MCStep.h.

Referenced by Position(), SetMomentum(), SetPosition(), T(), X(), Y(), and Z().


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