13#ifndef TTrackHEP_FLAG_
14#define TTrackHEP_FLAG_
16#ifdef TRKRECO_DEBUG_DETAIL
26#include "CLHEP/Alist/AList.h"
27#include "CLHEP/Vector/LorentzVector.h"
28#include "CLHEP/Vector/ThreeVector.h"
30#include "MdcTables/HepevtTables.h"
31#include "TrkReco/TMDC.h"
33using CLHEP::Hep3Vector;
34using CLHEP::HepLorentzVector;
48 static void update(
void );
60 std::string
name(
void )
const;
63 unsigned id(
void )
const;
75 TTrackHEP*
child(
unsigned i )
const;
79 const HepLorentzVector&
p(
void )
const;
82 const Hep3Vector&
v(
void )
const;
85 void dump(
const std::string& message = std::string(
"" ),
86 const std::string& prefix = std::string(
"" ) )
const;
99 const HepLorentzVector _p;
111#ifdef TRKRECO_NO_INLINE
115# define TTrackHEP_INLINE_DEFINE_HERE
118#ifdef TTrackHEP_INLINE_DEFINE_HERE
130inline const HepLorentzVector&
TTrackHEP::p(
void )
const {
return _p; }
132inline const Hep3Vector&
TTrackHEP::v(
void )
const {
return _v; }
136 unsigned id = h->
id - 1;
142inline std::string
TTrackHEP::name(
void )
const {
return "mc" + std::to_string(
id() ); }
void updateMC(void)
updates TMDC information for MC.
A class to represent a GEN_HEPEVT particle in tracking.
const AList< TMDCWireHitMC > & hits(void) const
returns a list of TMDCWireHitMC.
unsigned id(void) const
returns an id started from 0.
int status(void) const
returns status.
const HepLorentzVector & p(void) const
returns momentum vector.
TTrackHEP * child(unsigned i) const
returns a pointer to i'th child.
const Gen_hepevt * gen(void) const
returns a pointer to Gen_hepevt.
TTrackHEP * mother(void) const
returns a pointer to a mother.
std::string name(void) const
returns name.
int pType(void) const
returns particle type.
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
static const AList< TTrackHEP > & list(void)
returns a list of TTrackHEP's.
const Hep3Vector & v(void) const
returns position vector.
virtual ~TTrackHEP()
Destructor.
static TTrackHEP * hep(const Gen_hepevt *)
returns a pointer to TTrackHEP of given Gen_hepevt.