13 #ifndef STAR_StBarrelEmcCluster
14 #define STAR_StBarrelEmcCluster
32 virtual const char* GetCVS()
const
33 {
static const char cvs[] =
"Tag $Name: $ $Id: StBarrelEmcCluster.h,v 1.6 2014/08/06 11:43:17 jeromel Exp $ built " __DATE__
" " __TIME__;
return cvs; }
36 const TVector3& position()
const;
37 const TVector3& momentum()
const;
41 void setEnergy(
float energy);
42 void setPosition(
const TVector3& position);
43 void setMomentum(
const TVector3& momentum);
58 inline StBarrelEmcCluster::StBarrelEmcCluster() { memset(mTowers, 0,
sizeof(mTowers)); }
59 inline float StBarrelEmcCluster::energy()
const {
return mEnergy; }
60 inline const TVector3& StBarrelEmcCluster::position()
const {
return mPosition; }
61 inline const TVector3& StBarrelEmcCluster::momentum()
const {
return mMomentum; }
62 inline StGammaTower* StBarrelEmcCluster::seed()
const {
return tower(0,0); }
63 inline StGammaTower* StBarrelEmcCluster::tower(
int deta,
int dphi)
const {
return mTowers[deta+1][dphi+1]; }
65 inline void StBarrelEmcCluster::setEnergy(
float energy) { mEnergy = energy; }
66 inline void StBarrelEmcCluster::setPosition(
const TVector3& position) { mPosition = position; }
67 inline void StBarrelEmcCluster::setMomentum(
const TVector3& momentum) { mMomentum = momentum; }
68 inline void StBarrelEmcCluster::setSeed(
StGammaTower* tower) { setTower(0, 0, tower); }
69 inline void StBarrelEmcCluster::setTower(
int deta,
int dphi,
StGammaTower* tower) { mTowers[deta+1][dphi+1] = tower; }