BOSS 8.0.0
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
26 : _hotl( other ), _ownhots( take ) {}
27
31
33 if ( _ownhots ) delete _hotl;
34}
35
36void TrkHotListUnowned::append( TrkHitOnTrk* newHot ) { _hotl->append( newHot ); }
37
38void TrkHotListUnowned::remove( TrkHitOnTrk* deadHot ) { _hotl->remove( deadHot ); }
39
41 return _hotl->findHot( theHit );
42}
43
45 return _hotl->nActive( view );
46}
47
48int TrkHotListUnowned::nHit( TrkEnums::TrkViewInfo view ) const { return _hotl->nHit( view ); }
49
50bool TrkHotListUnowned::hitCapable() const { return _hotl->hitCapable(); }
51
52int TrkHotListUnowned::nMdc( TrkEnums::TrkViewInfo view ) const { return _hotl->nMdc( view ); }
53
54int TrkHotListUnowned::nSvt( TrkEnums::TrkViewInfo view ) const { return _hotl->nSvt( view ); }
55
56double TrkHotListUnowned::startFoundRange() const { return _hotl->startFoundRange(); }
57
58double TrkHotListUnowned::endFoundRange() const { return _hotl->endFoundRange(); }
59
60void TrkHotListUnowned::updateHots() { _hotl->updateHots(); }
61
62TrkView TrkHotListUnowned::svtView( int layer ) const { return _hotl->svtView( layer ); }
63
64unsigned TrkHotListUnowned::firstMdcLayer() const { return _hotl->firstMdcLayer(); }
65
66unsigned TrkHotListUnowned::lastMdcLayer() const { return _hotl->lastMdcLayer(); }
67
68const std::vector<TrkHitOnTrk*>& TrkHotListUnowned::hotlist() const {
69 return _hotl->hotlist();
70}
71
72std::vector<TrkHitOnTrk*>& TrkHotListUnowned::hotlist() { return _hotl->hotlist(); }
73
75 if ( _ownhots )
76 {
77 _ownhots = false;
78 return _hotl;
79 }
80 else return 0;
81}
82
83bool TrkHotListUnowned::isActive( unsigned ihot ) const { return _hotl->isActive( ihot ); }
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 bool isActive(unsigned ihot) const =0