StEmcAssociationMaker
Updated on Fri, 2007-10-19 09:56. Originally created by kocolosk on 2006-10-26 11:07.
Under:
Simple Matrix Particle Fraction Matrix Cluster Fraction Matrix
A simple example using association matrices is presented below. In the case of double photon events, we plot the purity of the measured clusters in SMD eta as a function of the photon distance. The purity is obtained from the "Cluster Fraction" Association Matrix.
For a detailed example of how to use the BEMC multimaps please have a look at the StEmcAssociationMaker::printMaps() method.
Introduction
To treat many-particle events (pp and AuAu), we need to know which particle generated which cluster/point before evaluating the reconstructed clusters and points. StEmcAssociationMaker accomplishes this by matching the many clusters and points in a given event with the respective simulated particles.Association Matrix
In order to associate the clusters/points to the corresponding particles, the Association software creates matrices. The matrix columns correspond to the reconstructed clusters/points and the lines correspond to the particles. We have three kinds of matrices:- Simple Matrix - matrix elements are 0 or 1.
- Particle Fraction Matrix - matrix elements are the fraction of the total particle energy in a cluster.
- Cluster Fraction matrix - matrix elements are the fraction of energy of a cluster that comes from a given particle.
Simple Matrix Particle Fraction Matrix Cluster Fraction Matrix
A simple example using association matrices is presented below. In the case of double photon events, we plot the purity of the measured clusters in SMD eta as a function of the photon distance. The purity is obtained from the "Cluster Fraction" Association Matrix.
How to Use
In order to follow the same scheme done in StAssociationMaker we save the association information in multimaps. Multimaps make it very easy for the user to get the association information for a given StMcTrack, cluster or point. Detailed documentation for StAssociationMaker is available <a href="http://www.star.bnl.gov/STAR/comp/pkg/dev/StRoot/StAssociationMaker/doc/">here</a>. There are essentially four multimaps defined for the BEMC:- multiEmcTrackCluster - correlates the StMcTrack with StEmcClusters
- multiEmcClusterTrack - corrrelates the StEmcCluster with StMcTracks
- multiEmcTrackPoint - correlates the StMcTrack with StEmcPoints
- multiEmcPointTrack - correlates the StEmcPoint with StMcTracks
StEmcAssociationMaker *emcAssoc = GetMaker("EmcAssoc");
if(!emcAssoc) return;
multiEmcTrackCluster *map = emcAssoc->getTrackClusterMap(1);
if(!map) return;
for(multiEmcTrackClusterIter j=map->begin(); j!=map->end(); j++)
{
StMcTrack* track = (StMcTrack*)(*j).first;
StEmcClusterAssociation* value = (StEmcClusterAssociation*)(*j).second;
if(track && value)
{
StEmcCluster *c = (StEmcCluster*) value->getCluster();
if(c)
{
cout <<" McTrack = "<<track<<" GeantId = "<<track->geantId()
<<" pt = "<<track->pt()<<" TReta = "<<track->pseudoRapidity()
<<" Cl = "<<c<<" E = "<<c->energy()<<" eta = "<<c->eta()
<<" phi = "<<c->phi()
<<" FrTr = "<<value->getFractionTrack()
<<" FrCl = "<<value->getFractionCluster()<<endl;
}
}
}
»
- Printer-friendly version
- Login or register to post comments