105 #ifndef STAR_StEmcAssociationMaker_HH
106 #define STAR_StEmcAssociationMaker_HH
117 #if !defined(ST_NO_NAMESPACES)
163 int getAssociation(
int det) {
return (det>0 && det<=NDETECTORS) ? ((mAssocType&(1<<(det-1)))!=0): 0; }
175 typedef multimap<const StMcTrack*, const StEmcClusterAssociation*, compEmcTrack> multiEmcTrackCluster;
176 typedef multimap<const StEmcCluster*, const StEmcClusterAssociation*, compEmcCluster> multiEmcClusterTrack;
177 typedef multimap<const StMcTrack*, const StEmcPointAssociation*, compEmcTrack> multiEmcTrackPoint;
178 typedef multimap<const StEmcPoint*, const StEmcPointAssociation*, compEmcPoint> multiEmcPointTrack;
180 typedef multiEmcTrackCluster::iterator multiEmcTrackClusterIter;
181 typedef multiEmcClusterTrack::iterator multiEmcClusterTrackIter;
182 typedef multiEmcTrackPoint::iterator multiEmcTrackPointIter;
183 typedef multiEmcPointTrack::iterator multiEmcPointTrackIter;
184 typedef multiEmcTrackCluster::value_type multiEmcTrackClusterValue;
185 typedef multiEmcClusterTrack::value_type multiEmcClusterTrackValue;
186 typedef multiEmcTrackPoint::value_type multiEmcTrackPointValue;
187 typedef multiEmcPointTrack::value_type multiEmcPointTrackValue;
189 class multiEmcTrackCluster;
190 class multiEmcClusterTrack;
191 class multiEmcTrackPoint;
192 class multiEmcPointTrack;
193 class multiEmcTrackClusterIter;
194 class multiEmcClusterTrackIter;
195 class multiEmcTrackPointIter;
196 class multiEmcPointTrackIter;
197 class multiEmcTrackClusterValue;
198 class multiEmcClusterTrackValue;
199 class multiEmcTrackPointValue;
200 class multiEmcPointTrackValue;
212 void Clear(
const char*);
217 multiEmcTrackCluster*
getTrackClusterMap(Int_t i) {
if(i>0 && i<=NDETECTORS)
return mTrackCluster[i-1];
else return NULL; }
219 multiEmcClusterTrack*
getClusterTrackMap(Int_t i) {
if(i>0 && i<=NDETECTORS)
return mClusterTrack[i-1];
else return NULL; }
232 multiEmcTrackCluster* mTrackCluster[NDETECTORS];
233 multiEmcClusterTrack* mClusterTrack[NDETECTORS];
234 multiEmcTrackPoint* mTrackPoint;
235 multiEmcPointTrack* mPointTrack;
multiEmcTrackCluster * getTrackClusterMap(Int_t i)
returns multimap for association betwwen MC tracks and clusters
const StEmcPoint * getPoint() const
returns pointer to the EMC point
int getAssociation(int det)
returns bit information (0,1) for each EMC subdetector
Int_t getDetNum(const char *)
returns detector number for each EMC sub detector
void setPrint(Bool_t a)
Set print log.
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
float getFractionCluster() const
returns the fraction of the energy of the cluster that was deposited by the MC track ...
int getAssociation() const
returns Association information between MC track and EMC point
multiEmcPointTrack * getPointTrackMap()
returns multimap for association betwwen points and MC tracks
const StEmcCluster * getCluster() const
returns pointer to the EMC cluster
const StMcTrack * getTrack() const
returns pointer to the MC track
multiEmcClusterTrack * getClusterTrackMap(Int_t i)
returns multimap for association betwwen clusters and MC tracks
float getFractionTrack() const
returns the fraction of the energy deposited by the track on the EMC that ended in the reconstructed ...
multiEmcTrackPoint * getTrackPointMap()
returns multimap for association betwwen MC tracks and points