14 #ifndef MCPARTICLELITE_H
15 #define MCPARTICLELITE_H
20 #include "nusimdata/SimulationBase/MCParticle.h"
21 #include "nusimdata/SimulationBase/MCTruth.h"
31 #include "TLorentzVector.h"
62 const std::vector<std::pair<TLorentzVector,TLorentzVector> >&
DetPath()
const {
return _det_path; }
81 virtual operator simb::MCParticle()
const {
88 for (
auto const & d :
_daughters) mcpart.AddDaughter(d);
97 _mother = (
unsigned int) p.Mother();
115 std::vector<std::pair<TLorentzVector,TLorentzVector> >
_det_path;
const double kINVALID_DOUBLE
unsigned int Ancestor() const
const std::vector< std::pair< TLorentzVector, TLorentzVector > > & DetPath() const
const TLorentzVector & EndVtx() const
const TLorentzVector & EndMom() const
const TLorentzVector & StartVtx() const
TLorentzVector _end_mom
End momentum in GeV.
void Daughters(std::vector< unsigned int > &&d)
void Process(const std::string &name)
std::vector< unsigned int > _daughters
bool HasDaughter(unsigned int d) const
void DetPath(const std::vector< std::pair< TLorentzVector, TLorentzVector > > &p)
const std::string & Process() const
unsigned int Mother() const
void EndMom(const TLorentzVector &mom)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
void Ancestor(unsigned int id)
const std::vector< unsigned int > & Daughters() const
TLorentzVector _start_vtx
void Mother(unsigned int id)
TLorentzVector _start_mom
Start momentum in GeV.
void DetPath(std::vector< std::pair< TLorentzVector, TLorentzVector > > &&p)
void StartMom(const TLorentzVector &mom)
void Origin(simb::Origin_t o)
void AddDaughter(unsigned int d)
void EndVtx(const TLorentzVector &vtx)
unsigned int TrackID() const
const simb::Origin_t & Origin() const
const unsigned int kINVALID_UINT
virtual ~MCParticleLite()
void StartVtx(const TLorentzVector &vtx)
void Daughters(const std::vector< unsigned int > &d)
MCParticleLite(const simb::MCParticle &p)
const TLorentzVector & StartMom() const
void TrackID(unsigned int id)
std::vector< std::pair< TLorentzVector, TLorentzVector > > _det_path