StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EEmcTTDisplay.h
1 // Hey Emacs this is -*-c++-*-
2 // $Id: EEmcTTDisplay.h,v 1.11 2004/05/06 16:02:49 zolnie Exp $
3 #ifndef STAR_EEmcTTDisplay
4 #define STAR_EEmcTTDisplay
5 
6 #include "StEEmcUtil/EEmcGeom/EEmcGeomSimple.h"
7 class TString;
8 class TGeoVolume;
9 class TGeoMatrix;
10 class TList;
11 //
12 class StMuTrack;
13 class EEmcTower;
14 class EEmcTTMatch;
15 
16 class EEmcTTDisplay : public EEmcGeomSimple {
17 public:
20  EEmcTTDisplay(const char *name="eemc");
21 
24 
26  TGeoVolume* operator() () { return mEEmc; };
28  TGeoVolume* GetVolume() { return mEEmc; };
29 
30 
31 
35  Bool_t AddTower(const char *tile);
36 
42  Bool_t AddTower(int sec, int sub, int eta)
43  {
44  return AddTower(volumeName(sec,sub,eta));
45  }
46 
50  Bool_t AddTower(const EEmcTower& tower) ;
51 
63  Bool_t AddTrack(Double_t x, Double_t y, Double_t z,
64  Double_t px, Double_t py, Double_t pz,
65  Double_t qB, Double_t zMin=0.0, Double_t zMax=0.0);
66 
70  Bool_t AddTrack(const StMuTrack& track);
71 
72 
76  Bool_t AddMatch(EEmcTTMatch& tmatch);
77 
80  void Draw ( const Option_t* option = "");
81 
84  void Clear( const Option_t* option = "");
85 
86 
90  void Out(ostream &out, EEmcTTMatch &tmatch);
91 
95  void Out(TString &out, EEmcTTMatch &tmatch);
96 
97 
98 
101  void SetMagneticField(double B) { mBField = B; }
103  double GetMagneticField() { return mBField; }
104 
109  void SetShowExtrapolatedTracks(bool f) { mShowExtrapolatedTracks = f; }
114  bool GetShowExtrapolatedTracks() { return mShowExtrapolatedTracks; }
115 
116 
117 private:
120  void initGeometry(const char *topName);
121 
127  char *volumeName(int sec, int sub=-1, int eta=-1);
131  char *volumeName(const EEmcTower& tower);
132 
133  TGeoVolume* mEEmc;
134  TList *mTowerHits;
135  TList *mTrackHits;
136  double mBField ;
137  bool mShowExtrapolatedTracks;
139 public:
140  ClassDef(EEmcTTDisplay, 1) //
141 };
142 
143 
144 #endif
145 
146 
147 
148 // $Log: EEmcTTDisplay.h,v $
149 // Revision 1.11 2004/05/06 16:02:49 zolnie
150 // more docs
151 //
152 // Revision 1.10 2004/05/05 21:37:37 zolnie
153 // ver 2.0 released
154 //
155 // Revision 1.9 2004/05/04 18:28:55 zolnie
156 // version after split
157 //
158 // Revision 1.8 2004/04/14 16:40:34 zolnie
159 // *** empty log message ***
160 //
161 // Revision 1.7 2004/04/13 14:53:38 zolnie
162 // *** empty log message ***
163 //
164 // Revision 1.6 2004/01/27 20:38:41 zolnie
165 // more docs
166 //
167 // Revision 1.5 2004/01/27 16:26:14 zolnie
168 // polished doxygen documentation
169 //
170 // Revision 1.4 2004/01/26 22:54:15 zolnie
171 // after name cleanup
172 //
173 // Revision 1.3 2004/01/26 21:51:53 zolnie
174 // shorter names
175 //
176 // Revision 1.2 2004/01/26 21:08:31 zolnie
177 // working track/tower display (before big farewell cleanup)
178 //
179 // Revision 1.1 2004/01/19 22:07:50 zolnie
180 // toward track/tower display
181 //
182 
Bool_t AddMatch(EEmcTTMatch &tmatch)
double GetMagneticField()
returns STAR magnetic fiels in Tesla
void Out(ostream &out, EEmcTTMatch &tmatch)
bool GetShowExtrapolatedTracks()
void SetMagneticField(double B)
Bool_t AddTower(const char *tile)
EEmcTTDisplay(const char *name="eemc")
void Draw(const Option_t *option="")
TGeoVolume * operator()()
returns top EEMC TGeoVolume
Definition: EEmcTTDisplay.h:26
void Clear(const Option_t *option="")
void SetShowExtrapolatedTracks(bool f)
EEMC simple geometry.
~EEmcTTDisplay()
the destructor
EEmc Tower and Track Display class.
Definition: EEmcTTDisplay.h:16
EEmcTTMatch class contains results of TPC track to EEMC tower matching.
Definition: EEmcTTMatch.h:22
TGeoVolume * GetVolume()
returns top TGeoVolume
Definition: EEmcTTDisplay.h:28
Bool_t AddTrack(Double_t x, Double_t y, Double_t z, Double_t px, Double_t py, Double_t pz, Double_t qB, Double_t zMin=0.0, Double_t zMax=0.0)
EEmcTower holds information about an EEMC tower 'hit'.
Definition: EEmcTower.h:17
Bool_t AddTower(int sec, int sub, int eta)
Definition: EEmcTTDisplay.h:42