38 #include "StFgtPoint.h"
39 #include "St_base/StMessMgr.h"
42 StFgtPoint::StFgtPoint(
StFgtHit* hit1,
StFgtHit* hit2,
int key,
int rank ) :
StHit(), mKey( key ), mRank( rank ) {
45 LOG_ERROR <<
"Passed null pointer into StFgtPoint::StFgtPoint( StFgtHit* hit1, StFgtHit* hit2, int key )" << endm;
51 if( hit1->getLayer() ==
'R' && hit2->getLayer() ==
'P' ){
54 }
else if ( hit2->getLayer() ==
'R' && hit1->getLayer() ==
'P' ){
59 if( !mHitR || !mHitPhi ){
60 LOG_ERROR <<
"Constructor not provided a r/phi pair." << endm;
65 if( mHitR->getDisc() != mHitPhi->getDisc() ){
66 LOG_ERROR <<
"Cluster pair are not on the same disc." << endm;
71 if( mHitR->getQuad() != mHitPhi->getQuad() ){
72 LOG_ERROR <<
"Cluster pair are not on the same quadrant." << endm;
77 mHardwarePosition = mHitR->hardwarePosition();
78 mCharge = hit1->charge() + hit2->charge();
79 mChargeAsymmetry=(mHitPhi->charge()-mHitR->charge())/mCharge;
84 StFgtPoint::~StFgtPoint() {
Represents a point in the FGT.