BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHotListUnowned.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkHotListUnowned.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description: class TrkHotListUnowned. A copy of TrkHotListUnowned where the
6// hots are not owned by this class. This is useful in nested reps like the
7// mini-rep.
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12//// Copyright Information:
13// Copyright (C) 2000 Lawrence Berkeley Laboratory
14//
15// Author List:
16// Dave Brown 11/6/00
17//------------------------------------------------------------------------
18
19//#include "BaBar/BaBar.h"
20#include "TrkBase/TrkHotListUnowned.h"
21#include "TrkBase/TrkView.h"
22#include <assert.h>
23//#include "ErrLogger/ErrLog.h"
24
25
27 _hotl(other),_ownhots(take)
28{
29}
30
33{
34 return new TrkHotListUnowned(_hotl);
35}
36
38{
39 if(_ownhots)delete _hotl;
40}
41
42void
44{
45 _hotl->append(newHot);
46}
47
48void
50{
51 _hotl->remove(deadHot);
52}
53
56{
57 return _hotl->findHot(theHit);
58}
59
60int
62{
63 return _hotl->nActive(view);
64}
65
66int
68{
69 return _hotl->nHit(view);
70}
71
72
73bool
75{
76 return _hotl->hitCapable();
77}
78
79int
81{
82 return _hotl->nMdc(view);
83}
84
85int
87{
88 return _hotl->nSvt(view);
89}
90
91double
93{
94 return _hotl->startFoundRange();
95}
96
97double
99{
100 return _hotl->endFoundRange();
101}
102
103void
105{
106 _hotl->updateHots();
107}
108
111 return _hotl->svtView(layer);
112}
113
114unsigned
116 return _hotl->firstMdcLayer();
117}
118
119unsigned
121{
122 return _hotl->lastMdcLayer();
123}
124
125const std::vector<TrkHitOnTrk*>&
127{
128 return _hotl->hotlist();
129}
130
131std::vector<TrkHitOnTrk*>&
133{
134 return _hotl->hotlist();
135}
136
139 if(_ownhots){
140 _ownhots = false;
141 return _hotl;
142 } else
143 return 0;
144}
145
146bool
147TrkHotListUnowned::isActive(unsigned ihot) const {
148 return _hotl->isActive(ihot);
149}
150
virtual bool isActive(unsigned ihot) const
virtual bool hitCapable() const
void append(TrkHitOnTrk *)
virtual TrkView svtView(int layer) const
virtual int nSvt(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
virtual double startFoundRange() const
virtual unsigned lastMdcLayer() const
virtual unsigned firstMdcLayer() const
TrkHotList * clone(TrkBase::Functors::cloneHot) const
virtual int nMdc(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
virtual int nHit(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
void remove(TrkHitOnTrk *)
TrkHitOnTrk * findHot(const TrkFundHit *) const
virtual void updateHots()
virtual int nActive(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const
virtual const std::vector< TrkHitOnTrk * > & hotlist() const
virtual double endFoundRange() const
TrkHotList * takeHotList()
virtual TrkHitOnTrk * findHot(const TrkFundHit *) const =0
virtual void remove(TrkHitOnTrk *)=0
virtual void append(TrkHitOnTrk *)=0
virtual double endFoundRange() const =0
virtual bool isActive(unsigned ihot) const =0
virtual bool hitCapable() const =0
virtual int nSvt(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual unsigned lastMdcLayer() const =0
virtual double startFoundRange() const =0
virtual int nActive(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual unsigned firstMdcLayer() const =0
virtual int nMdc(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual TrkView svtView(int layer) const =0
virtual int nHit(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual void updateHots()=0