1 #ifndef __StEEmcCluster_h__
2 #define __StEEmcCluster_h__
45 #include "StEEmcPool/StEEmcA2EMaker/StEEmcTower.h"
46 #include "StEEmcBaseCluster.h"
113 void printLine(Bool_t Endl=
false)
const;
125 Float_t sigmaPhibin()
const {
return TMath::Sqrt(mSumPhi2W/
mEnergy-mSumPhiW*mSumPhiW/
mEnergy/
mEnergy); }
133 Int_t numberOfEtabins()
const;
134 Int_t numberOfPhibins()
const;
160 typedef std::vector<StEEmcCluster> StEEmcClusterVec_t;
TVector3 momentum() const
StEEmcTower & tower(Int_t t)
Get the specified tower within the cluster.
Float_t sigmaEtabin() const
Returns the sigma (sqrt variance) in units of etabins.
Float_t seedEnergy() const
Get the energy of the seed tower.
Float_t fracEtabin() const
Returns the fractional mean etabin.
TVector3 mMomentum
Momentum.
void add(const StEEmcTower &t, Float_t weight=1.0)
Bool_t hasTower(const StEEmcTower &tower) const
Returns true if the specified tower is in the cluster.
StEEmcTowerVec_t mTowers
Vector of towers.
TVector3 position() const
Float_t weight(Int_t t) const
Get the weight associated with tower.
void momentum(const TVector3 &p)
Bool_t operator==(const StEEmcCluster &other) const
StEEmcTowerVec_t & towers()
Get the vector of towers in this cluster.
void print() const
Prints cluster data.
Base class for representing tower, preshower and postshower elements.
Bool_t isNeighbor(const StEEmcTower &tower) const
Returns true if tower is adjacent to any tower in the cluster.
Int_t numberOfTowers() const
Get the number of towers in cluster.
Float_t energy() const
Get energy of this cluster.
A base class for describing clusters of EEMC towers.
StEmcCluster * mEmcCluster
Pointer to EMC cluster.
std::vector< Float_t > mWeights
Vector of tower weights.
Float_t fracPhibin() const
Returns the fractional mean phibin.
void stemc(StEmcCluster *c)
Pointer to StEmcCluster for embedding.