1 #include "StEEmcCluster.h"
2 #include "StEvent/StEmcCluster.h"
9 StEEmcCluster::StEEmcCluster()
22 if ( weight * tower.
energy() <= 0. )
return;
65 std::cout <<
"cluster key: " << mKey << std::endl;
66 std::cout <<
"seed tower: " <<
mTowers[0].name() << std::endl;
67 std::cout <<
"ntowers: " <<
mTowers.size() << std::endl;
68 std::cout <<
"eta: " <<
mMomentum.Eta() << std::endl;
69 std::cout <<
"phi: " <<
mMomentum.Phi() << std::endl;
70 std::cout <<
"energy: " <<
mEnergy << std::endl;
71 std::cout <<
"pt: " <<
mMomentum.Perp() << std::endl;
72 for ( UInt_t i=0;i<
mTowers.size();i++ )
TVector3 momentum() const
TVector3 mMomentum
Momentum.
void add(const StEEmcTower &t, Float_t weight=1.0)
StEEmcTowerVec_t mTowers
Vector of towers.
void print() const
Prints cluster data.
Base class for representing tower, preshower and postshower elements.
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.
void energy(Float_t e)
Set the energy (adc-ped+0.5)/gain for this element.
std::vector< Float_t > mWeights
Vector of tower weights.