1 #include "StEEmcGenericPointMaker.h"
17 mEEsmd=EEmcSmdGeom::instance();
18 mEEmap=EEmcSmdMap::instance();
25 Int_t StEEmcGenericPointMaker::Init()
31 return StMaker::Init();
49 mPoint2cluster.clear();
50 mCluster2points.clear();
54 void StEEmcGenericPointMaker::addPoint(
const StEEmcPoint &point )
61 StEEmcClusterVec_t myclusters = p.
clusters(0);
65 mPoint2cluster[ p.key() ] = mycluster;
70 Int_t key=mycluster.key();
72 StEEmcPointVec_t mypoints;
73 if ( !mCluster2points.count(key) ) mCluster2points[ key ] = mypoints;
75 mCluster2points[ key ].push_back(p);
79 void StEEmcGenericPointMaker::addSmdPoint(
const StEEmcPoint &point )
106 void StEEmcGenericPointMaker::addTowerPoint(
const StEEmcPoint &point )
109 p.key(nextPointId());
111 mPoint2cluster[ p.key() ] = p.
clusters(0)[0];
149 void StEEmcGenericPointMaker::fillStEvent()
EEmc ADC –> energy maker.
Base class for representing EEMC points.
StEEmcPointVec_t buildSmdPoints(Int_t sector, const StEEmcSmdClusterVec_t &u, const StEEmcSmdClusterVec_t &v)
StEEmcGenericClusterMaker * mEEclusters
StEEmcA2EMaker * mEEanalysis
virtual void Clear(Option_t *option="")
User defined functions.
StEEmcPointVec_t buildPoints(const StEEmcClusterVec_t &towerClusters, const StEEmcSmdClusterVec_t &u, const StEEmcSmdClusterVec_t &v)
StEEmcPointVec_t mTowerPoints
StEEmcPointVec_t buildTowerPoints(Int_t sector, const StEEmcClusterVec_t &c)
StEEmcPointVec_t mSmdPoints
virtual void Clear(Option_t *opts="")
User defined functions.
StEEmcPointVec_t & points()
Return vector of EEmc points.
A base class for describing clusters of EEMC towers.
StEEmcPoint & point(Int_t ipoint)
StEEmcClusterVec_t & clusters(Int_t layer)
Returns tower clusters for the specified layer 0=T, 1=P, 2=Q, 3=R, 4+=crash.