StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcTTMatch.h
1 // Hey Emacs this is -*-c++-*-
2 // $Id: EEmcTTMatch.h,v 1.4 2004/05/14 01:47:22 zolnie Exp $
3 #ifndef STAR_EEmcTTMatch
4 #define STAR_EEmcTTMatch
5 
6 
7 #include <ostream>
8 
9 
10 #include "TObject.h"
11 #include "TVector3.h"
12 
13 
14 #if !defined(ST_NO_NAMESPACES)
15 using std::ostream;
16 #endif
17 
18 class StMuTrack;
19 class EEmcTower;
20 
21 
22 class EEmcTTMatch : public TObject {
23 public:
25  EEmcTTMatch();
27  ~EEmcTTMatch();
28 
29 
31  void Clear(Option_t *opt);
33  void Add(EEmcTower *t);
35  void Add(StMuTrack *t);
37  EEmcTower *Tower() { return mTower; }
39  TList *Tracks() { return mTracks; }
41  Int_t Matches();
42 
43 
46  ostream& Out(ostream &out ) const;
47 
52  static Bool_t ExtrapolateToZ ( const StMuTrack *track , const double z, TVector3 &r);
53 
54 private:
56  EEmcTower *mTower; //
58  TList *mTracks; //
59 
60 public:
61 
62  ClassDef(EEmcTTMatch, 2) //
63 
64 };
65 
66 ostream& operator<<(ostream &out, const StMuTrack &t );
67 ostream& operator<<(ostream &out, const EEmcTTMatch &m );
68 
69 #endif
EEmcTTMatch()
the constructor
Definition: EEmcTTMatch.cxx:50
~EEmcTTMatch()
the destructor
Definition: EEmcTTMatch.cxx:58
void Clear(Option_t *opt)
clears list of matches
Definition: EEmcTTMatch.cxx:69
TList * Tracks()
returns a list of matched tracks
Definition: EEmcTTMatch.h:39
Int_t Matches()
returns number of matched tracks
Definition: EEmcTTMatch.cxx:95
EEmcTower * Tower()
returns a tower data
Definition: EEmcTTMatch.h:37
void Add(EEmcTower *t)
adds tower data
Definition: EEmcTTMatch.cxx:78
EEmcTTMatch class contains results of TPC track to EEMC tower matching.
Definition: EEmcTTMatch.h:22
ostream & Out(ostream &out) const
EEmcTower holds information about an EEMC tower &#39;hit&#39;.
Definition: EEmcTower.h:17
static Bool_t ExtrapolateToZ(const StMuTrack *track, const double z, TVector3 &r)
given track and position z return TVector3 with a