BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkExpectedTrk Class Reference

#include <TrkExpectedTrk.h>

Public Member Functions

 TrkExpectedTrk (const TrkRecoTrk *aTrack, const PdtPid::PidType=PdtPid::null, const GTrack *gTrk=0, TrkExpectedMap *exMap=0)
 
virtual ~TrkExpectedTrk ()
 
bool operator== (const TrkExpectedTrk &rhs) const
 
const TrkHitOnTrkgetHot (const TrkFundHit *hit, const TrkFitTypeKey &key) const
 
const TrkReprefRep () const
 
const GTrack * gTrack () const
 
const TrkRecoTrktrack () const
 
const TrkExpectedHotSetexHotSet (const TrkDetElemId &elemId) const
 
const TrkExpectedHotSetexHotSet (const TrkHitOnTrk *hot) const
 
const TrkExpectedHotSetexHotSet (const TrkFundHit *hit) const
 
const TrkExpectedHotexHot (const TrkDetElemId &elemId, const TrkFitTypeKey key=TrkFitTypeKey(0)) const
 
const TrkExpectedHotexHot (const TrkHitOnTrk *hot) const
 
const TrkExpectedHotexHot (const TrkFundHit *hit, const TrkFitTypeKey key=TrkFitTypeKey(0)) const
 
void fillExHotSets (std::vector< TrkExpectedHotSet * > &hotSets) const
 
void fillExHots (const TrkFitTypeKey &key, std::vector< TrkExpectedHot * > &hots) const
 
int overLap (const TrkRep *rep) const
 
const std::map< TrkDetElemId, TrkExpectedHotSet * > & expectedHots () const
 
void printFit (const TrkFitTypeKey &key, std::ostream &os=std::cout) const
 

Protected Member Functions

bool parseHotFromMap (const TrkHitOnTrk *hot, const bool fillGaps)
 
bool parseHotSetFromMap (TrkExpectedHotSet *hotSet, const TrkFitTypeKey &key)
 
bool parseHotSetFromMap (TrkExpectedHotSet *hotSet)
 
bool parseHotsFromMap (const TrkFitTypeKey &key)
 
bool parseHotsFromMap ()
 
const TrkRepgetRep (const TrkRecoTrk *aTrk, const PdtPid::PidType type) const
 
bool addExHotSet (const TrkDetElemId &elemId, TrkExpectedHotSet *val)
 

Friends

class TrkExpectedHotFactory
 

Detailed Description

Definition at line 64 of file TrkExpectedTrk.h.

Constructor & Destructor Documentation

◆ TrkExpectedTrk()

TrkExpectedTrk::TrkExpectedTrk ( const TrkRecoTrk aTrack,
const PdtPid::PidType  = PdtPid::null,
const GTrack *  gTrk = 0,
TrkExpectedMap *  exMap = 0 
)

◆ ~TrkExpectedTrk()

virtual TrkExpectedTrk::~TrkExpectedTrk ( )
virtual

Member Function Documentation

◆ addExHotSet()

bool TrkExpectedTrk::addExHotSet ( const TrkDetElemId elemId,
TrkExpectedHotSet val 
)
protected

◆ exHot() [1/3]

const TrkExpectedHot * TrkExpectedTrk::exHot ( const TrkDetElemId elemId,
const TrkFitTypeKey  key = TrkFitTypeKey(0) 
) const

◆ exHot() [2/3]

const TrkExpectedHot * TrkExpectedTrk::exHot ( const TrkFundHit hit,
const TrkFitTypeKey  key = TrkFitTypeKey(0) 
) const

◆ exHot() [3/3]

const TrkExpectedHot * TrkExpectedTrk::exHot ( const TrkHitOnTrk hot) const

◆ exHotSet() [1/3]

const TrkExpectedHotSet * TrkExpectedTrk::exHotSet ( const TrkDetElemId elemId) const

◆ exHotSet() [2/3]

const TrkExpectedHotSet * TrkExpectedTrk::exHotSet ( const TrkFundHit hit) const

◆ exHotSet() [3/3]

const TrkExpectedHotSet * TrkExpectedTrk::exHotSet ( const TrkHitOnTrk hot) const

◆ expectedHots()

const std::map< TrkDetElemId, TrkExpectedHotSet * > & TrkExpectedTrk::expectedHots ( ) const
inline

Definition at line 140 of file TrkExpectedTrk.h.

141 {
142 return _exHotTable;
143 }

◆ fillExHots()

void TrkExpectedTrk::fillExHots ( const TrkFitTypeKey key,
std::vector< TrkExpectedHot * > &  hots 
) const

◆ fillExHotSets()

void TrkExpectedTrk::fillExHotSets ( std::vector< TrkExpectedHotSet * > &  hotSets) const

◆ getHot()

const TrkHitOnTrk * TrkExpectedTrk::getHot ( const TrkFundHit hit,
const TrkFitTypeKey key 
) const

◆ getRep()

const TrkRep * TrkExpectedTrk::getRep ( const TrkRecoTrk aTrk,
const PdtPid::PidType  type 
) const
protected

◆ gTrack()

const GTrack * TrkExpectedTrk::gTrack ( ) const
inline

Definition at line 99 of file TrkExpectedTrk.h.

99 {
100 return _gTrk;
101 }

◆ operator==()

bool TrkExpectedTrk::operator== ( const TrkExpectedTrk rhs) const
inline

Definition at line 87 of file TrkExpectedTrk.h.

87 {
88 return this == &rhs;
89 }

◆ overLap()

int TrkExpectedTrk::overLap ( const TrkRep rep) const
inline

Definition at line 127 of file TrkExpectedTrk.h.

128 {
129 // FIXME: std::count doesn't work with the BaBar config of Sun WS6U1..
130 // return std::count(_reps.begin(),_reps.end(),rep);
131 typedef std::vector<const TrkRep*>::const_iterator i_t;
132 int j=0;
133 for (i_t i=_reps.begin(); i!=_reps.end();++i) {
134 if (*i == rep) ++j;
135 }
136 return j;
137 }

◆ parseHotFromMap()

bool TrkExpectedTrk::parseHotFromMap ( const TrkHitOnTrk hot,
const bool  fillGaps 
)
protected

◆ parseHotSetFromMap() [1/2]

bool TrkExpectedTrk::parseHotSetFromMap ( TrkExpectedHotSet hotSet)
protected

◆ parseHotSetFromMap() [2/2]

bool TrkExpectedTrk::parseHotSetFromMap ( TrkExpectedHotSet hotSet,
const TrkFitTypeKey key 
)
protected

◆ parseHotsFromMap() [1/2]

bool TrkExpectedTrk::parseHotsFromMap ( )
protected

◆ parseHotsFromMap() [2/2]

bool TrkExpectedTrk::parseHotsFromMap ( const TrkFitTypeKey key)
protected

◆ printFit()

void TrkExpectedTrk::printFit ( const TrkFitTypeKey key,
std::ostream &  os = std::cout 
) const

◆ refRep()

const TrkRep * TrkExpectedTrk::refRep ( ) const
inline

Definition at line 95 of file TrkExpectedTrk.h.

95 {
96 return _refRep;
97 }

◆ track()

const TrkRecoTrk * TrkExpectedTrk::track ( ) const

Friends And Related Function Documentation

◆ TrkExpectedHotFactory

friend class TrkExpectedHotFactory
friend

Definition at line 168 of file TrkExpectedTrk.h.


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