BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkExpectedHot.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkExpectedHot.h,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6// Defines a Expected hit on a track, and stores information about it.
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Authors: Eric Charles UW Madison
12//
13//
14//------------------------------------------------------------------------
15
16#ifndef TRKEXPECTEDHOT_HH
17#define TRKEXPECTEDHOT_HH
18
19//---------------
20// C++ Headers --
21//---------------
22
23#include <iostream>
25
26//----------------
27// BaBar Headers
28//----------------
29
30class TrkExpectedTrk;
31class TrkHitOnTrk;
32class TrkDifPoca;
33
34#include <vector>
35
36// Class interface //
38
39public:
40
41 // copy c'tor
43
44 // Destructor
45 virtual ~TrkExpectedHot();
46
47 // access to the internal id of the associated element
48 // ( offset by subsystem )
49 const TrkDetElemId& id() const{ return _id; }
50
51 // sorting
52 // sorting uses the internal id
53 bool operator == ( const TrkExpectedHot& rhs ) const;
54 bool operator < ( const TrkExpectedHot& rhs ) const;
55
56 virtual bool setHot( const TrkHitOnTrk* aHot ) = 0;
57 virtual bool setHots( const TrkExpectedHot* aHot ) = 0;
58
59 virtual bool hasHot( ) const = 0;
60 virtual bool hasGHit( ) const = 0;
61
62 bool isSvt() const;
63 bool isMdc() const;
64
65 virtual bool getHots( std::vector<TrkHitOnTrk*>& hots ) const=0;
66
67 virtual void printAll( std::ostream& os ) const = 0;
68
69 const TrkExpectedTrk* exTrk() const { return _exTrk; };
70
71protected:
72
73 // c'tors are protected, only called by concrete classes
74 TrkExpectedHot( const TrkDetElemId& id );
75 TrkExpectedHot( const int& id, TrkDetElemId::systemIndex sysInd );
76
77 void setExTrk( const TrkExpectedTrk* anExTrk ) { _exTrk = anExTrk; }
78
79private:
80
81 // elem id
82 const TrkDetElemId _id;
83 const TrkExpectedTrk* _exTrk;
84
85 friend class TrkExpectedHotSet;
86
87};
88
89#endif
90
virtual bool hasHot() const =0
virtual bool hasGHit() const =0
virtual bool setHot(const TrkHitOnTrk *aHot)=0
virtual bool setHots(const TrkExpectedHot *aHot)=0
bool isMdc() const
bool operator==(const TrkExpectedHot &rhs) const
virtual bool getHots(std::vector< TrkHitOnTrk * > &hots) const =0
const TrkExpectedTrk * exTrk() const
bool isSvt() const
void setExTrk(const TrkExpectedTrk *anExTrk)
virtual ~TrkExpectedHot()
virtual void printAll(std::ostream &os) const =0
const TrkDetElemId & id() const
bool operator<(const TrkExpectedHot &rhs) const
TrkExpectedHot(const TrkExpectedHot &)