BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TTrackHEP Class Reference

A class to represent a GEN_HEPEVT particle in tracking. More...

#include <TTrackHEP.h>

Public Member Functions

virtual ~TTrackHEP ()
 Destructor.
std::string name (void) const
 returns name.
unsigned id (void) const
 returns an id started from 0.
int status (void) const
 returns status.
int pType (void) const
 returns particle type.
TTrackHEPmother (void) const
 returns a pointer to a mother.
TTrackHEPchild (unsigned i) const
 returns a pointer to i'th child.
const HepLorentzVector & p (void) const
 returns momentum vector.
const Hep3Vector & v (void) const
 returns position vector.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMDCWireHitMC > & hits (void) const
 returns a list of TMDCWireHitMC.
const Gen_hepevtgen (void) const
 returns a pointer to Gen_hepevt.
virtual ~TTrackHEP ()
 Destructor.
std::string name (void) const
 returns name.
unsigned id (void) const
 returns an id started from 0.
int status (void) const
 returns status.
int pType (void) const
 returns particle type.
TTrackHEPmother (void) const
 returns a pointer to a mother.
TTrackHEPchild (unsigned i) const
 returns a pointer to i'th child.
const HepLorentzVector & p (void) const
 returns momentum vector.
const Hep3Vector & v (void) const
 returns position vector.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMDCWireHitMC > & hits (void) const
 returns a list of TMDCWireHitMC.
const Gen_hepevtgen (void) const
 returns a pointer to Gen_hepevt.
virtual ~TTrackHEP ()
 Destructor.
std::string name (void) const
 returns name.
unsigned id (void) const
 returns an id started from 0.
int status (void) const
 returns status.
int pType (void) const
 returns particle type.
TTrackHEPmother (void) const
 returns a pointer to a mother.
TTrackHEPchild (unsigned i) const
 returns a pointer to i'th child.
const HepLorentzVector & p (void) const
 returns momentum vector.
const Hep3Vector & v (void) const
 returns position vector.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMDCWireHitMC > & hits (void) const
 returns a list of TMDCWireHitMC.
const Gen_hepevtgen (void) const
 returns a pointer to Gen_hepevt.

Static Public Member Functions

static const AList< TTrackHEP > & list (void)
 returns a list of TTrackHEP's.
static TTrackHEPhep (const Gen_hepevt *)
 returns a pointer to TTrackHEP of given Gen_hepevt.
static const AList< TTrackHEP > & list (void)
 returns a list of TTrackHEP's.
static TTrackHEPhep (const Gen_hepevt *)
 returns a pointer to TTrackHEP of given Gen_hepevt.
static const AList< TTrackHEP > & list (void)
 returns a list of TTrackHEP's.
static TTrackHEPhep (const Gen_hepevt *)
 returns a pointer to TTrackHEP of given Gen_hepevt.

Friends

void TMDC::updateMC (void)
void TMDC::updateMC (void)
void TMDC::updateMC (void)

Detailed Description

A class to represent a GEN_HEPEVT particle in tracking.

Definition at line 37 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

Constructor & Destructor Documentation

◆ ~TTrackHEP() [1/3]

TTrackHEP::~TTrackHEP ( )
virtual

Destructor.

Definition at line 56 of file TTrackHEP.cxx.

56{}

◆ ~TTrackHEP() [2/3]

virtual TTrackHEP::~TTrackHEP ( )
virtual

Destructor.

◆ ~TTrackHEP() [3/3]

virtual TTrackHEP::~TTrackHEP ( )
virtual

Destructor.

Member Function Documentation

◆ child() [1/3]

TTrackHEP * TTrackHEP::child ( unsigned i) const
inline

returns a pointer to i'th child.

Definition at line 128 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

128{ return _children[i]; }

◆ child() [2/3]

TTrackHEP * TTrackHEP::child ( unsigned i) const

returns a pointer to i'th child.

◆ child() [3/3]

TTrackHEP * TTrackHEP::child ( unsigned i) const

returns a pointer to i'th child.

◆ dump() [1/3]

void TTrackHEP::dump ( const std::string & message = std::string( "" ),
const std::string & prefix = std::string( "" ) ) const

dumps debug information.

Definition at line 58 of file TTrackHEP.cxx.

58 {
59 std::cout << pre;
60
61 std::cout << id() << ":";
62 std::cout << pType() << ":";
63 if ( _mother ) std::cout << _mother->id();
64 else std::cout << "-";
65 std::cout << ":";
66 std::cout << _p << ":" << _v;
67 std::cout << std::endl;
68}
unsigned id(void) const
returns an id started from 0.
int pType(void) const
returns particle type.

◆ dump() [2/3]

void TTrackHEP::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ dump() [3/3]

void TTrackHEP::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ gen() [1/3]

const Gen_hepevt * TTrackHEP::gen ( void ) const
inline

returns a pointer to Gen_hepevt.

Definition at line 144 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

144{ return _hep; }

Referenced by TTrackManager::saveMCTables().

◆ gen() [2/3]

const Gen_hepevt * TTrackHEP::gen ( void ) const

returns a pointer to Gen_hepevt.

◆ gen() [3/3]

const Gen_hepevt * TTrackHEP::gen ( void ) const

returns a pointer to Gen_hepevt.

◆ hep() [1/3]

TTrackHEP * TTrackHEP::hep ( const Gen_hepevt * h)
inlinestatic

returns a pointer to TTrackHEP of given Gen_hepevt.

Definition at line 134 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

134 {
135 if ( !h ) return 0;
136 unsigned id = h->id - 1;
137 return _list[id];
138}

Referenced by TMDCWireHitMC::TMDCWireHitMC().

◆ hep() [2/3]

TTrackHEP * TTrackHEP::hep ( const Gen_hepevt * )
static

returns a pointer to TTrackHEP of given Gen_hepevt.

◆ hep() [3/3]

TTrackHEP * TTrackHEP::hep ( const Gen_hepevt * )
static

returns a pointer to TTrackHEP of given Gen_hepevt.

◆ hits() [1/3]

const AList< TMDCWireHitMC > & TTrackHEP::hits ( void ) const
inline

returns a list of TMDCWireHitMC.

Definition at line 140 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

140{ return _hits; }

◆ hits() [2/3]

const AList< TMDCWireHitMC > & TTrackHEP::hits ( void ) const

returns a list of TMDCWireHitMC.

◆ hits() [3/3]

const AList< TMDCWireHitMC > & TTrackHEP::hits ( void ) const

returns a list of TMDCWireHitMC.

◆ id() [1/3]

unsigned TTrackHEP::id ( void ) const
inline

returns an id started from 0.

Definition at line 120 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

120{ return _hep->id - 1; }

Referenced by Dump(), TMDCWireHit::dump(), dump(), hep(), TLine0::refine(), and TMLine::refine().

◆ id() [2/3]

unsigned TTrackHEP::id ( void ) const

returns an id started from 0.

◆ id() [3/3]

unsigned TTrackHEP::id ( void ) const

returns an id started from 0.

◆ list() [1/3]

const AList< TTrackHEP > & TTrackHEP::list ( void )
static

returns a list of TTrackHEP's.

Definition at line 70 of file TTrackHEP.cxx.

70{ return _list; }

Referenced by Links2HEP(), and TMDC::updateMC().

◆ list() [2/3]

const AList< TTrackHEP > & TTrackHEP::list ( void )
static

returns a list of TTrackHEP's.

◆ list() [3/3]

const AList< TTrackHEP > & TTrackHEP::list ( void )
static

returns a list of TTrackHEP's.

◆ mother() [1/3]

TTrackHEP * TTrackHEP::mother ( void ) const
inline

returns a pointer to a mother.

Definition at line 126 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

126{ return _mother; }

◆ mother() [2/3]

TTrackHEP * TTrackHEP::mother ( void ) const

returns a pointer to a mother.

◆ mother() [3/3]

TTrackHEP * TTrackHEP::mother ( void ) const

returns a pointer to a mother.

◆ name() [1/3]

std::string TTrackHEP::name ( void ) const
inline

returns name.

Definition at line 142 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

142{ return "mc" + std::to_string( id() ); }

◆ name() [2/3]

std::string TTrackHEP::name ( void ) const

returns name.

◆ name() [3/3]

std::string TTrackHEP::name ( void ) const

returns name.

◆ p() [1/3]

const HepLorentzVector & TTrackHEP::p ( void ) const
inline

returns momentum vector.

Definition at line 130 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

130{ return _p; }

◆ p() [2/3]

const HepLorentzVector & TTrackHEP::p ( void ) const

returns momentum vector.

◆ p() [3/3]

const HepLorentzVector & TTrackHEP::p ( void ) const

returns momentum vector.

◆ pType() [1/3]

int TTrackHEP::pType ( void ) const
inline

returns particle type.

Definition at line 124 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

124{ return _hep->idhep; }

Referenced by TPerfectFinder::doit(), and dump().

◆ pType() [2/3]

int TTrackHEP::pType ( void ) const

returns particle type.

◆ pType() [3/3]

int TTrackHEP::pType ( void ) const

returns particle type.

◆ status() [1/3]

int TTrackHEP::status ( void ) const
inline

returns status.

Definition at line 122 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

122{ return _hep->isthep; }

◆ status() [2/3]

int TTrackHEP::status ( void ) const

returns status.

◆ status() [3/3]

int TTrackHEP::status ( void ) const

returns status.

◆ v() [1/3]

const Hep3Vector & TTrackHEP::v ( void ) const
inline

returns position vector.

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TTrackHEP.h.

132{ return _v; }

◆ v() [2/3]

const Hep3Vector & TTrackHEP::v ( void ) const

returns position vector.

◆ v() [3/3]

const Hep3Vector & TTrackHEP::v ( void ) const

returns position vector.

◆ TMDC::updateMC [1/3]

void TMDC::updateMC ( void )
friend

◆ TMDC::updateMC [2/3]

void TMDC::updateMC ( void )
friend

◆ TMDC::updateMC [3/3]

void TMDC::updateMC ( void )
friend

The documentation for this class was generated from the following files: