#include <TrkHotListEmpty.h>
|
| TrkHotListEmpty (int nActive, int nSvt, int nMdc, double startFoundRange, double endFoundRange) |
|
| TrkHotListEmpty (unsigned nPhi, unsigned nZ, unsigned nAxial, unsigned nStereo, double startFoundRange, double endFoundRange, unsigned firstmdclay, unsigned lastmdclay, TrkView svtpattern[5], const std::vector< unsigned > &inactive) |
|
| TrkHotListEmpty (const TrkHotList &other) |
|
TrkHotListEmpty & | operator= (const TrkHotList &) |
|
virtual TrkHotList * | clone (TrkBase::Functors::cloneHot) const |
|
virtual | ~TrkHotListEmpty () |
|
virtual bool | hitCapable () const |
|
virtual int | nActive (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
|
virtual int | nMdc (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
|
virtual int | nSvt (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
|
virtual int | nHit (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
|
virtual TrkView | svtView (int layer) const |
|
virtual unsigned | firstMdcLayer () const |
|
virtual unsigned | lastMdcLayer () const |
|
virtual double | startFoundRange () const |
|
virtual double | endFoundRange () const |
|
virtual bool | isActive (unsigned ihot) const |
|
virtual void | append (TrkHitOnTrk *) |
|
virtual void | remove (TrkHitOnTrk *) |
|
TrkHitOnTrk * | findHot (const TrkFundHit *) const |
|
virtual void | updateHots () |
|
| TrkHotList () |
|
virtual TrkHotList * | resetParent (TrkBase::Functors::setParent) |
|
virtual | ~TrkHotList () |
|
hot_iterator | begin () const |
|
hot_iterator | end () const |
|
nc_hot_iterator | begin () |
|
nc_hot_iterator | end () |
|
virtual bool | hasSvtView (TrkEnums::TrkViewInfo view, int layer) const |
|
virtual void | sort () |
|
void | print (std::ostream &o) const |
|
void | printAll (std::ostream &o) const |
|
Definition at line 25 of file TrkHotListEmpty.h.
◆ TrkHotListEmpty() [1/3]
TrkHotListEmpty::TrkHotListEmpty |
( |
int | nActive, |
|
|
int | nSvt, |
|
|
int | nMdc, |
|
|
double | startFoundRange, |
|
|
double | endFoundRange ) |
Definition at line 20 of file TrkHotListEmpty.cxx.
22{
23 _nPhi = nsv/2; _nZ = nsv-_nPhi;
24 _nAxial = ndc/3; _nStereo = ndc-_nAxial;
25 _stFndRng = sfr;
26 _endFndRng = efr;
27 _firstmdc = _lastmdc = 0;
28 for(unsigned isvt=0;isvt<5;isvt++)
30}
Referenced by clone().
◆ TrkHotListEmpty() [2/3]
TrkHotListEmpty::TrkHotListEmpty |
( |
unsigned | nPhi, |
|
|
unsigned | nZ, |
|
|
unsigned | nAxial, |
|
|
unsigned | nStereo, |
|
|
double | startFoundRange, |
|
|
double | endFoundRange, |
|
|
unsigned | firstmdclay, |
|
|
unsigned | lastmdclay, |
|
|
TrkView | svtpattern[5], |
|
|
const std::vector< unsigned > & | inactive ) |
Definition at line 32 of file TrkHotListEmpty.cxx.
37 :
38 _nAxial(nAxial),_nStereo(nStereo),_nPhi(
nPhi),_nZ(
nZ),
39 _stFndRng(sfr),_endFndRng(efr),_firstmdc(firstmdc),_lastmdc(lastmdc),
40 _inactive(inactive)
41{
42 for(unsigned j=0;j<5;j++)
43 _svtpat[j] = svtpattern[j];
44}
◆ TrkHotListEmpty() [3/3]
TrkHotListEmpty::TrkHotListEmpty |
( |
const TrkHotList & | other | ) |
|
Definition at line 96 of file TrkHotListEmpty.cxx.
96 :
101 _stFndRng(
other.startFoundRange()),
102 _endFndRng(
other.endFoundRange()),
103 _firstmdc(
other.firstMdcLayer()),
104 _lastmdc(
other.lastMdcLayer())
105{
106 for(unsigned ilay=0;ilay<5;ilay++)
107 _svtpat[ilay] =
other.svtView(ilay+1);
108 unsigned nhit =
other.nHit();
109 for(unsigned ihit=0;ihit<nhit;ihit++)
111 _inactive.push_back(ihit);
112}
virtual bool isActive(unsigned ihot) const
Index other(Index i, Index j)
◆ ~TrkHotListEmpty()
TrkHotListEmpty::~TrkHotListEmpty |
( |
| ) |
|
|
virtual |
◆ append()
◆ clone()
Implements TrkHotList.
Definition at line 91 of file TrkHotListEmpty.cxx.
92{
94}
TrkHotListEmpty(int nActive, int nSvt, int nMdc, double startFoundRange, double endFoundRange)
◆ endFoundRange()
double TrkHotListEmpty::endFoundRange |
( |
| ) |
const |
|
virtual |
◆ findHot()
◆ firstMdcLayer()
unsigned TrkHotListEmpty::firstMdcLayer |
( |
| ) |
const |
|
virtual |
◆ hitCapable()
bool TrkHotListEmpty::hitCapable |
( |
| ) |
const |
|
virtual |
◆ hotlist() [1/2]
std::vector< TrkHitOnTrk * > & TrkHotListEmpty::hotlist |
( |
| ) |
|
|
protectedvirtual |
Implements TrkHotList.
Definition at line 184 of file TrkHotListEmpty.cxx.
185{
186 static std::vector<TrkHitOnTrk*> dummy;
187 assert(dummy.empty());
188 return dummy;
189}
◆ hotlist() [2/2]
const std::vector< TrkHitOnTrk * > & TrkHotListEmpty::hotlist |
( |
| ) |
const |
|
protectedvirtual |
Implements TrkHotList.
Definition at line 175 of file TrkHotListEmpty.cxx.
176{
177 static const std::vector<TrkHitOnTrk*> dummy;
178 assert(dummy.empty());
179 return dummy;
180
181}
◆ isActive()
bool TrkHotListEmpty::isActive |
( |
unsigned | ihot | ) |
const |
|
virtual |
Implements TrkHotList.
Definition at line 238 of file TrkHotListEmpty.cxx.
238 {
239 std::vector<unsigned>::const_iterator ifound =
240 std::find(_inactive.begin(),_inactive.end(),ihot);
241 return ifound == _inactive.end();
242}
Referenced by TrkHotListEmpty().
◆ lastMdcLayer()
unsigned TrkHotListEmpty::lastMdcLayer |
( |
| ) |
const |
|
virtual |
◆ nActive()
Implements TrkHotList.
Definition at line 115 of file TrkHotListEmpty.cxx.
116{
118}
virtual int nMdc(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
virtual int nSvt(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
Referenced by nHit().
◆ nHit()
Implements TrkHotList.
Definition at line 151 of file TrkHotListEmpty.cxx.
152{
155 nhit += _inactive.size();
156 else
157 nhit += _inactive.size()/2;
158 return nhit;
159}
virtual int nActive(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
◆ nMdc()
Implements TrkHotList.
Definition at line 136 of file TrkHotListEmpty.cxx.
137{
138 switch (view) {
140 return _nStereo;
142 return _nAxial;
144 return _nStereo + _nAxial;
145 default:
146 return -1;
147 }
148}
Referenced by nActive().
◆ nSvt()
Implements TrkHotList.
Definition at line 121 of file TrkHotListEmpty.cxx.
122{
123 switch (view) {
125 return _nPhi + _nZ;
127 return _nPhi;
129 return _nZ;
130 default:
131 return -1;
132 }
133}
Referenced by nActive().
◆ operator=()
Definition at line 63 of file TrkHotListEmpty.cxx.
63 {
64 if(this != &other){
69 _stFndRng =
other.startFoundRange();
70 _endFndRng =
other.endFoundRange();
71 _firstmdc =
other.firstMdcLayer();
72 _lastmdc =
other.lastMdcLayer();
73 for(unsigned ilay=0;ilay<5;ilay++)
74 _svtpat[ilay] =
other.svtView(ilay+1);
75 unsigned nhits =
other.nHit();
76 std::vector<unsigned> inactive;
77 for(unsigned ihit=0;ihit<nhits;ihit++)
78 if(!
other.isActive(ihit))
79 inactive.push_back(ihit);
80 _inactive = inactive;
81 }
82 return *this;
83}
◆ remove()
◆ startFoundRange()
double TrkHotListEmpty::startFoundRange |
( |
| ) |
const |
|
virtual |
◆ svtView()
TrkView TrkHotListEmpty::svtView |
( |
int | layer | ) |
const |
|
virtual |
◆ updateHots()
void TrkHotListEmpty::updateHots |
( |
| ) |
|
|
virtual |
◆ KalMiniTrkK
The documentation for this class was generated from the following files: