BOSS 7.0.4
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 "TrkBase/TrkHitOnTrk.h"
16#include "TrkBase/TrkView.h"
17#include "MdcRecoUtil/BesCollectionUtils.h"
18#include <iostream>
19using std::endl;
20using std::ostream;
21
23{
24}
25
27{
28}
29
30void
31TrkHotList::print(ostream& o) const
32{
33 o << " hitCapable: " << (hitCapable()?"yes":"no")
34 << " nActive: " << nActive()
35 << " nHit: " << nHit()
36 << " startFoundRange: " <<startFoundRange()
37 << " endFoundRange: " << endFoundRange();
38}
39
40void
41TrkHotList::printAll(ostream &o) const
42{
43 print(o); o << "\n";
45 int kk=0;
46 while (i!=end()) {
47 kk++;
48 std::cout<< kk << ":" ;
49 i->print(o); o << endl;
50 i->hit()->printAll(o);//yzhang debug
51 i++;
52 }
53}
54
55bool
57{
58 TrkView need(view);
59 TrkView have = svtView(layer);
60 return have.contains(need);
61}
62
65{
66 std::for_each(begin(),end(),f);
67 return this;
68}
69
70 void
72{
73 std::sort(hotlist().begin(),
74 hotlist().end(),
76}
virtual double endFoundRange() const =0
virtual ~TrkHotList()
Definition: TrkHotList.cxx:26
virtual bool hitCapable() const =0
virtual void sort()
Definition: TrkHotList.cxx:71
virtual TrkHotList * resetParent(TrkBase::Functors::setParent)
Definition: TrkHotList.cxx:64
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
Definition: TrkHotList.cxx:56
bool contains(const TrkView &other) const
Definition: TrkView.cxx:84
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")