BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHotList.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkHotList.cxx,v 1.3 2010/09/26 00:31:59 zhangy Exp $
4//
5// Description:
6//
7// Environment:
8// Software developed for the BaBar Detector at the SLAC B-Factory.
9//
10// Author(s): Steve Schaffner
11//
12//------------------------------------------------------------------------
13
14#include "TrkBase/TrkHotList.h"
15#include "MdcRecoUtil/BesCollectionUtils.h"
16#include "TrkBase/TrkHitOnTrk.h"
17#include "TrkBase/TrkView.h"
18#include <iostream>
19using std::endl;
20using std::ostream;
21
23
25
26void TrkHotList::print( ostream& o ) const {
27 o << " hitCapable: " << ( hitCapable() ? "yes" : "no" ) << " nActive: " << nActive()
28 << " nHit: " << nHit() << " startFoundRange: " << startFoundRange()
29 << " endFoundRange: " << endFoundRange();
30}
31
32void TrkHotList::printAll( ostream& o ) const {
33 print( o );
34 o << "\n";
36 int kk = 0;
37 while ( i != end() )
38 {
39 kk++;
40 std::cout << kk << ":";
41 i->print( o );
42 o << endl;
43 i->hit()->printAll( o ); // yzhang debug
44 i++;
45 }
46}
47
48bool TrkHotList::hasSvtView( TrkEnums::TrkViewInfo view, int layer ) const {
49 TrkView need( view );
50 TrkView have = svtView( layer );
51 return have.contains( need );
52}
53
55 std::for_each( begin(), end(), f );
56 return this;
57}
58
60 std::sort( hotlist().begin(), hotlist().end(), bes::Collection::PtrLess() );
61}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
virtual void printAll(std::ostream &os) const
virtual void print(std::ostream &) const
virtual double endFoundRange() const =0
virtual ~TrkHotList()
virtual bool hitCapable() const =0
TrkHitOnTrkIter< TrkHotList::const_iterator_traits > hot_iterator
virtual void sort()
virtual TrkHotList * resetParent(TrkBase::Functors::setParent)
virtual double startFoundRange() const =0
virtual int nActive(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
void print(std::ostream &o) const
virtual TrkView svtView(int layer) const =0
virtual int nHit(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
void printAll(std::ostream &o) const
virtual bool hasSvtView(TrkEnums::TrkViewInfo view, int layer) const
bool contains(const TrkView &other) const
Definition TrkView.cxx:59