#include <TTrackHEP.h>
Public Member Functions | |
TTrackHEP * | child (unsigned i) const |
returns a pointer to i'th child. | |
TTrackHEP * | child (unsigned i) const |
returns a pointer to i'th child. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
const Gen_hepevt * | gen (void) const |
returns a pointer to Gen_hepevt. | |
const Gen_hepevt * | gen (void) const |
returns a pointer to Gen_hepevt. | |
const AList< TMDCWireHitMC > & | hits (void) const |
returns a list of TMDCWireHitMC. | |
const AList< TMDCWireHitMC > & | hits (void) const |
returns a list of TMDCWireHitMC. | |
unsigned | id (void) const |
returns an id started from 0. | |
unsigned | id (void) const |
returns an id started from 0. | |
TTrackHEP * | mother (void) const |
returns a pointer to a mother. | |
TTrackHEP * | mother (void) const |
returns a pointer to a mother. | |
std::string | name (void) const |
returns name. | |
std::string | name (void) const |
returns name. | |
const HepLorentzVector & | p (void) const |
returns momentum vector. | |
const HepLorentzVector & | p (void) const |
returns momentum vector. | |
int | pType (void) const |
returns particle type. | |
int | pType (void) const |
returns particle type. | |
int | status (void) const |
returns status. | |
int | status (void) const |
returns status. | |
const Hep3Vector & | v (void) const |
returns position vector. | |
const Hep3Vector & | v (void) const |
returns position vector. | |
virtual | ~TTrackHEP () |
Destructor. | |
virtual | ~TTrackHEP () |
Destructor. | |
Static Public Member Functions | |
TTrackHEP * | hep (const Gen_hepevt *) |
returns a pointer to TTrackHEP of given Gen_hepevt. | |
TTrackHEP * | hep (const Gen_hepevt *) |
returns a pointer to TTrackHEP of given Gen_hepevt. | |
const AList< TTrackHEP > & | list (void) |
returns a list of TTrackHEP's. | |
const AList< TTrackHEP > & | list (void) |
returns a list of TTrackHEP's. | |
Private Member Functions | |
TTrackHEP (const Gen_hepevt *) | |
Constructor. | |
TTrackHEP (const Gen_hepevt *) | |
Constructor. | |
Static Private Member Functions | |
void | update (void) |
updates information. | |
void | update (void) |
updates information. | |
Private Attributes | |
AList< TTrackHEP > | _children |
AList< TTrackHEP > | _children |
const Gen_hepevt * | _hep |
const Gen_hepevt * | _hep |
AList< TMDCWireHitMC > | _hits |
AList< TMDCWireHitMC > | _hits |
TTrackHEP * | _mother |
TTrackHEP * | _mother |
const HepLorentzVector | _p |
const Hep3Vector | _v |
Static Private Attributes | |
AList< TTrackHEP > | _list |
AList< TTrackHEP > | _list = AList<TTrackHEP>() |
Friends | |
void | TMDC::updateMC (void) |
void | TMDC::updateMC (void) |
|
Constructor.
00044 : _hep(h), 00045 _mother(0), 00046 _p(h->P[0], h->P[1], h->P[2], h->P[3]), 00047 _v(h->V[0], h->V[1], h->V[2]) { 00048 if (_hep->mother != 0) { 00049 // _mother = _list[_hep->mother-1]; 00050 _mother = _list[_hep->mother->id]; 00051 _mother->_children.append(this); 00052 } 00053 }
|
|
Destructor.
00055 { 00056 }
|
|
Constructor.
|
|
Destructor.
|
|
returns a pointer to i'th child.
|
|
returns a pointer to i'th child.
00146 { 00147 return _children[i]; 00148 }
|
|
dumps debug information.
|
|
dumps debug information.
00059 { 00060 std::cout << pre; 00061 00062 std::cout << id() << ":"; 00063 std::cout << pType() << ":"; 00064 if (_mother) std::cout << _mother->id(); 00065 else std::cout << "-"; 00066 std::cout << ":"; 00067 std::cout << _p << ":" << _v; 00068 std::cout << std::endl; 00069 }
|
|
returns a pointer to Gen_hepevt.
|
|
returns a pointer to Gen_hepevt.
00184 {
00185 return _hep;
00186 }
|
|
returns a pointer to TTrackHEP of given Gen_hepevt.
|
|
returns a pointer to TTrackHEP of given Gen_hepevt.
|
|
returns a list of TMDCWireHitMC.
|
|
returns a list of TMDCWireHitMC.
00172 {
00173 return _hits;
00174 }
|
|
returns an id started from 0.
|
|
returns an id started from 0.
|
|
returns a list of TTrackHEP's.
|
|
returns a list of TTrackHEP's.
00072 {
00073 return _list;
00074 }
|
|
returns a pointer to a mother.
|
|
returns a pointer to a mother.
00140 {
00141 return _mother;
00142 }
|
|
returns name.
|
|
returns name.
00178 { 00179 return "mc" + itostring(id()); 00180 }
|
|
returns momentum vector.
|
|
returns momentum vector.
00152 {
00153 return _p;
00154 }
|
|
returns particle type.
|
|
returns particle type.
|
|
returns status.
|
|
returns status.
|
|
updates information.
|
|
updates information.
00021 { 00022 if (_list.length()) HepAListDeleteAll(_list); 00023 00024 // unsigned n = BsCouTab(GEN_HEPEVT); 00025 // std::vector<Gen_hepevt>* genhep = GenHepevtCol::getGenHepevtCol(); 00026 unsigned n = GenHepevtCol::getGenHepevtCol()->size(); 00027 // unsigned n = genhep -> size(); 00028 00029 for (unsigned i = 0; i < n; i++) { 00030 // Gen_hepevt * h = *genhep[i]; 00031 Gen_hepevt* h = &(*GenHepevtCol::getGenHepevtCol())[i]; 00032 // (struct gen_hepevt *) BsGetEnt(GEN_HEPEVT, i + 1, BBS_No_Index); 00033 if (! h) { 00034 std::cout << "TTrackHEP::update !!! can not access to GEN_HEPEVT"; 00035 std::cout << std::endl; 00036 break; 00037 } 00038 00039 _list.append(new TTrackHEP(h)); 00040 } 00041 }
|
|
returns position vector.
|
|
returns position vector.
00158 {
00159 return _v;
00160 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|