13#ifndef TRGCDCTrackMC_FLAG_
14#define TRGCDCTrackMC_FLAG_
17#include "CLHEP/Vector/LorentzVector.h"
18#include "trg/trg/Utilities.h"
19#include "trg/cdc/TRGCDC.h"
21#ifdef TRGCDC_SHORT_NAMES
22#define TCTrackMC TRGCDCTrackMC
36 static std::vector<const TRGCDCTrackMC*>
list(
void);
52 std::string
name(
void)
const;
55 unsigned id(
void)
const;
61 int pType(
void)
const;
70 const CLHEP::HepLorentzVector&
p(
void)
const;
73 const CLHEP::Hep3Vector&
v(
void)
const;
76 void dump(
const std::string& message = std::string(
""),
77 const std::string& prefix = std::string(
""))
const;
80 std::vector<const TRGCDCWireHitMC*>
hits(
void)
const;
97 const CLHEP::HepLorentzVector
_p;
99 const CLHEP::Hep3Vector
_v;
101 std::vector<TRGCDCWireHitMC*>
_hits;
105 static std::vector<const TRGCDCTrackMC*>
_list;
151 const CLHEP::HepLorentzVector&
158 const CLHEP::Hep3Vector&
A class to represent a GEN_HEPEVT particle in tracking.
std::vector< TRGCDCWireHitMC * > _hits
vector of pointers to TRGCDCWireHitMC
TRGCDCTrackMC * _mother
pointer to mother TRGCDCTrackMC
std::vector< TRGCDCTrackMC * > _children
vector of pointers to children TRGCDCTrackMC
const CLHEP::HepLorentzVector _p
momentum
const CLHEP::Hep3Vector _v
vertex
The instance of TRGCDC is a singleton.
const CLHEP::Hep3Vector & v(void) const
returns position vector.
static std::vector< const TRGCDCTrackMC * > _list
vector of pointers to TRGCDCTrackMC
std::vector< const TRGCDCWireHitMC * > hits(void) const
returns a list of TRGCDCWireHitMC.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
const TRGCDCTrackMC * child(unsigned i) const
returns a pointer to i'th child.
unsigned id(void) const
returns an id started from 0.
const CLHEP::HepLorentzVector & p(void) const
returns momentum vector.
const TRGCDCTrackMC * mother(void) const
returns a pointer to a mother.
int status(void) const
returns status.
virtual ~TRGCDCTrackMC()
Destructor.
static void update(void)
updates information.
static std::string itostring(int i)
converts int to string. (Use boost::lexical_cast)
static TRGCDCTrackMC * _undefined
returns a pointer to gen_hepevt.
TRGCDCTrackMC()
Constructor.
std::string name(void) const
returns name.
int pType(void) const
returns particle type.
static std::vector< const TRGCDCTrackMC * > list(void)
returns a list of TRGCDCTrackMC's.
Abstract base class for different kinds of events.