35 #include "StMuDSTMaker/COMMON/StMuEvent.h"
36 #include "StMuDSTMaker/COMMON/StMuTrack.h"
38 #include "EEmcTower.h"
39 #include "EEmcTTMatch.h"
41 #if !defined(ST_NO_NAMESPACES)
53 mTracks =
new TList();
97 return mTracks->GetSize();
106 const double kMinDipAngle = 1.0e-13;
109 double dipAng = helix.dipAngle();
110 double z0 = helix.
origin().z();
111 if(dipAng<kMinDipAngle)
return kFALSE;
112 double s = ( z - z0 ) / sin(dipAng) ;
114 r.SetXYZ(hit.x(),hit.y(),hit.z());
126 TIter nextTrack(mTracks);
127 while((track=(
StMuTrack *)nextTrack())) out << *track;
135 ostream& operator<<(ostream &out,
const StMuTrack &t ) {
138 out <<
" MOMENTUM=\"" << t.
momentum() <<
"\"";
143 ostream& operator<<(ostream &out,
const EEmcTTMatch &m ) {
EEmcTTMatch()
the constructor
~EEmcTTMatch()
the destructor
void Clear(Option_t *opt)
clears list of matches
StPhysicalHelixD helix() const
Returns inner helix (first measured point)
Int_t Matches()
returns number of matched tracks
const StThreeVector< double > & origin() const
-sign(q*B);
const StThreeVectorF & momentum() const
Returns 3-momentum at dca to primary vertex.
void Add(EEmcTower *t)
adds tower data
EEmcTTMatch class contains results of TPC track to EEMC tower matching.
ostream & Out(ostream &out) const
EEmcTower holds information about an EEMC tower 'hit'.
static Bool_t ExtrapolateToZ(const StMuTrack *track, const double z, TVector3 &r)
given track and position z return TVector3 with a