13#ifndef TTrackHEP_FLAG_
14#define TTrackHEP_FLAG_
16#ifdef TRKRECO_DEBUG_DETAIL
23#include "CLHEP/String/Strings.h"
25#define HEP_SHORT_NAMES
26#include "CLHEP/Alist/AList.h"
27#include "CLHEP/Vector/ThreeVector.h"
28#include "CLHEP/Vector/LorentzVector.h"
33using CLHEP::Hep3Vector;
34using CLHEP::HepLorentzVector;
48 static void update(
void);
60 std::string
name(
void)
const;
63 unsigned id(
void)
const;
69 int pType(
void)
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
151const HepLorentzVector &
166 unsigned id = h->
id - 1;
179 return "mc" + itostring(
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.
virtual ~TTrackHEP()
Destructor.
const Hep3Vector & v(void) const
returns position vector.
static const AList< TTrackHEP > & list(void)
returns a list of TTrackHEP's.