1 #ifndef __StEEmcIUClusterMaker_h__
2 #define __StEEmcIUClusterMaker_h__
5 #include "StEEmcIUCluster.h"
6 #include "StEEmcIUSmdCluster.h"
7 #include "StEEmcPool/StEEmcA2EMaker/StEEmcA2EMaker.h"
9 #include "StEEmcUtil/EEmcGeom/EEmcGeomSimple.h"
10 #include "StEEmcUtil/EEmcSmdMap/EEmcSmdMap.h"
11 #include "StEEmcUtil/StEEmcSmd/EEmcSmdGeom.h"
29 void Clear(Option_t *opts=
"");
32 void analysis (
const Char_t *name );
36 void seedEnergy( Float_t energy, Int_t layer=0 );
52 Int_t TnumberOfSmdClusters(Int_t sec, Int_t plane);
61 float Tenergyoftower();
65 float Tenergyofsmdu();
66 float Tenergyofsmdv();
84 StEEmcIUClusterVec_t
clusters( Int_t sec, Int_t layer );
86 StEEmcIUSmdClusterVec_t
smdclusters( Int_t sec, Int_t plane );
132 std::vector< std::vector< StEEmcIUSmdClusterVec_t > > TmSmdClusters;
136 Int_t TmNumberOfClusters[6];
190 std::map< StEmcCluster *, StEEmcIUCluster >
mEtoEE;
191 std::map< StEmcCluster *, StEEmcIUSmdCluster >
mEtoEEsmd;
209 inline Int_t StEEmcIUClusterMaker::TnumberOfSmdClusters(Int_t s, Int_t p)
210 {
return (Int_t)TmSmdClusters[s][p].size(); }
224 inline int StEEmcIUClusterMaker::numberOfUseed() {
return (
int) countUseed; }
225 inline int StEEmcIUClusterMaker::numberOfVseed() {
return (
int) countVseed; }
226 inline float StEEmcIUClusterMaker::Tenergyoftower() {
return (
float) eeen; }
227 inline int StEEmcIUClusterMaker::UStripWidth() {
return (
int) uswidth; }
228 inline int StEEmcIUClusterMaker::VStripWidth() {
return (
int) vswidth; }
229 inline float StEEmcIUClusterMaker::UAmplitude() {
return (
float) uamp; }
230 inline float StEEmcIUClusterMaker::VAmplitude() {
return (
float) vamp; }
231 inline float StEEmcIUClusterMaker::Tenergyofp1() {
return (
float) ep1; }
232 inline float StEEmcIUClusterMaker::Tenergyofp2() {
return (
float) ep2; }
233 inline float StEEmcIUClusterMaker::Tenergyofp3() {
return (
float) ep3; }
234 inline float StEEmcIUClusterMaker::Tenergyofsmdu() {
return (
float) esmdu; }
235 inline float StEEmcIUClusterMaker::Tenergyofsmdv() {
return (
float) esmdv; }
void setMinStrips(Int_t m)
Minimum number of strips to form a cluster.
Int_t mClusterId
Keep track of clusters.
EEmc ADC –> energy maker.
void setMaxExtent(Int_t m)
Maximum distance around seed strip to cluster smd strips.
std::map< StEmcCluster *, StEEmcIUCluster > mEtoEE
Map StEEmcIUClusters to StEmcClusters.
void print()
Event summary.
Int_t mSuppress
Supress seeds adjacent to clusters.
Int_t mMinStrips
Minimum number of smd strips to form seed.
void fillStEvent()
Fills StEvent cluster collections if the option is selected.
StEEmcIUCluster cluster(StEmcCluster *cl)
StEEmcIUSmdClusterVec_t smdclusters(Int_t sec, Int_t plane)
Return a vector of smd clusters.
std::map< StEmcCluster *, StEEmcIUSmdCluster > mEtoEEsmd
... and for smd clusters
Bool_t buildSmdClusters()
Constructs smd clusters.
Int_t numberOfSmdClusters(Int_t sec, Int_t plane)
Return number of smd clusters for a given sector, plane.
StEEmcIUSmdCluster smdcluster(Int_t sec, Int_t plane, Int_t index)
return a specific cluster from a given sector, plane
std::vector< std::vector< StEEmcTowerVec_t > > mSeedTowers
A base class for describing clusters of EEMC towers.
A cluster maker for the EEMC.
void analysis(const Char_t *name)
Set the name of the ADC–>E maker.
Bool_t buildTowerClusters()
Constructs tower clusters.
void loose(Bool_t l=true)
Loose cuts (see code)
Bool_t mLoose
Loose cuts option.
StEEmcA2EMaker * mEEanalysis
ADC–>E maker.
TString mAnalysisName
ADC–>E maker name.
Int_t mMaxExtent
Maximum distance from SMD seed strips.
void skip(Bool_t s=true)
Skips over strips with "fail" bits set, if true.
StEEmcIUClusterMaker(const Char_t *name="mEEclusters")
StEEmcIUSmdCluster smdcluster(StEmcCluster *cl)
Int_t numberOfClusters(Int_t sec, Int_t layer)
Return number of clusters for a given sector, layer.
std::vector< std::vector< StEEmcIUClusterVec_t > > mTowerClusters
std::vector< std::vector< StEEmcIUSmdClusterVec_t > > mSmdClusters
Int_t mNumberOfClusters[6]
Counts clusters for full eemc, 0=T, 1=P, 2=Q, 3=R, 4=U, 5=V.
void setSeedFloor(Float_t f=2.0)
Int_t Make()
Make clusters for this event.
A base class for representing clusters of EEMC smd strips.
StEEmcIUClusterVec_t clusters(Int_t sec, Int_t layer)
Return a vector of tower clusters.
void Clear(Option_t *opts="")
Clear clusters for next event.
void seedEnergy(Float_t energy, Int_t layer=0)
Bool_t mFillStEvent
Option to fill StEvent.
Float_t mSeedEnergy[6]
Seed energy for 0=T, 1=P, 2=Q, 3=R, 4=U, 5=V.
Bool_t mSkip
Skip strips if failbit set.
StEEmcIUCluster cluster(Int_t sec, Int_t layer, Int_t index)
Return a specific cluster from a given sector, layer.
Float_t mSeedFloor
blah...
ClassDef(StEEmcIUClusterMaker, 1)
Makes class available to root.