13#include "TrkReco/TTrackHEP.h"
14#include "MdcTables/HepevtTables.h"
19void TTrackHEP::update(
void ) {
20 if ( _list.length() ) HepAListDeleteAll( _list );
27 for (
unsigned i = 0; i <
n; i++ )
34 std::cout <<
"TTrackHEP::update !!! can not access to GEN_HEPEVT";
35 std::cout << std::endl;
39 _list.append(
new TTrackHEP( h ) );
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 )
51 _mother = _list[_hep->mother->id];
52 _mother->_children.append( this );
61 std::cout <<
id() <<
":";
62 std::cout <<
pType() <<
":";
63 if ( _mother ) std::cout << _mother->id();
64 else std::cout <<
"-";
66 std::cout << _p <<
":" << _v;
67 std::cout << std::endl;
double P(RecMdcKalTrack *trk)
static vector< Gen_hepevt > * getGenHepevtCol(void)
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.