13#include "TrkReco/TTrackHEP.h"
15#include "MdcTables/HepevtTables.h"
21TTrackHEP::update(
void) {
22 if (_list.length()) HepAListDeleteAll(_list);
29 for (
unsigned i = 0; i <
n; i++) {
34 std::cout <<
"TTrackHEP::update !!! can not access to GEN_HEPEVT";
35 std::cout << std::endl;
46 _p(h->
P[0], h->
P[1], h->
P[2], h->
P[3]),
47 _v(h->V[0], h->V[1], h->V[2]) {
48 if (_hep->mother != 0) {
50 _mother = _list[_hep->mother->id];
51 _mother->_children.append(
this);
62 std::cout <<
id() <<
":";
63 std::cout <<
pType() <<
":";
64 if (_mother) std::cout << _mother->
id();
65 else std::cout <<
"-";
67 std::cout << _p <<
":" << _v;
68 std::cout << std::endl;
double P(RecMdcKalTrack *trk)
static vector< Gen_hepevt > * getGenHepevtCol(void)
A class to represent a GEN_HEPEVT particle in tracking.
unsigned id(void) const
returns an id started from 0.
int pType(void) const
returns particle type.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual ~TTrackHEP()
Destructor.
static const AList< TTrackHEP > & list(void)
returns a list of TTrackHEP's.