larlight::mcstep Class Reference

Stores a single step of a particle. More...

#include <mctrajectory.hh>

List of all members.

Public Member Functions

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

Protected Attributes

TLorentzVector _position
TLorentzVector _momentum

Detailed Description

Stores a single step of a particle.

Definition at line 29 of file mctrajectory.hh.


Constructor & Destructor Documentation

larlight::mcstep::mcstep (  )  [inline]

Definition at line 33 of file mctrajectory.hh.

00033 {};

larlight::mcstep::mcstep ( const TLorentzVector &  p,
const TLorentzVector &  m 
) [inline]

Definition at line 35 of file mctrajectory.hh.

00036       : _position(p), 
00037     _momentum(m)
00038     {}

virtual larlight::mcstep::~mcstep (  )  [inline, virtual]

Definition at line 40 of file mctrajectory.hh.

00040 {}


Member Function Documentation

Double_t larlight::mcstep::E (  )  const [inline]

Definition at line 53 of file mctrajectory.hh.

References _momentum.

00053 {return _momentum.E();  }

const TLorentzVector& larlight::mcstep::Momentum (  )  const [inline]

Definition at line 42 of file mctrajectory.hh.

References _momentum.

00042 {return _momentum;}

const TLorentzVector& larlight::mcstep::Position (  )  const [inline]

Definition at line 44 of file mctrajectory.hh.

References _position.

00044 {return _position;}

Double_t larlight::mcstep::Px (  )  const [inline]

Definition at line 50 of file mctrajectory.hh.

References _momentum.

00050 {return _momentum.Px(); }

Double_t larlight::mcstep::Py (  )  const [inline]

Definition at line 51 of file mctrajectory.hh.

References _momentum.

00051 {return _momentum.Py(); }

Double_t larlight::mcstep::Pz (  )  const [inline]

Definition at line 52 of file mctrajectory.hh.

References _momentum.

00052 {return _momentum.Pz(); }

void larlight::mcstep::SetMomentum ( const TLorentzVector &  v  )  [inline]

Definition at line 56 of file mctrajectory.hh.

References _momentum.

00056 { _momentum=v; };

void larlight::mcstep::SetPosition ( const TLorentzVector &  v  )  [inline]

Definition at line 55 of file mctrajectory.hh.

References _position.

00055 { _position=v; };

Double_t larlight::mcstep::T (  )  const [inline]

Definition at line 49 of file mctrajectory.hh.

References _position.

00049 {return _position.T();  }

Double_t larlight::mcstep::X (  )  const [inline]

Definition at line 46 of file mctrajectory.hh.

References _position.

00046 {return _position.X();  }

Double_t larlight::mcstep::Y (  )  const [inline]

Definition at line 47 of file mctrajectory.hh.

References _position.

00047 {return _position.Y();  }

Double_t larlight::mcstep::Z (  )  const [inline]

Definition at line 48 of file mctrajectory.hh.

References _position.

00048 {return _position.Z();  }


Member Data Documentation

TLorentzVector larlight::mcstep::_momentum [protected]

Definition at line 61 of file mctrajectory.hh.

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

TLorentzVector larlight::mcstep::_position [protected]

Definition at line 56 of file mctrajectory.hh.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator

Generated on 3 Jun 2014 for MyProject by  doxygen 1.6.1