13 #include "StEmcUtil/geometry/StEmcGeom.h"
14 #include "StEmcUtil/others/StEmcMath.h"
15 #include "StEmcRawMaker/defines.h"
17 #ifndef StEmcPreCluster_HH
18 #define StEmcPreCluster_HH
99 return mHits.GetSize();
Float_t eta() const
returns the eta position of the cluster
StEmcPreCluster * splitInEta(Float_t)
split the cluster in the eta coordinate. Returns a pointer of the splitted cluster. The spllited cluster is not added to any collection
Int_t detector() const
returns the detector number
Int_t matchingId() const
returns the matching id with other detectors. 0 means no matching
Float_t energy() const
returns the energy of the cluster
void subtractCluster(StEmcPreCluster *)
subtract another cluster to this one.
void addHit(StEmcRawHit *)
add a hit to the cluster
void setMatchingId(Int_t a)
sets the matching id
Float_t sigmaEta() const
returns the width in eta
Int_t nHits() const
returns the number of hits in the cluster
StEmcPreCluster * splitInPhi(Float_t)
split the cluster in the phi coordinate. Returns a pointer of the splitted cluster. The spllited cluster is not added to any collection
void removeHit(StEmcRawHit *)
removes a hit from the cluster
StEmcCluster * makeStCluster()
creates an StEmcCluster from the information in this pre cluster
void update()
updates cluster information. Calculates eta,phi, ernergy, etc from the hits added to the cluster ...
Float_t sigmaPhi() const
returns the width in phi
void addCluster(StEmcPreCluster *)
add another cluster to this one. Does not delete the added cluster
StEmcRawHit * getHit(Int_t i)
gets a pointer to a hit in the cluster
Float_t phi() const
returns the phi position of the cluster