31 fShowerMaxLocation(new TVector3()),
32 fClusterLocation(new TVector3()),
34 fTheNormalToFrontFace(new TVector3()),
39 TVector3 clusLocation(toUse.
where());
41 fClusterLocation =
new TVector3(clusLocation.x(), clusLocation.y(), clusLocation.z());
47 fShowerMaxLocation->SetMag(fClusterLocation->Mag() + showerMax);
54 fTheGeom = tciXtalMap.find(theTCI)->second;
67 fShowerMaxLocation( new TVector3(*(theDistance.fShowerMaxLocation)) ),
68 fClusterLocation( new TVector3(*(theDistance.fClusterLocation)) ),
69 fTheGeom( theDistance.fTheGeom ),
70 fTheNormalToFrontFace( theDistance.fTheNormalToFrontFace ),
71 fDistanceOfPlane( theDistance.fDistanceOfPlane ),
72 fClusPhi( theDistance.fClusPhi ),
73 fClusTheta( theDistance.fClusTheta )
93 TVector3 digiWhere(theDigi->
where());
94 TVector3 vecDigiWhere(digiWhere.x(), digiWhere.y(), digiWhere.z());
110 return digiPerp.Mag();
117 TVector3 digiWhere(theDigi->
where());
118 TVector3 vecDigiWhere(digiWhere.x(), digiWhere.y(), digiWhere.z());
133 return sqrt(phiDiff*phiDiff + thetaDiff* thetaDiff);
Double_t fDistanceOfPlane
represents the reconstructed hit of one emc crystal
virtual ~PndEmcClusterDistances()
friend F32vec4 sqrt(const F32vec4 &a)
TVector3 * fTheNormalToFrontFace
friend F32vec4 log(const F32vec4 &a)
represents coordinates of one crystal
stores crystal index coordinates (x,y) or (theta,phi)
Double_t AngularDistance(const PndEmcDigi *const) const
PndEmcClusterDistances(const PndEmcCluster &cluster, const TClonesArray *digiArray)
Double_t GetTheta() const
const TVector3 & normalToFrontFace() const
TVector3 * fClusterLocation
const PndEmcTciXtalMap & GetTciXtalMap() const
a cluster (group of neighboring crystals) of hit emc crystals
PndEmcTwoCoordIndex * locateIndex(double theta, double phi) const
TVector3 * fShowerMaxLocation
std::map< PndEmcTwoCoordIndex *, PndEmcXtal * > PndEmcTciXtalMap
Double_t AngularSeparation(const PndEmcDigi *const) const
virtual Double_t energy() const
const TVector3 & where() const
static PndEmcStructure * Instance()
Double_t RadialDistance(const PndEmcDigi *const) const
PndEmcTwoCoordIndex * GetTCI() const