CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughHit Class Reference

#include <HoughHit.h>

+ Inheritance diagram for HoughHit:

Public Types

enum  HitType {
  CGEMHIT = 0 , MDCHIT = 1 , CGEMMCHIT = 2 , MDCMCHIT = 3 ,
  CGEMHIT = 0 , MDCHIT = 1 , CGEMMCHIT = 2 , MDCMCHIT = 3
}
 
enum  HitType {
  CGEMHIT = 0 , MDCHIT = 1 , CGEMMCHIT = 2 , MDCMCHIT = 3 ,
  CGEMHIT = 0 , MDCHIT = 1 , CGEMMCHIT = 2 , MDCMCHIT = 3
}
 
typedef std::pair< double, double > S_Z
 
typedef std::pair< double, double > S_Z
 

Public Member Functions

 HoughHit ()
 
 HoughHit (const MdcDigi *mdcDigi, double bunchTime, int hitID)
 
 HoughHit (const RecCgemCluster *cgemCgemCluster, double bunchTime, int hitID)
 
 HoughHit (const MdcMcHit *mdcMcHit, double bunchTime, int hitID)
 
 HoughHit (const CgemMcHit *cgemMcHit, double bunchTime, int hitID)
 
 HoughHit (const HoughHit &other)
 
HoughHitoperator= (const HoughHit &other)
 
int getHitID () const
 
HitType getHitType () const
 
const RecCgemClustergetCgemCluster () const
 
const MdcDigigetDigi () const
 
const CgemMcHitgetCgemMcHit () const
 
const MdcMcHitgetMdcMcHit () const
 
int getLayer () const
 
int getWire () const
 
int getFlag () const
 
double getBunchTime () const
 
double getRawTime () const
 
double getDepositEnergy () const
 
HepPoint3D getHitPosition () const
 
HepPoint3D getWestPoint () const
 
HepPoint3D getEastPoint () const
 
double getDriftDist () const
 
double getResidual () const
 
vector< int > getTrkID () const
 
vector< HoughTrack * > getTrkPntVec ()
 
int getUse () const
 
vector< S_ZgetSZ () const
 
MdcGeomSvcgetMdcGeomSvc () const
 
MdcCalibFunSvcgetMdcCalibFunSvc () const
 
CgemGeomSvcgetCgemGeomSvc () const
 
CgemCalibFunSvcgetCgemCalibFunSvc () const
 
int getHalfCircle ()
 
HoughHitgetPairHit ()
 
void setHitID (int hitID)
 
void setHitType (HitType hitType)
 
void setCgemCluster (const RecCgemCluster *cgemCluster)
 
void setDigi (const MdcDigi *mdcDigi)
 
void setCgemMcHit (const CgemMcHit *cgemMcHit)
 
void setMdcMcHit (const MdcMcHit *mdcMcHit)
 
void setLayer (int layer)
 
void setWire (int wire)
 
void setFlag (int flag)
 
void setUse (int use)
 
void setBunchTime (double bunchTime)
 
void setRawTime (double rawTime)
 
void setDepositEnergy (double depositEnergy)
 
void setHitPosition (HepPoint3D point)
 
void setDriftDist (double driftDist)
 
void setResidual (double residual)
 
void setTrkID (vector< int > trkID)
 
void setSZ (vector< S_Z > sz)
 
void resetSZ ()
 
void addTrkID (int trkID)
 
void addSZ (S_Z sz)
 
void addTrkPnt (HoughTrack *aHTrk)
 
void rmTrkPnt (HoughTrack *aHTrk)
 
void clearTrkPnt ()
 
void dropTrkID (int trkID)
 
void addResid (double res)
 
vector< double > getVecResid ()
 
void setPairHit (HoughHit *pairHit)
 
void setHalfCircle (int halfCircle)
 
void addPosition (HepPoint3D position)
 
void print ()
 
double driftTime ()
 
double hitSigma ()
 
vector< HepPoint3D > & VHitPosition (HoughTrack *track)
 
double residual (HoughTrack *track)
 

 
void updateVHit (HoughTrack *track)
 
double residual (HoughTrack *track, HepPoint3D &positionOntrack, HepPoint3D &positionOnDetector)
 
int attach2NTrack ()
 
MdcHitgetMdcHit ()
 
void setMdcHit (MdcHit *mdcHit)
 
 HoughHit ()
 
 HoughHit (const MdcDigi *const digi)
 
 HoughHit (const HoughHit &other)
 
HoughHitoperator= (const HoughHit &other)
 
void setTruthInfo (const MdcMcHit *&mcHit)
 
void setTruthInfo (const CgemMcHit *aMcHit)
 
void conformalTrans (double x, double y, double r)
 
double getConformal_u (double, double, double)
 
double getConformal_v (double, double, double)
 
double getConformal_r (double, double, double)
 
void makeCir (int n, double phi_begin, double phi_last, double r)
 
CFCir getCir (int i) const
 
HoughHitType type () const
 
detectorType getDetectorType () const
 
const MdcDigidigi () const
 
double getBunchTime () const
 
HepPoint3D getMidPoint () const
 
HepPoint3D getEastPoint () const
 
HepPoint3D getWestPoint () const
 
double getMidX () const
 
double getMidY () const
 
int getLayerId () const
 
int getWireId () const
 
int getSlayerType () const
 
const MdcLayerlayer () const
 
const MdcSWirewire () const
 
double getCharge () const
 
double getDriftTime () const
 
double getDriftDist () const
 
double getU () const
 
double getV () const
 
double getR () const
 
double getDeltaD () const
 
double getFltLen () const
 
double driftTime () const
 
double driftTime (double tof, double z) const
 
double calDriftDist (double, int, double, double, double) const
 
double calDriftDist (double bunchTime, int ambig) const
 
int slayerType (int layer)
 
double getXTruth () const
 
double getYTruth () const
 
double getZTruth () const
 
double getDriftDistTruth () const
 
int getIdTruth () const
 
int getLrTruth () const
 
double getUTruth () const
 
double getVTruth () const
 
double getRTruth () const
 
HepPoint3D getPointTruth () const
 
void setDeltaD (double d)
 
void setFltLen (double flt)
 
int getCirList () const
 
int getStyle () const
 
void setCirList (int cir)
 
void setStyle (int sty)
 
void print () const
 
void printAll () const
 
void printTruth () const
 
 HoughHit (const RecCgemCluster *const cluster)
 
CgemGeomSvcgetCgemGeomSvc () const
 
const RecCgemClustergetCluster () const
 
int getTrkId () const
 
int getHitId () const
 
int getClusterId () const
 
void setTrkId (int id)
 
void setHitId (int id)
 
void setClusterId (int id)
 
HepPoint3D setLeftPoint (HepPoint3D p)
 
HepPoint3D setRightPoint (HepPoint3D p)
 
HepPoint3D getLeftPoint () const
 
HepPoint3D getRightPoint () const
 
TH2D * getHitMap ()
 
void buildMap (int x_bin, double x_min, double x_max, int y_bin, double y_min, double y_max, int nPoint, int charge)
 
void clearMap ()
 
void setUsable (int u)
 
int getUsable ()
 
 HoughHit ()
 
 HoughHit (const MdcDigi *mdcDigi, double bunchTime, int hitID)
 
 HoughHit (const RecCgemCluster *cgemCgemCluster, double bunchTime, int hitID)
 
 HoughHit (const MdcMcHit *mdcMcHit, double bunchTime, int hitID)
 
 HoughHit (const CgemMcHit *cgemMcHit, double bunchTime, int hitID)
 
 HoughHit (const HoughHit &other)
 
HoughHitoperator= (const HoughHit &other)
 
int getHitID () const
 
HitType getHitType () const
 
const RecCgemClustergetCgemCluster () const
 
const MdcDigigetDigi () const
 
const CgemMcHitgetCgemMcHit () const
 
const MdcMcHitgetMdcMcHit () const
 
int getLayer () const
 
int getWire () const
 
int getFlag () const
 
double getBunchTime () const
 
double getRawTime () const
 
double getDepositEnergy () const
 
HepPoint3D getHitPosition () const
 
HepPoint3D getWestPoint () const
 
HepPoint3D getEastPoint () const
 
double getDriftDist () const
 
double getResidual () const
 
vector< int > getTrkID () const
 
vector< HoughTrack * > getTrkPntVec ()
 
int getUse () const
 
vector< S_ZgetSZ () const
 
MdcGeomSvcgetMdcGeomSvc () const
 
MdcCalibFunSvcgetMdcCalibFunSvc () const
 
CgemGeomSvcgetCgemGeomSvc () const
 
CgemCalibFunSvcgetCgemCalibFunSvc () const
 
int getHalfCircle ()
 
HoughHitgetPairHit ()
 
void setHitID (int hitID)
 
void setHitType (HitType hitType)
 
void setCgemCluster (const RecCgemCluster *cgemCluster)
 
void setDigi (const MdcDigi *mdcDigi)
 
void setCgemMcHit (const CgemMcHit *cgemMcHit)
 
void setMdcMcHit (const MdcMcHit *mdcMcHit)
 
void setLayer (int layer)
 
void setWire (int wire)
 
void setFlag (int flag)
 
void setUse (int use)
 
void setBunchTime (double bunchTime)
 
void setRawTime (double rawTime)
 
void setDepositEnergy (double depositEnergy)
 
void setHitPosition (HepPoint3D point)
 
void setDriftDist (double driftDist)
 
void setResidual (double residual)
 
void setTrkID (vector< int > trkID)
 
void setSZ (vector< S_Z > sz)
 
void resetSZ ()
 
void addTrkID (int trkID)
 
void addSZ (S_Z sz)
 
void addTrkPnt (HoughTrack *aHTrk)
 
void rmTrkPnt (HoughTrack *aHTrk)
 
void clearTrkPnt ()
 
void dropTrkID (int trkID)
 
void addResid (double res)
 
vector< double > getVecResid ()
 
void setPairHit (HoughHit *pairHit)
 
void setHalfCircle (int halfCircle)
 
void addPosition (HepPoint3D position)
 
void print ()
 
double driftTime ()
 
double hitSigma ()
 
vector< HepPoint3D > & VHitPosition (HoughTrack *track)
 
double residual (HoughTrack *track)
 
void updateVHit (HoughTrack *track)
 
double residual (HoughTrack *track, HepPoint3D &positionOntrack, HepPoint3D &positionOnDetector)
 
int attach2NTrack ()
 
MdcHitgetMdcHit ()
 
void setMdcHit (MdcHit *mdcHit)
 
 HoughHit ()
 
 HoughHit (const MdcDigi *const digi)
 
 HoughHit (const HoughHit &other)
 
HoughHitoperator= (const HoughHit &other)
 
void setTruthInfo (const MdcMcHit *&mcHit)
 
void setTruthInfo (const CgemMcHit *aMcHit)
 
void conformalTrans (double x, double y, double r)
 
double getConformal_u (double, double, double)
 
double getConformal_v (double, double, double)
 
double getConformal_r (double, double, double)
 
void makeCir (int n, double phi_begin, double phi_last, double r)
 
CFCir getCir (int i) const
 
HoughHitType type () const
 
detectorType getDetectorType () const
 
const MdcDigidigi () const
 
double getBunchTime () const
 
HepPoint3D getMidPoint () const
 
HepPoint3D getEastPoint () const
 
HepPoint3D getWestPoint () const
 
double getMidX () const
 
double getMidY () const
 
int getLayerId () const
 
int getWireId () const
 
int getSlayerType () const
 
const MdcLayerlayer () const
 
const MdcSWirewire () const
 
double getCharge () const
 
double getDriftTime () const
 
double getDriftDist () const
 
double getU () const
 
double getV () const
 
double getR () const
 
double getDeltaD () const
 
double getFltLen () const
 
double driftTime () const
 
double driftTime (double tof, double z) const
 
double calDriftDist (double, int, double, double, double) const
 
double calDriftDist (double bunchTime, int ambig) const
 
int slayerType (int layer)
 
double getXTruth () const
 
double getYTruth () const
 
double getZTruth () const
 
double getDriftDistTruth () const
 
int getIdTruth () const
 
int getLrTruth () const
 
double getUTruth () const
 
double getVTruth () const
 
double getRTruth () const
 
HepPoint3D getPointTruth () const
 
void setDeltaD (double d)
 
void setFltLen (double flt)
 
int getCirList () const
 
int getStyle () const
 
void setCirList (int cir)
 
void setStyle (int sty)
 
void print () const
 
void printAll () const
 
void printTruth () const
 
 HoughHit (const RecCgemCluster *const cluster)
 
CgemGeomSvcgetCgemGeomSvc () const
 
const RecCgemClustergetCluster () const
 
int getTrkId () const
 
int getHitId () const
 
int getClusterId () const
 
void setTrkId (int id)
 
void setHitId (int id)
 
void setClusterId (int id)
 
HepPoint3D setLeftPoint (HepPoint3D p)
 
HepPoint3D setRightPoint (HepPoint3D p)
 
HepPoint3D getLeftPoint () const
 
HepPoint3D getRightPoint () const
 
TH2D * getHitMap ()
 
void buildMap (int x_bin, double x_min, double x_max, int y_bin, double y_min, double y_max, int nPoint, int charge)
 
void clearMap ()
 
void setUsable (int u)
 
int getUsable ()
 

Static Public Member Functions

static void setMdcGeomSvc (MdcGeomSvc *mdcGeomSvc)
 
static void setMdcCalibFunSvc (MdcCalibFunSvc *mdcCalibFunSvc)
 
static void setCgemGeomSvc (CgemGeomSvc *cgemGeomSvc)
 
static void setCgemCalibFunSvc (CgemCalibFunSvc *cgemCalibFunSvc)
 
static void setMdcDetector (const MdcDetector *mdcDetector)
 
static void setMdcCalibFunSvc (const MdcCalibFunSvc *calibSvc)
 
static void setMdcGeomSvc (MdcGeomSvc *geomSvc)
 
static void setBunchTime (double t0)
 
static void setCgemGeomSvc (CgemGeomSvc *geomSvc)
 
static void setMdcGeomSvc (MdcGeomSvc *mdcGeomSvc)
 
static void setMdcCalibFunSvc (MdcCalibFunSvc *mdcCalibFunSvc)
 
static void setCgemGeomSvc (CgemGeomSvc *cgemGeomSvc)
 
static void setCgemCalibFunSvc (CgemCalibFunSvc *cgemCalibFunSvc)
 
static void setMdcDetector (const MdcDetector *mdcDetector)
 
static void setMdcCalibFunSvc (const MdcCalibFunSvc *calibSvc)
 
static void setMdcGeomSvc (MdcGeomSvc *geomSvc)
 
static void setBunchTime (double t0)
 
static void setCgemGeomSvc (CgemGeomSvc *geomSvc)
 

Static Public Attributes

static int _npart =360
 

Detailed Description

Member Typedef Documentation

◆ S_Z [1/2]

typedef std::pair<double,double> HoughHit::S_Z

◆ S_Z [2/2]

typedef std::pair<double,double> HoughHit::S_Z

Member Enumeration Documentation

◆ HitType [1/2]

◆ HitType [2/2]

Enumerator
CGEMHIT 
MDCHIT 
CGEMMCHIT 
MDCMCHIT 
CGEMHIT 
MDCHIT 
CGEMMCHIT 
MDCMCHIT 

Definition at line 27 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

27{CGEMHIT = 0, MDCHIT = 1, CGEMMCHIT = 2, MDCMCHIT = 3};

Constructor & Destructor Documentation

◆ HoughHit() [1/20]

HoughHit::HoughHit ( )

Definition at line 20 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

20 {
21 //m_det=Global::m_gm;
22 m_cgemCluster=NULL;
23 m_mdcDigi=NULL;
24 m_cgemMcHit=NULL;
25 m_mdcMcHit=NULL;
26 //m_hitMap = NULL;
27}

◆ HoughHit() [2/20]

HoughHit::HoughHit ( const MdcDigi mdcDigi,
double  bunchTime,
int  hitID 
)

Definition at line 29 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

30{
31 m_hitID = hitID;
32 m_hitType = MDCHIT;
33 m_cgemCluster = NULL;
34 m_mdcDigi = mdcDigi;
35 m_cgemMcHit=NULL;
36 m_mdcMcHit=NULL;
37 m_layer = MdcID::layer(mdcDigi->identify());
38 m_wire = MdcID::wire(mdcDigi->identify());
39 m_flag = flag();
40 m_use = 0;
41 m_bunchTime = bunchTime;
42 m_rawTime = RawDataUtil::MdcTime(mdcDigi->getTimeChannel());
43 m_depositEnergy = mdcDigi->getChargeChannel();
44 const MdcGeoWire* wire = m_mdcGeomSvc->Wire(m_layer,m_wire);
45 m_hitPosition = (wire->Forward() + wire->Backward())/10/2;
46 m_westPoint = wire->Forward();
47 m_eastPoint = wire->Backward();
48 m_driftDist = driftDistance();
49 m_residual = 9999;
50 //m_hitMap = NULL;
51 //m_sLeft = 0;
52 //m_zLeft = 0;
53 //m_sRight = 0;
54 //m_zRight = 0;
55 m_trkID.clear();
56 m_sz.clear();
57 m_pairHit = NULL;
58 m_halfCircle = 0;
59 m_position.clear();
60 m_mdcHit = NULL;
61 //MdcHit mdcHit = *(new MdcHit(m_mdcDigi,m_mdcDetector));
62 //mdcHit.setCalibSvc(m_mdcCalibFunSvc);
63 //mdcHit.setCountPropTime(true);
64}
const MdcGeoWire *const Wire(unsigned id)
Definition: MdcGeomSvc.cxx:770
static int layer(const Identifier &id)
Values of different levels (failure returns 0)
static int wire(const Identifier &id)
virtual Identifier identify() const
Definition: RawData.cxx:15
unsigned int getChargeChannel() const
Definition: RawData.cxx:45
unsigned int getTimeChannel() const
Definition: RawData.cxx:40

◆ HoughHit() [3/20]

HoughHit::HoughHit ( const RecCgemCluster cgemCgemCluster,
double  bunchTime,
int  hitID 
)

Definition at line 66 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

67{
68 m_hitID = hitID;
69 m_hitType = CGEMHIT;
70 m_cgemCluster = cgemCluster;
71 m_mdcDigi=NULL;
72 m_cgemMcHit=NULL;
73 m_mdcMcHit=NULL;
74 m_layer = cgemCluster->getlayerid();
75 m_wire = cgemCluster->getsheetid();
76 //m_wire = cgemCluster->getclusterid();
77 //m_wire = -1;
78 m_flag = cgemCluster->getflag();
79 m_use = 0;
80 m_bunchTime = bunchTime;
81 m_rawTime = 0; //FIXME
82 m_depositEnergy = cgemCluster->getenergydeposit(); //FIXME
83 m_hitPosition.setX((m_cgemGeomSvc->getCgemLayer(m_layer)->getMiddleROfGapD()/10.)*cos(cgemCluster->getrecphi()));
84 m_hitPosition.setY((m_cgemGeomSvc->getCgemLayer(m_layer)->getMiddleROfGapD()/10.)*sin(cgemCluster->getrecphi()));
85 m_hitPosition.setZ(cgemCluster->getRecZ()/10.);
86 m_westPoint = HepPoint3D(0,0,0);
87 m_eastPoint = HepPoint3D(0,0,0);
88 m_driftDist = 0;
89 m_residual = 9999;
90 //m_hitMap = NULL;
91 //m_sLeft = 0;
92 //m_zLeft = 0;
93 //m_sRight = 0;
94 //m_zRight = 0;
95 m_trkID.clear();
96 m_sz.clear();
97 m_pairHit = NULL;
98 m_halfCircle = 0;
99 m_position.clear();
100 m_mdcHit = NULL;
101}
double sin(const BesAngle a)
double cos(const BesAngle a)

◆ HoughHit() [4/20]

HoughHit::HoughHit ( const MdcMcHit mdcMcHit,
double  bunchTime,
int  hitID 
)

◆ HoughHit() [5/20]

HoughHit::HoughHit ( const CgemMcHit cgemMcHit,
double  bunchTime,
int  hitID 
)

◆ HoughHit() [6/20]

HoughHit::HoughHit ( const HoughHit other)

Definition at line 177 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

177 :
178 m_hitID(other.m_hitID),
179 m_hitType(other.m_hitType),
180 m_cgemCluster(other.m_cgemCluster),
181 m_mdcDigi(other.m_mdcDigi),
182 m_cgemMcHit(other.m_cgemMcHit),
183 m_mdcMcHit(other.m_mdcMcHit),
184 m_layer(other.m_layer),
185 m_wire(other.m_wire),
186 m_flag(other.m_flag),
187 m_use(other.m_use),
188 m_bunchTime(other.m_bunchTime),
189 m_rawTime(other.m_rawTime),
190 m_depositEnergy(other.m_depositEnergy),
191 m_hitPosition(other.m_hitPosition),
192 m_westPoint(other.m_westPoint),
193 m_eastPoint(other.m_eastPoint),
194 m_driftDist(other.m_driftDist),
195 m_residual(other.m_residual),
196 //m_hitMap(other.m_hitMap),
197 //m_sLeft(other.m_sLeft),
198 //m_zLeft(other.m_zLeft),
199 //m_sRight(other.m_sRight),
200 //m_zRight(other.m_zRight),
201 m_trkID(other.m_trkID),
202 m_sz(other.m_sz),
203 m_pairHit(other.m_pairHit),
204 m_halfCircle(other.m_halfCircle),
205 m_position(other.m_position),
206 m_mdcHit(other.m_mdcHit)
207{}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ HoughHit() [7/20]

HoughHit::HoughHit ( )

◆ HoughHit() [8/20]

HoughHit::HoughHit ( const MdcDigi *const  digi)

Definition at line 28 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

28 {
29 _det= Global::m_gm;
30 _digiPtr=aDigi;
31 _id = aDigi->identify();
32 _layer = MdcID::layer(_id);
33 _wire = MdcID::wire(_id);
34 _layerPtr = _det->Layer(_id);
35 _wirePtr = _det->Wire(_id);
36 _rawTime = RawDataUtil::MdcTime(_digiPtr->getTimeChannel());
37 _charge = _digiPtr->getChargeChannel();
38 _driftTime = driftTime();
39 _driftDist = calDriftDist(_bunchTime,0);
40 _slayerType=slayerType(_layer);
41 _lr = 0;
42 _rmid = _wirePtr->rMid();
43
44 assert(_mdcGeomSvc!=NULL);
45 const MdcGeoWire* wire = _mdcGeomSvc->Wire(_layer,_wire);
46 assert(wire!=NULL);
47 HepPoint3D eastP = wire->Backward()/10.;
48 HepPoint3D westP = wire->Forward()/10.;
49 _eastPoint = eastP;
50 _westPoint = westP;
51 _midPoint = (eastP+westP)/2.;
52
53 _type = MIDPOINT;
54 conformalTrans( _midPoint.x(), _midPoint.y(),_driftDist);
55
56 _detectorType = MDC;
57 _clusterPtr = NULL;
58 _trkid = aDigi->getTrackIndex();
59 _clusterid = -999;
60 _hitMap = NULL;
61 _used = 0;
62}
void conformalTrans(double x, double y, double r)
double calDriftDist(double, int, double, double, double) const
const MdcLayer * Layer(unsigned id) const
const MdcSWire * Wire(unsigned id) const

◆ HoughHit() [9/20]

HoughHit::HoughHit ( const HoughHit other)

◆ HoughHit() [10/20]

HoughHit::HoughHit ( const RecCgemCluster *const  cluster)

Definition at line 64 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

64 {
65 _det= Global::m_gm;
66 _digiPtr=NULL;
67 //_id = aDigi->identify(); //FIXME
68 _layer = cluster->getlayerid();
69 _wire = cluster->getsheetid(); //FIXME
70 //_wire = cluster->getclusterid(); //FIXME
71 _layerPtr = NULL;
72 _wirePtr = NULL;
73 _rawTime = 0; //FIXME
74 _charge = cluster->getenergydeposit(); //FIXME
75 _driftTime = 0; //FIXME
76 _driftDist = 0.00001; //FIXME
77 _slayerType= cluster->getflag(); //FIXME
78 _lr = 0;
79 _rmid = _cgemGeomSvc->getCgemLayer(_layer)->getMiddleROfGapD()/10.;//mm 2 cm; //FIXME
80
81 assert(_cgemGeomSvc!=NULL);
82 //const MdcGeoWire* wire = _mdcGeomSvc->Wire(_layer,_wire);
83 //assert(wire!=NULL);
84 //HepPoint3D point(0,0,0); //FIXME
85 HepPoint3D point((_cgemGeomSvc->getCgemLayer(_layer)->getMiddleROfGapD()/10.)*cos(cluster->getrecphi()),(_cgemGeomSvc->getCgemLayer(_layer)->getMiddleROfGapD()/10.)*sin(cluster->getrecphi()),cluster->getRecZ()/10.); //FIXME
86 //if(_slayerType==2)cout<<"cluster "<<cluster->getclusterid()<<" layer "<<_layer<<" phi,z,V"<<cluster->getrecphi()<<" ,"<<cluster->getRecZ()<<" ,"<<cluster->getrecv()<<endl;
87 HepPoint3D eastP = point;
88 HepPoint3D westP = point;
89 _eastPoint = eastP;
90 _westPoint = westP;
91 _midPoint = (eastP+westP)/2.;
92
93 _type = MIDPOINT;
94 conformalTrans( _midPoint.x(), _midPoint.y(),_driftDist);
95 //conformalTrans( (_cgemGeomSvc->getCgemLayer(_layer)->getMiddleROfGapD()/10.)*cos(cluster->getrecphi()), (_cgemGeomSvc->getCgemLayer(_layer)->getMiddleROfGapD()/10.)*sin(cluster->getrecphi()),_driftDist);
96
97 _detectorType = CGEM;
98 _clusterPtr = cluster;
99 _trkid = 999;
100 _clusterid = cluster->getclusterid();
101 _hitMap = NULL;
102 _used = 0;
103}

◆ HoughHit() [11/20]

HoughHit::HoughHit ( )

◆ HoughHit() [12/20]

HoughHit::HoughHit ( const MdcDigi mdcDigi,
double  bunchTime,
int  hitID 
)

◆ HoughHit() [13/20]

HoughHit::HoughHit ( const RecCgemCluster cgemCgemCluster,
double  bunchTime,
int  hitID 
)

◆ HoughHit() [14/20]

HoughHit::HoughHit ( const MdcMcHit *  mdcMcHit,
double  bunchTime,
int  hitID 
)

Definition at line 103 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

104{
105 m_hitID = hitID;
106 m_hitType = MDCMCHIT;
107 m_cgemCluster = NULL;
108 m_mdcDigi = NULL;
109 m_cgemMcHit = NULL;
110 m_mdcMcHit = mdcMcHit;
111 m_layer = MdcID::layer(mdcMcHit->identify());
112 m_wire = MdcID::wire(mdcMcHit->identify());
113 m_flag = flag();
114 m_use = mdcMcHit->getPositionFlag();
115 m_bunchTime = bunchTime;
116 m_rawTime = 0;
117 m_depositEnergy = mdcMcHit->getDepositEnergy();
118 m_hitPosition.setX(mdcMcHit->getPositionX()/10.);
119 m_hitPosition.setY(mdcMcHit->getPositionY()/10.);
120 m_hitPosition.setZ(mdcMcHit->getPositionZ()/10.);
121 m_westPoint = HepPoint3D(0,0,0);
122 m_eastPoint = HepPoint3D(0,0,0);
123 m_driftDist = mdcMcHit->getDriftDistance()/10.;
124 m_residual = 9999;
125 //m_hitMap = NULL;
126 //m_sLeft = 0;
127 //m_zLeft = 0;
128 //m_sRight = 0;
129 //m_zRight = 0;
130 m_trkID.push_back(mdcMcHit->getTrackIndex());
131 //cout<<m_layer<<" "<<mdcMcHit->getTrackIndex()<<endl;
132 m_sz.clear();
133 m_pairHit = NULL;
134 m_halfCircle = 0;
135 m_position.clear();
136 m_mdcHit = NULL;
137}

◆ HoughHit() [15/20]

HoughHit::HoughHit ( const CgemMcHit *  cgemMcHit,
double  bunchTime,
int  hitID 
)

Definition at line 139 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

140{
141 m_hitID = hitID;
142 m_hitType = CGEMMCHIT;
143 m_cgemCluster = NULL;
144 m_mdcDigi = NULL;
145 m_cgemMcHit = cgemMcHit;
146 m_mdcMcHit = NULL;
147 m_layer = cgemMcHit->GetLayerID();
148 //m_wire = cgemMcHit->GetParentID();
149 //m_flag = cgemMcHit->GetPDGCode();
150 m_wire = -1;
151 m_flag = 2;
152 m_use = 0;
153 m_bunchTime = bunchTime;
154 m_rawTime = 0;
155 m_depositEnergy = 0;
156 m_hitPosition.setX((cgemMcHit->GetPositionXOfPrePoint()+cgemMcHit->GetPositionXOfPostPoint())/2/10.);
157 m_hitPosition.setY((cgemMcHit->GetPositionYOfPrePoint()+cgemMcHit->GetPositionYOfPostPoint())/2/10.);
158 m_hitPosition.setZ((cgemMcHit->GetPositionZOfPrePoint()+cgemMcHit->GetPositionZOfPostPoint())/2/10.);
159 m_westPoint = HepPoint3D(0,0,0);
160 m_eastPoint = HepPoint3D(0,0,0);
161 m_driftDist = 0;
162 m_residual = 9999;
163 //m_hitMap = NULL;
164 //m_sLeft = 0;
165 //m_zLeft = 0;
166 //m_sRight = 0;
167 //m_zRight = 0;
168 m_trkID.push_back(cgemMcHit->GetTrackID());
169 //cout<<m_layer<<" "<<cgemMcHit->GetTrackID()<<endl;
170 m_sz.clear();
171 m_pairHit = NULL;
172 m_halfCircle = 0;
173 m_position.clear();
174 m_mdcHit = NULL;
175}

◆ HoughHit() [16/20]

HoughHit::HoughHit ( const HoughHit other)

◆ HoughHit() [17/20]

HoughHit::HoughHit ( )

◆ HoughHit() [18/20]

HoughHit::HoughHit ( const MdcDigi *const  digi)

◆ HoughHit() [19/20]

HoughHit::HoughHit ( const HoughHit other)

◆ HoughHit() [20/20]

HoughHit::HoughHit ( const RecCgemCluster *const  cluster)

Member Function Documentation

◆ addPosition() [1/2]

void HoughHit::addPosition ( HepPoint3D  position)
inline

Definition at line 118 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

118{m_position.push_back(position);}

◆ addPosition() [2/2]

void HoughHit::addPosition ( HepPoint3D  position)
inline

Definition at line 118 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

118{m_position.push_back(position);}

◆ addResid() [1/2]

void HoughHit::addResid ( double  res)
inline

Definition at line 113 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

113{m_vecResid.push_back(res);}

◆ addResid() [2/2]

void HoughHit::addResid ( double  res)
inline

Definition at line 113 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

113{m_vecResid.push_back(res);}

◆ addSZ() [1/2]

void HoughHit::addSZ ( S_Z  sz)
inline

Definition at line 106 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

106{m_sz.push_back(sz);}

Referenced by HoughTrack::calculateZ_S().

◆ addSZ() [2/2]

void HoughHit::addSZ ( S_Z  sz)
inline

Definition at line 106 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

106{m_sz.push_back(sz);}

◆ addTrkID() [1/2]

void HoughHit::addTrkID ( int  trkID)
inline

Definition at line 105 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

105{m_trkID.push_back(trkID);}

◆ addTrkID() [2/2]

void HoughHit::addTrkID ( int  trkID)
inline

Definition at line 105 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

105{m_trkID.push_back(trkID);}

◆ addTrkPnt() [1/2]

void HoughHit::addTrkPnt ( HoughTrack aHTrk)
inline

Definition at line 107 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

107{m_vecTrkPnt.push_back(aHTrk);}

◆ addTrkPnt() [2/2]

void HoughHit::addTrkPnt ( HoughTrack aHTrk)
inline

Definition at line 107 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

107{m_vecTrkPnt.push_back(aHTrk);}

◆ attach2NTrack() [1/2]

int HoughHit::attach2NTrack ( )
inline

Definition at line 133 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

133{return m_trkID.size();}

◆ attach2NTrack() [2/2]

int HoughHit::attach2NTrack ( )
inline

Definition at line 133 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

133{return m_trkID.size();}

◆ buildMap() [1/2]

void HoughHit::buildMap ( int  x_bin,
double  x_min,
double  x_max,
int  y_bin,
double  y_min,
double  y_max,
int  nPoint,
int  charge 
)

Definition at line 326 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

327{
328 if(_hitMap!=NULL)delete _hitMap;
329 stringstream ssname;
330 ssname<<"id"<<_hitid<<",layer"<<_layer<<",wire(sheet)"<<_wire;
331 string sname = ssname.str();
332 const char * name = sname.c_str() ;
333 //cout<<name<<endl;
334 _hitMap = new TH2D(name,name, x_bin, x_min, x_max, y_bin, y_min, y_max);
335 int N = x_bin*nPoint;
336 double delta_alpha = (x_max - x_min )/N;
337 double alpha = x_min-delta_alpha/2;
338 for(int i=0;i<N;i++){
339 alpha += delta_alpha;
340 if(alpha>M_PI)alpha -= M_PI;
341 double rho1 = _u*cos(alpha) + _v*sin(alpha) + CF_drift;
342 double rho2 = _u*cos(alpha) + _v*sin(alpha) - CF_drift;
343 //cout<<alpha<<" "<<rho1<<" "<<rho2<<endl;
344 double slantOfLine = _v*cos(alpha) - _u*sin(alpha);
345 int chargeOfHitOnCir1 = (slantOfLine/fabs(slantOfLine))*(rho1/fabs(rho1));
346 int chargeOfHitOnCir2 = (slantOfLine/fabs(slantOfLine))*(rho2/fabs(rho2));
347 if(chargeOfHitOnCir1 != charge && y_min<(rho1) && (rho1)<y_max)
348 //if( y_min<(rho1) && (rho1)<y_max)
349 _hitMap->Fill(alpha,rho1);
350 if(chargeOfHitOnCir2 != charge && y_min<(rho2) && (rho2)<y_max)
351 //if( y_min<(rho2) && (rho2)<y_max)
352 _hitMap->Fill(alpha,rho2);
353 }
354}
const double alpha
#define M_PI
Definition: TConstant.h:4

◆ buildMap() [2/2]

void HoughHit::buildMap ( int  x_bin,
double  x_min,
double  x_max,
int  y_bin,
double  y_min,
double  y_max,
int  nPoint,
int  charge 
)

◆ calDriftDist() [1/4]

double HoughHit::calDriftDist ( double  bunchTime,
int  ambig 
) const

Definition at line 253 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

253 {
254
255 // double crudeTof = 0; //FIXME
256 return calDriftDist(bunchTime+crudeTof(), ambig, 0., 0., 0. );
257}

◆ calDriftDist() [2/4]

double HoughHit::calDriftDist ( double  bunchTime,
int  ambig 
) const

◆ calDriftDist() [3/4]

double HoughHit::calDriftDist ( double  tof,
int  ambig,
double  entranceAngle,
double  ,
double  z 
) const

Definition at line 259 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

259 {
260
261 double driftD;
262 //drift time ns, layer id begin with 0, entrance angle rads,
263 //lr ambig: wire ambig 1,-1,0 -> Calib 0,1,2
264 int lrCalib=2;
265 if (ambig==1) lrCalib = 0;
266 else if (ambig==-1) lrCalib = 1;
267
268 // tof in s, driftDist in cm, dirftTime in ns
269 if (fabs(z)>150. || fabs(driftTime(tof,z))>1500.){
270 return 9999.;
271 }
272 driftD = 0.1 * _calibPtr->driftTimeToDist(driftTime(tof,z),_layer,_wire,lrCalib,entranceAngle);//to cm
273 //std::cout<<"driftDist "<<"("<<_layer <<","<<_wire <<") dd "<<driftD<<" dt "<<driftTime(tof,z) <<" lr "<<lrCalib <<" eAng "<<entranceAngle <<" tof "<<tof*1.e9<<" z "<<z <<" t0walk "<<_T0Walk<<" rawT "<<_rawTime <<" tprop "<< _rawTime - driftTime(tof,z)- _T0Walk-1.e9*tof<<std::endl;
274
275 if (abs(driftD)<0.00001) driftD = 0.00001;
276 return driftD;
277}
double abs(const EvtComplex &c)
Definition: EvtComplex.hh:212
double driftTimeToDist(double drifttime, int layid, int cellid, int lr, double entrance=0.0) const

Referenced by calDriftDist(), and HoughHit().

◆ calDriftDist() [4/4]

double HoughHit::calDriftDist ( double  ,
int  ,
double  ,
double  ,
double   
) const

◆ clearMap() [1/2]

void HoughHit::clearMap ( )

Definition at line 356 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

357{
358 if(_hitMap!=NULL)delete _hitMap;
359 _hitMap = NULL;
360}

◆ clearMap() [2/2]

void HoughHit::clearMap ( )

◆ clearTrkPnt() [1/2]

void HoughHit::clearTrkPnt ( )
inline

Definition at line 109 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

109{m_vecTrkPnt.clear();}

◆ clearTrkPnt() [2/2]

void HoughHit::clearTrkPnt ( )
inline

Definition at line 109 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

109{m_vecTrkPnt.clear();}

◆ conformalTrans() [1/2]

void HoughHit::conformalTrans ( double  x,
double  y,
double  r 
)

Definition at line 221 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

221 {
222 _u = 2*x/(x*x+y*y-r*r);
223 _v = 2*y/(x*x+y*y-r*r);
224 CF_drift = 2*r/(x*x+y*y-r*r);
225}
Double_t x[10]

Referenced by HoughHit().

◆ conformalTrans() [2/2]

void HoughHit::conformalTrans ( double  x,
double  y,
double  r 
)

◆ digi() [1/2]

const MdcDigi * HoughHit::digi ( ) const
inline

Definition at line 61 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

61{return _digiPtr;}

Referenced by printAll().

◆ digi() [2/2]

const MdcDigi * HoughHit::digi ( ) const
inline

◆ driftTime() [1/6]

double HoughHit::driftTime ( )

Definition at line 296 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

297{
298 double ToF = 1.e9*sqrt(m_hitPosition.x()*m_hitPosition.x()+m_hitPosition.y()*m_hitPosition.y())/Constants::c;
299 double Tprop = m_mdcCalibFunSvc->getTprop(m_layer,m_hitPosition.z()*10.);
300 double Twalk = m_mdcCalibFunSvc->getTimeWalk(m_layer, m_depositEnergy);
301 double T0 = m_mdcCalibFunSvc->getT0(m_layer,m_wire);
302 double driftTime = m_rawTime - 1.e9*m_bunchTime - ToF - Tprop - Twalk -T0;
303 //cout<<m_rawTime - Twalk - T0 - ToF - Tprop<<endl;
304 //cout<<"("<<m_layer<<", "<<m_wire<<"): ";
305 //cout<<"bunchT = "<<1.e9*m_bunchTime<<" , rawT "<<m_rawTime<<" , Tof "<<ToF<<" , Tprop "<<Tprop<<" , T0walk "<<Twalk+T0<<" , driftT "<<driftTime<<" , rmid "<<sqrt(m_hitPosition.x()*m_hitPosition.x()+m_hitPosition.y()*m_hitPosition.y())<<" , z "<<m_hitPosition.z()*10.0<<endl;
306 //cout<<endl;
307 return driftTime;
308}
double getT0(int layid, int cellid) const
double getTprop(int lay, double z) const
double getTimeWalk(int layid, double Q) const

Referenced by HoughHitList::addMdcDigiList(), calDriftDist(), driftTime(), HoughTrack::find_pair_hit(), HoughTrack::find_stereo_hit(), HoughHit(), and HoughFinder::makeHoughHitList().

◆ driftTime() [2/6]

double HoughHit::driftTime ( )

◆ driftTime() [3/6]

double HoughHit::driftTime ( ) const

Definition at line 237 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

237 {
238 double tprop = _calibPtr->getTprop(_layer,0);
239 double T0Walk = _calibPtr->getT0(_layer,_wire) + _calibPtr->getTimeWalk(_layer, _charge);
240 //tof in ns, driftTime in ns, _T0Walk in ns
241 double driftT = _rawTime - T0Walk - 1.e9*_bunchTime- tprop;
242 return driftT;
243}

◆ driftTime() [4/6]

double HoughHit::driftTime ( ) const

◆ driftTime() [5/6]

double HoughHit::driftTime ( double  tof,
double  z 
) const

Definition at line 244 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

244 {
245 double tprop = _calibPtr->getTprop(_layer,z*10.);
246 double T0Walk = _calibPtr->getT0(_layer,_wire) + _calibPtr->getTimeWalk(_layer, _charge);
247 //tof in ns, driftTime in ns, _T0Walk in ns
248 double driftT = _rawTime - T0Walk - 1.e9*tof - tprop;
249
250 return driftT;
251}

◆ driftTime() [6/6]

double HoughHit::driftTime ( double  tof,
double  z 
) const

◆ dropTrkID() [1/2]

void HoughHit::dropTrkID ( int  trkID)

Definition at line 397 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

398{
399 vector<int>::iterator it0 = m_trkID.begin();
400 vector<int>::iterator result = find(m_trkID.begin(),m_trkID.end(),trkID);
401 if(result!=m_trkID.end()) {
402 m_trkID.erase(result);
403 vector<double>::iterator itRes = m_vecResid.begin()+(result-it0);
404 if(itRes!=m_vecResid.end()) m_vecResid.erase(itRes);
405 }
406}

◆ dropTrkID() [2/2]

void HoughHit::dropTrkID ( int  trkID)

◆ getBunchTime() [1/4]

double HoughHit::getBunchTime ( ) const
inline

Definition at line 48 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

48{return m_bunchTime;}

◆ getBunchTime() [2/4]

double HoughHit::getBunchTime ( ) const
inline

Definition at line 62 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

62{return _bunchTime;}

◆ getBunchTime() [3/4]

double HoughHit::getBunchTime ( ) const
inline

Definition at line 48 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

48{return m_bunchTime;}

◆ getBunchTime() [4/4]

double HoughHit::getBunchTime ( ) const
inline

Definition at line 62 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

62{return _bunchTime;}

◆ getCgemCalibFunSvc() [1/2]

CgemCalibFunSvc * HoughHit::getCgemCalibFunSvc ( ) const
inline

Definition at line 68 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

68{return m_cgemCalibFunSvc;}

Referenced by HoughTrack::fitCircle().

◆ getCgemCalibFunSvc() [2/2]

CgemCalibFunSvc * HoughHit::getCgemCalibFunSvc ( ) const
inline

Definition at line 68 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

68{return m_cgemCalibFunSvc;}

◆ getCgemCluster() [1/2]

const RecCgemCluster * HoughHit::getCgemCluster ( ) const
inline

Definition at line 41 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

41{return m_cgemCluster;}

Referenced by HoughTrack::calculateZ_S(), and HoughTrack::fitCircle().

◆ getCgemCluster() [2/2]

const RecCgemCluster * HoughHit::getCgemCluster ( ) const
inline

Definition at line 41 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

41{return m_cgemCluster;}

◆ getCgemGeomSvc() [1/4]

CgemGeomSvc * HoughHit::getCgemGeomSvc ( ) const
inline

◆ getCgemGeomSvc() [2/4]

CgemGeomSvc * HoughHit::getCgemGeomSvc ( ) const
inline

Definition at line 124 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

124{return _cgemGeomSvc;}

◆ getCgemGeomSvc() [3/4]

CgemGeomSvc * HoughHit::getCgemGeomSvc ( ) const
inline

Definition at line 67 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

67{return m_cgemGeomSvc;}

◆ getCgemGeomSvc() [4/4]

CgemGeomSvc * HoughHit::getCgemGeomSvc ( ) const
inline

Definition at line 124 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

124{return _cgemGeomSvc;}

◆ getCgemMcHit() [1/2]

const CgemMcHit * HoughHit::getCgemMcHit ( ) const
inline

Definition at line 43 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

43{return m_cgemMcHit;}

Referenced by HoughFinder::getMcHitCol().

◆ getCgemMcHit() [2/2]

const CgemMcHit * HoughHit::getCgemMcHit ( ) const
inline

Definition at line 43 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

43{return m_cgemMcHit;}

◆ getCharge() [1/2]

double HoughHit::getCharge ( ) const
inline

Definition at line 73 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

73{return _charge;}

◆ getCharge() [2/2]

double HoughHit::getCharge ( ) const
inline

◆ getCir() [1/2]

CFCir HoughHit::getCir ( int  i) const
inline

Definition at line 54 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

54{return vec_cfcir[i];}

◆ getCir() [2/2]

CFCir HoughHit::getCir ( int  i) const
inline

Definition at line 54 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

54{return vec_cfcir[i];}

◆ getCirList() [1/2]

int HoughHit::getCirList ( ) const
inline

Definition at line 111 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

111{return _cirlist;}

◆ getCirList() [2/2]

int HoughHit::getCirList ( ) const
inline

◆ getCluster() [1/2]

const RecCgemCluster * HoughHit::getCluster ( ) const
inline

Definition at line 125 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

125{return _clusterPtr;}

Referenced by HoughTrack::cald_layer(), and HoughPeak::collectHits().

◆ getCluster() [2/2]

const RecCgemCluster * HoughHit::getCluster ( ) const
inline

Definition at line 125 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

125{return _clusterPtr;}

◆ getClusterId() [1/2]

int HoughHit::getClusterId ( ) const
inline

Definition at line 129 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

129{return _clusterid;}

◆ getClusterId() [2/2]

int HoughHit::getClusterId ( ) const
inline

Definition at line 129 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

129{return _clusterid;}

◆ getConformal_r() [1/2]

double HoughHit::getConformal_r ( double  x,
double  y,
double  r 
)

Definition at line 233 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

233 {
234 return 2*r/(x*x+y*y-r*r);
235}

Referenced by setTruthInfo().

◆ getConformal_r() [2/2]

double HoughHit::getConformal_r ( double  ,
double  ,
double   
)

◆ getConformal_u() [1/2]

double HoughHit::getConformal_u ( double  x,
double  y,
double  r 
)

Definition at line 227 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

227 {
228 return 2*x/(x*x+y*y-r*r);
229}

Referenced by setTruthInfo().

◆ getConformal_u() [2/2]

double HoughHit::getConformal_u ( double  ,
double  ,
double   
)

◆ getConformal_v() [1/2]

double HoughHit::getConformal_v ( double  x,
double  y,
double  r 
)

Definition at line 230 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

230 {
231 return 2*x/(x*x+y*y-r*r);
232}

Referenced by setTruthInfo().

◆ getConformal_v() [2/2]

double HoughHit::getConformal_v ( double  ,
double  ,
double   
)

◆ getDeltaD() [1/2]

double HoughHit::getDeltaD ( ) const
inline

Definition at line 81 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

81{ return _deltad; } //l1l2-R+-r

◆ getDeltaD() [2/2]

double HoughHit::getDeltaD ( ) const
inline

Definition at line 81 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

81{ return _deltad; } //l1l2-R+-r

◆ getDepositEnergy() [1/2]

double HoughHit::getDepositEnergy ( ) const
inline

Definition at line 50 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

50{return m_depositEnergy;}

◆ getDepositEnergy() [2/2]

double HoughHit::getDepositEnergy ( ) const
inline

Definition at line 50 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

50{return m_depositEnergy;}

◆ getDetectorType() [1/2]

◆ getDetectorType() [2/2]

detectorType HoughHit::getDetectorType ( ) const
inline

Definition at line 60 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

60{return _detectorType;}

◆ getDigi() [1/2]

const MdcDigi * HoughHit::getDigi ( ) const
inline

Definition at line 42 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

42{return m_mdcDigi;}

Referenced by HoughTrack::fitCircle().

◆ getDigi() [2/2]

const MdcDigi * HoughHit::getDigi ( ) const
inline

Definition at line 42 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

42{return m_mdcDigi;}

◆ getDriftDist() [1/4]

◆ getDriftDist() [2/4]

double HoughHit::getDriftDist ( ) const
inline

Definition at line 75 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

75{return _driftDist;}

◆ getDriftDist() [3/4]

double HoughHit::getDriftDist ( ) const
inline

Definition at line 54 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

54{return m_driftDist;}

◆ getDriftDist() [4/4]

double HoughHit::getDriftDist ( ) const
inline

Definition at line 75 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

75{return _driftDist;}

◆ getDriftDistTruth() [1/2]

double HoughHit::getDriftDistTruth ( ) const
inline

Definition at line 96 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

96{return _truthDrift;}

◆ getDriftDistTruth() [2/2]

double HoughHit::getDriftDistTruth ( ) const
inline

Definition at line 96 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

96{return _truthDrift;}

◆ getDriftTime() [1/2]

double HoughHit::getDriftTime ( ) const
inline

Definition at line 74 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

74{return _driftTime;}

◆ getDriftTime() [2/2]

double HoughHit::getDriftTime ( ) const
inline

Definition at line 74 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

74{return _driftTime;}

◆ getEastPoint() [1/4]

HepPoint3D HoughHit::getEastPoint ( ) const
inline

Definition at line 53 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

53{return m_eastPoint;}

Referenced by HoughStereo::cald().

◆ getEastPoint() [2/4]

HepPoint3D HoughHit::getEastPoint ( ) const
inline

Definition at line 64 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

64{return _eastPoint;}

◆ getEastPoint() [3/4]

HepPoint3D HoughHit::getEastPoint ( ) const
inline

Definition at line 53 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

53{return m_eastPoint;}

◆ getEastPoint() [4/4]

HepPoint3D HoughHit::getEastPoint ( ) const
inline

Definition at line 64 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

64{return _eastPoint;}

◆ getFlag() [1/2]

int HoughHit::getFlag ( ) const
inline

◆ getFlag() [2/2]

int HoughHit::getFlag ( ) const
inline

◆ getFltLen() [1/2]

double HoughHit::getFltLen ( ) const
inline

Definition at line 82 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

82{ return _flightLength; } // R*dtheta

◆ getFltLen() [2/2]

double HoughHit::getFltLen ( ) const
inline

Definition at line 82 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

82{ return _flightLength; } // R*dtheta

◆ getHalfCircle() [1/2]

int HoughHit::getHalfCircle ( )
inline

Definition at line 70 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

70{return m_halfCircle;}

Referenced by print().

◆ getHalfCircle() [2/2]

int HoughHit::getHalfCircle ( )
inline

Definition at line 70 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

70{return m_halfCircle;}

◆ getHitID() [1/2]

int HoughHit::getHitID ( ) const
inline

Definition at line 39 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

39{return m_hitID;}

◆ getHitId() [1/2]

int HoughHit::getHitId ( ) const
inline

Definition at line 128 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

128{return _hitid;}

Referenced by HoughHitList::remove().

◆ getHitID() [2/2]

int HoughHit::getHitID ( ) const
inline

◆ getHitId() [2/2]

int HoughHit::getHitId ( ) const
inline

◆ getHitMap() [1/2]

TH2D * HoughHit::getHitMap ( )
inline

Definition at line 138 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

138{return _hitMap;}

◆ getHitMap() [2/2]

TH2D * HoughHit::getHitMap ( )
inline

◆ getHitPosition() [1/2]

◆ getHitPosition() [2/2]

HepPoint3D HoughHit::getHitPosition ( ) const
inline

Definition at line 51 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

51{return m_hitPosition;}

◆ getHitType() [1/2]

HitType HoughHit::getHitType ( ) const
inline

◆ getHitType() [2/2]

HitType HoughHit::getHitType ( ) const
inline

Definition at line 40 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

40{return m_hitType;}

◆ getIdTruth() [1/2]

int HoughHit::getIdTruth ( ) const
inline

Definition at line 97 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

97{return _truthId;}

◆ getIdTruth() [2/2]

int HoughHit::getIdTruth ( ) const
inline

◆ getLayer() [1/2]

◆ getLayer() [2/2]

int HoughHit::getLayer ( ) const
inline

◆ getLayerId() [1/2]

◆ getLayerId() [2/2]

int HoughHit::getLayerId ( ) const
inline

◆ getLeftPoint() [1/2]

HepPoint3D HoughHit::getLeftPoint ( ) const
inline

Definition at line 135 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

135{return _leftPoint;}

◆ getLeftPoint() [2/2]

HepPoint3D HoughHit::getLeftPoint ( ) const
inline

Definition at line 135 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

135{return _leftPoint;}

◆ getLrTruth() [1/2]

int HoughHit::getLrTruth ( ) const
inline

Definition at line 98 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

98{return _truthlr;}

◆ getLrTruth() [2/2]

int HoughHit::getLrTruth ( ) const
inline

◆ getMdcCalibFunSvc() [1/2]

MdcCalibFunSvc * HoughHit::getMdcCalibFunSvc ( ) const
inline

Definition at line 66 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

66{return m_mdcCalibFunSvc;}

Referenced by HoughTrack::fitCircle().

◆ getMdcCalibFunSvc() [2/2]

MdcCalibFunSvc * HoughHit::getMdcCalibFunSvc ( ) const
inline

Definition at line 66 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

66{return m_mdcCalibFunSvc;}

◆ getMdcGeomSvc() [1/2]

MdcGeomSvc * HoughHit::getMdcGeomSvc ( ) const
inline

Definition at line 65 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

65{return m_mdcGeomSvc;}

Referenced by HoughTrack::calculateZ_S(), and VHitPosition().

◆ getMdcGeomSvc() [2/2]

MdcGeomSvc * HoughHit::getMdcGeomSvc ( ) const
inline

Definition at line 65 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

65{return m_mdcGeomSvc;}

◆ getMdcHit() [1/2]

MdcHit * HoughHit::getMdcHit ( )
inline

Definition at line 134 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

134{return m_mdcHit;}

◆ getMdcHit() [2/2]

MdcHit * HoughHit::getMdcHit ( )
inline

Definition at line 134 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

134{return m_mdcHit;}

◆ getMdcMcHit() [1/2]

const MdcMcHit * HoughHit::getMdcMcHit ( ) const
inline

Definition at line 44 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

44{return m_mdcMcHit;}

Referenced by HoughFinder::getMcHitCol(), and print().

◆ getMdcMcHit() [2/2]

const MdcMcHit * HoughHit::getMdcMcHit ( ) const
inline

Definition at line 44 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

44{return m_mdcMcHit;}

◆ getMidPoint() [1/2]

HepPoint3D HoughHit::getMidPoint ( ) const
inline

Definition at line 63 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

63{return _midPoint;}

Referenced by HoughStereo::cald().

◆ getMidPoint() [2/2]

HepPoint3D HoughHit::getMidPoint ( ) const
inline

◆ getMidX() [1/2]

double HoughHit::getMidX ( ) const
inline

Definition at line 66 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

66{return _midPoint.x();}

Referenced by HoughTrack::cald_layer(), and HoughPeak::collectHits().

◆ getMidX() [2/2]

double HoughHit::getMidX ( ) const
inline

Definition at line 66 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

66{return _midPoint.x();}

◆ getMidY() [1/2]

double HoughHit::getMidY ( ) const
inline

Definition at line 67 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

67{return _midPoint.y();}

Referenced by HoughTrack::cald_layer(), and HoughPeak::collectHits().

◆ getMidY() [2/2]

double HoughHit::getMidY ( ) const
inline

Definition at line 67 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

67{return _midPoint.y();}

◆ getPairHit() [1/2]

HoughHit * HoughHit::getPairHit ( )
inline

Definition at line 71 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

71{return m_pairHit;}

Referenced by residual().

◆ getPairHit() [2/2]

HoughHit * HoughHit::getPairHit ( )
inline

Definition at line 71 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

71{return m_pairHit;}

◆ getPointTruth() [1/2]

HepPoint3D HoughHit::getPointTruth ( ) const
inline

Definition at line 102 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

102{return _truthPoint;}

Referenced by HoughStereo::cald(), and HoughStereo::print().

◆ getPointTruth() [2/2]

HepPoint3D HoughHit::getPointTruth ( ) const
inline

Definition at line 102 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

102{return _truthPoint;}

◆ getR() [1/2]

double HoughHit::getR ( ) const
inline

Definition at line 80 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

80{return CF_drift;} //drift in CFS

◆ getR() [2/2]

double HoughHit::getR ( ) const
inline

Definition at line 80 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

80{return CF_drift;} //drift in CFS

◆ getRawTime() [1/2]

double HoughHit::getRawTime ( ) const
inline

Definition at line 49 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

49{return m_rawTime;}

◆ getRawTime() [2/2]

double HoughHit::getRawTime ( ) const
inline

Definition at line 49 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

49{return m_rawTime;}

◆ getResidual() [1/2]

double HoughHit::getResidual ( ) const
inline

Definition at line 55 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

55{return m_residual;}

◆ getResidual() [2/2]

double HoughHit::getResidual ( ) const
inline

Definition at line 55 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

55{return m_residual;}

◆ getRightPoint() [1/2]

HepPoint3D HoughHit::getRightPoint ( ) const
inline

Definition at line 136 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

136{return _rightPoint;}

◆ getRightPoint() [2/2]

HepPoint3D HoughHit::getRightPoint ( ) const
inline

Definition at line 136 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

136{return _rightPoint;}

◆ getRTruth() [1/2]

double HoughHit::getRTruth ( ) const
inline

Definition at line 101 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

101{return _truthR;}

◆ getRTruth() [2/2]

double HoughHit::getRTruth ( ) const
inline

◆ getSlayerType() [1/2]

int HoughHit::getSlayerType ( ) const
inline

◆ getSlayerType() [2/2]

int HoughHit::getSlayerType ( ) const
inline

Definition at line 70 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

70{return _slayerType;}

◆ getStyle() [1/2]

int HoughHit::getStyle ( ) const
inline

Definition at line 112 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

112{return _style;}

Referenced by HoughStereo::print().

◆ getStyle() [2/2]

int HoughHit::getStyle ( ) const
inline

◆ getSZ() [1/2]

vector< S_Z > HoughHit::getSZ ( ) const
inline

Definition at line 63 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

63{return m_sz;}

Referenced by HoughFinder::fillHistogram().

◆ getSZ() [2/2]

vector< S_Z > HoughHit::getSZ ( ) const
inline

◆ getTrkID() [1/2]

vector< int > HoughHit::getTrkID ( ) const
inline

Definition at line 56 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

56{return m_trkID;}

Referenced by print().

◆ getTrkId() [1/2]

int HoughHit::getTrkId ( ) const
inline

Definition at line 127 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

127{return _trkid;}

◆ getTrkID() [2/2]

vector< int > HoughHit::getTrkID ( ) const
inline

◆ getTrkId() [2/2]

int HoughHit::getTrkId ( ) const
inline

◆ getTrkPntVec() [1/2]

vector< HoughTrack * > HoughHit::getTrkPntVec ( )
inline

Definition at line 57 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

57{return m_vecTrkPnt;}

◆ getTrkPntVec() [2/2]

vector< HoughTrack * > HoughHit::getTrkPntVec ( )
inline

Definition at line 57 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

57{return m_vecTrkPnt;}

◆ getU() [1/2]

double HoughHit::getU ( ) const
inline

Definition at line 78 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

78{return _u;}

◆ getU() [2/2]

double HoughHit::getU ( ) const
inline

◆ getUsable() [1/2]

int HoughHit::getUsable ( )
inline

Definition at line 142 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

142{return _used;}

◆ getUsable() [2/2]

int HoughHit::getUsable ( )
inline

◆ getUse() [1/2]

int HoughHit::getUse ( ) const
inline

Definition at line 58 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

58{return m_use;}

◆ getUse() [2/2]

int HoughHit::getUse ( ) const
inline

◆ getUTruth() [1/2]

double HoughHit::getUTruth ( ) const
inline

Definition at line 99 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

99{return _truthU;}

◆ getUTruth() [2/2]

double HoughHit::getUTruth ( ) const
inline

◆ getV() [1/2]

double HoughHit::getV ( ) const
inline

Definition at line 79 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

79{return _v;}

◆ getV() [2/2]

double HoughHit::getV ( ) const
inline

◆ getVecResid() [1/2]

vector< double > HoughHit::getVecResid ( )
inline

Definition at line 114 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

114{return m_vecResid;}

◆ getVecResid() [2/2]

vector< double > HoughHit::getVecResid ( )
inline

Definition at line 114 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

114{return m_vecResid;}

◆ getVTruth() [1/2]

double HoughHit::getVTruth ( ) const
inline

Definition at line 100 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

100{return _truthV;}

◆ getVTruth() [2/2]

double HoughHit::getVTruth ( ) const
inline

◆ getWestPoint() [1/4]

HepPoint3D HoughHit::getWestPoint ( ) const
inline

Definition at line 52 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

52{return m_westPoint;}

Referenced by HoughStereo::cald().

◆ getWestPoint() [2/4]

HepPoint3D HoughHit::getWestPoint ( ) const
inline

Definition at line 65 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

65{return _westPoint;}

◆ getWestPoint() [3/4]

HepPoint3D HoughHit::getWestPoint ( ) const
inline

Definition at line 52 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

52{return m_westPoint;}

◆ getWestPoint() [4/4]

HepPoint3D HoughHit::getWestPoint ( ) const
inline

Definition at line 65 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

65{return _westPoint;}

◆ getWire() [1/2]

int HoughHit::getWire ( ) const
inline

◆ getWire() [2/2]

int HoughHit::getWire ( ) const
inline

◆ getWireId() [1/2]

◆ getWireId() [2/2]

int HoughHit::getWireId ( ) const
inline

◆ getXTruth() [1/2]

double HoughHit::getXTruth ( ) const
inline

Definition at line 93 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

93{return _truthPoint.x();}

◆ getXTruth() [2/2]

double HoughHit::getXTruth ( ) const
inline

Definition at line 93 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

93{return _truthPoint.x();}

◆ getYTruth() [1/2]

double HoughHit::getYTruth ( ) const
inline

Definition at line 94 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

94{return _truthPoint.y();}

◆ getYTruth() [2/2]

double HoughHit::getYTruth ( ) const
inline

Definition at line 94 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

94{return _truthPoint.y();}

◆ getZTruth() [1/2]

double HoughHit::getZTruth ( ) const
inline

Definition at line 95 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

95{return _truthPoint.z();}

◆ getZTruth() [2/2]

double HoughHit::getZTruth ( ) const
inline

Definition at line 95 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

95{return _truthPoint.z();}

◆ hitSigma() [1/2]

double HoughHit::hitSigma ( )

◆ hitSigma() [2/2]

double HoughHit::hitSigma ( )

◆ layer() [1/2]

const MdcLayer * HoughHit::layer ( ) const
inline

Definition at line 71 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

71{ return _layerPtr; }

Referenced by setLayer(), and slayerType().

◆ layer() [2/2]

const MdcLayer * HoughHit::layer ( ) const
inline

Definition at line 71 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

71{ return _layerPtr; }

◆ makeCir() [1/2]

void HoughHit::makeCir ( int  n,
double  phi_begin,
double  phi_last,
double  r 
)

Definition at line 314 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

314 {
315 vec_cfcir.clear();
316 vector<CFCir>().swap(vec_cfcir);
317 for(int i =0; i<n; i++){
318 double phi_slice = (phi_last-phi_begin)/n;
319 double phi = phi_begin + (1/2.+i)*phi_slice;
320 double x = _u + r*cos(phi);
321 double y = _v + r*sin(phi);
322 vec_cfcir.push_back( CFCir(x,y,phi,n,_u,_v,r) );
323 }
324}
const Int_t n

◆ makeCir() [2/2]

void HoughHit::makeCir ( int  n,
double  phi_begin,
double  phi_last,
double  r 
)

◆ operator=() [1/4]

HoughHit & HoughHit::operator= ( const HoughHit other)

Definition at line 209 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

210{
211 m_hitID = other.m_hitID;
212 m_hitType = other.m_hitType;
213 m_cgemCluster = other.m_cgemCluster;
214 m_mdcDigi = other.m_mdcDigi;
215 m_cgemMcHit = other.m_cgemMcHit;
216 m_mdcMcHit = other.m_mdcMcHit;
217 m_layer = other.m_layer;
218 m_wire = other.m_wire;
219 m_flag = other.m_flag;
220 m_use = other.m_use;
221 m_bunchTime = other.m_bunchTime;
222 m_rawTime = other.m_rawTime;
223 m_depositEnergy = other.m_depositEnergy;
224 m_hitPosition = other.m_hitPosition;
225 m_westPoint = other.m_westPoint;
226 m_eastPoint = other.m_eastPoint;
227 m_driftDist = other.m_driftDist;
228 m_residual = other.m_residual;
229 //m_hitMap = other.m_hitMap;
230 //m_sLeft = other.m_sLeft;
231 //m_zLeft = other.m_zLeft;
232 //m_sRight = other.m_sRight;
233 //m_zRight = other.m_zRight;
234 m_trkID = other.m_trkID;
235 m_sz = other.m_sz;
236 m_pairHit = other.m_pairHit;
237 m_halfCircle = other.m_halfCircle;
238 m_position = other.m_position;
239 m_mdcHit =other.m_mdcHit;
240}

Referenced by HoughRecHit::operator=().

◆ operator=() [2/4]

HoughHit & HoughHit::operator= ( const HoughHit other)

◆ operator=() [3/4]

HoughHit & HoughHit::operator= ( const HoughHit other)

◆ operator=() [4/4]

HoughHit & HoughHit::operator= ( const HoughHit other)

◆ print() [1/4]

void HoughHit::print ( )

Definition at line 327 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

328{
329 string hitType;
330 switch(m_hitType){
331 case CGEMHIT : hitType = "CGEMHIT"; break;
332 case MDCHIT : hitType = "MDCHIT"; break;
333 case CGEMMCHIT : hitType = "CGEMMCHIT"; break;
334 case MDCMCHIT : hitType = "MDCMCHIT"; break;
335 default : hitType = "";
336 }
337 cout<<"ID:" <<setw(6)<<m_hitID;
338 cout<<"(" <<setw(2)<<m_layer;
339 cout<<"," <<setw(3)<<m_wire<<") ";
340 cout<<" flag:" <<setw(3)<<m_flag;
341 if(m_hitType==CGEMHIT||m_hitType==MDCHIT){
342 if(m_pairHit!=NULL){
343 cout<<" half:"<<setw(2)<<m_pairHit->getHalfCircle();
344 cout<<" trkID:"<<setw(3)<<(m_pairHit->getTrkID())[0];
345 cout<<" McHit:("<<setw(10)<<m_pairHit->getHitPosition().x()<<", "<<setw(10)<<m_pairHit->getHitPosition().y()<<", "<<setw(10)<<m_pairHit->getHitPosition().z()<<") ";
346 if(m_hitType==MDCHIT){
347 cout<<" McLR:"<<setw(3)<<m_pairHit->getMdcMcHit()->getPositionFlag();
348 cout<<" drift:"<<setw(10)<<m_pairHit->getMdcMcHit()->getDriftDistance();
349 }
350 //if(m_hitType==MDCHIT)
351 //cout<<" trkID:"<<setw(3)<<m_pairHit->getMdcMcHit()->getTrackIndex();
352 }
353 }
354 if(m_hitType==CGEMMCHIT||m_hitType==MDCMCHIT){
355 cout<<" half:"<<setw(2)<<getHalfCircle();
356 cout<<" trkID:"<<setw(3)<<m_trkID[0];
357 cout<<" McHit:("<<setw(10)<<m_hitPosition.x()<<", "<<setw(10)<<m_hitPosition.y()<<", "<<setw(10)<<m_hitPosition.z()<<") ";
358 //if(m_hitType==MDCMCHIT)
359 //cout<<" trkID:"<<setw(3)<<m_mdcMcHit->getTrackIndex();
360 if(m_hitType==MDCMCHIT){
361 cout<<" McLR:"<<setw(3)<<m_mdcMcHit->getPositionFlag();
362 cout<<" drift:"<<setw(10)<<m_mdcMcHit->getDriftDistance();
363 }
364 }
365
366 //cout<<setw(7)<<"hitID:" <<setw(6)<<m_hitID
367 //<<setw(10)<<"hitType:" <<setw(10)<<hitType
368 //<<setw(8)<<"layer:" <<setw(4)<<m_layer
369 //<<setw(6)<<"wire:" <<setw(6)<<m_wire
370 //<<setw(10)<<"flag:" <<setw(10)<<m_flag
371 //<<setw(5)<<"use:" <<setw(3)<<m_use
372 //<<endl
373 //<<setw(12)<<"bunchTime:"<<setw(12)<<m_bunchTime
374 //<<setw(12)<<"rawTime:" <<setw(12)<<m_rawTime
375 //<<setw(12)<<"charge:" <<setw(12)<<m_depositEnergy
376 //<<setw(12)<<"driftTime:"<<setw(12)<<driftTime()
377 //<<setw(11)<<"driftDist:"<<setw(12)<<m_driftDist
378 //<<setw(12)<<"residual:" <<setw(12)<<m_residual
379 //<<endl
380 //<<setw(10)<<"sLeft:" <<setw(10)<<m_sLeft
381 //<<setw(10)<<"zLeft:" <<setw(10)<<m_zLeft
382 //<<setw(10)<<"sRight:" <<setw(10)<<m_sRight
383 //<<setw(10)<<"zRight:" <<setw(10)<<m_zRight
384 //<<endl
385 //<<endl
386 //cout<<m_trkID.size()<<" trkID:";
387 //for(int i=0;i<m_trkID.size();i++)cout<<setw(4)<<m_trkID[i]<<endl;
388 //;
389 //if(m_layer>3)cout<<"TrkID:"<<setw(4)<<getDigi()->getTrackIndex();
390 //cout<<endl;
391 //;
392 cout<<endl;
393}

Referenced by HoughFinder::getMcParticleCol(), and HoughTrack::printHot().

◆ print() [2/4]

void HoughHit::print ( )

◆ print() [3/4]

void HoughHit::print ( ) const

Definition at line 279 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

279 {
280 std::cout<<"("<<_layer<<","<<_wire<<") "<<std::endl;
281}

◆ print() [4/4]

void HoughHit::print ( ) const

◆ printAll() [1/2]

void HoughHit::printAll ( ) const

Definition at line 283 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

283 {
284 //std::cout<<"("<<_layer<<","<<_wire<<") id "<<this->digi()->getTrackIndex()<<" xyz "<<_midPoint<<endl;
285 if(_detectorType==MDC){
286 std::cout<<"("<<_layer<<","<<_wire<<") id "<<this->digi()->getTrackIndex()<<" xyz "<<_midPoint<<endl;
287 }else{
288 cout <<"cgem "
289 <<_clusterPtr->getclusterid()<<" layer "<<_clusterPtr->getlayerid()
290 <<" uv "<<_u<<" "<<_v
291 <<" flag "<<(_clusterPtr)->getflag()
292 <<" recphi "<<(_clusterPtr)->getrecphi()<<" recv "<<(_clusterPtr)->getrecv()<<" recz "<<(_clusterPtr)->getRecZ()
293 <<" sheet "<<(_clusterPtr)->getsheetid()
294 <<" energy "<<(_clusterPtr)->getenergydeposit()
295 <<endl;
296 }
297}
int getTrackIndex() const
Definition: RawData.cxx:50

◆ printAll() [2/2]

void HoughHit::printAll ( ) const

◆ printTruth() [1/2]

void HoughHit::printTruth ( ) const

Definition at line 298 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

298 {
299 std::cout<<"("<<_layer<<","<<_wire<<") truth "<<_truthId<<" xyz "<<_truthPoint<<" uv "<<_truthU<<","<<_truthV<<") "<<" cir list "<<_cirlist<<" ambig "<<_truthlr<<std::endl;
300}

◆ printTruth() [2/2]

void HoughHit::printTruth ( ) const

◆ resetSZ() [1/2]

void HoughHit::resetSZ ( )
inline

Definition at line 97 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

97{m_sz.clear();}

Referenced by HoughTrack::calculateZ_S(), and VHitPosition().

◆ resetSZ() [2/2]

void HoughHit::resetSZ ( )
inline

◆ residual() [1/4]

double HoughHit::residual ( HoughTrack track)

Definition at line 490 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

491{
492 double residual(9999.);
493 if(m_flag==0){
494 HepPoint3D hitPoint = getHitPosition();
496 //HepPoint3D circleCenter = m_helix.center();
497 HepPoint3D circleCenter = track->center();
498 //double distance = circleCenter.perp(hitPoint);
499 double distance = (circleCenter-hitPoint).perp();
500 //double Rc = m_helix.radius();
501 double Rc = fabs(track->radius());
502 double driftDist(0);
503 //if(getHitType() == HoughHit::MDCMCHIT)driftDist = 0;
504 if(getHitType() == HoughHit::MDCHIT)driftDist = getDriftDist();
505 //residual = fabs(distance - Rc) - driftDist;
506 residual = driftDist-fabs(distance - Rc);
507 //cout<<"driftDist, distance, Rc = "<<driftDist<<", "<<distance<<", "<<Rc<<endl;
508 //double distance = (m_helix.center()).perp(hit.getHitPosition());
509 //res = fabs(distance - m_helix.radius()) - hit.getDriftDist();
511 double rCgem = hitPoint.perp();
512 //double phiTrkFlt = m_helix.IntersectCylinder(rCgem);
513 double phiTrkFlt = track->IntersectCylinder(rCgem);
514 phiTrkFlt = track->judgeHalf(this)*phiTrkFlt;
515 //HepPoint3D crossPoint = m_helix.x(phiTrkFlt);
516 HepPoint3D crossPoint = track->x(phiTrkFlt);
517 double phiCrossPoint = crossPoint.phi();
518 double phiMeasure = hitPoint.phi();
519 residual = phiMeasure - phiCrossPoint;
520 while(residual<-M_PI)residual += 2*M_PI;
521 while(residual> M_PI)residual -= 2*M_PI;
522 residual = rCgem*residual;
523 }
524 }else{
525 double zTruth = getPairHit()->getHitPosition().z();
526 double minRes(9999);
528 vector<HepPoint3D> position = VHitPosition(track);
529 for(vector<HepPoint3D>::iterator posIt = position.begin();posIt!=position.end();posIt++){
530 HepPoint3D point = *posIt;
531 double s = track->flightArc(point);
532 double zTrk = track->dz()+s*track->tanl();
533 double res = point.z() - zTrk;
534 //res = point.z() - zTruth;
535 if(fabs(res)<minRes){
536 minRes=fabs(res);
537 residual = res;
538 }
539 }
541 double s = track->flightArc(m_hitPosition);
542 double zTrk = track->dz()+s*track->tanl();
543 residual = m_hitPosition.z() - zTrk;
544 //residual = m_hitPosition.z() - zTruth;
545 }
546 }
547 return residual;
548}
XmlRpcServer s
Definition: HelloServer.cpp:11
const HepPoint3D & center(void) const
returns position of helix center(z = 0.);
HepPoint3D x(double dPhi=0.) const
returns position after rotating angle dPhi in phi direction.
double radius(void) const
returns radious of helix.
vector< HepPoint3D > & VHitPosition(HoughTrack *track)

Referenced by residual(), and setResidual().

◆ residual() [2/4]

double HoughHit::residual ( HoughTrack track)

◆ residual() [3/4]

double HoughHit::residual ( HoughTrack track,
HepPoint3D positionOntrack,
HepPoint3D positionOnDetector 
)

Definition at line 571 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

572{
573 double residual(9999.);
574 HepPoint3D pivot(0,0,0);
575 track->pivot(pivot);
576 if(m_hitType==MDCHIT){
577 const MdcDetector* mdcDetector(m_mdcDetector);
578 MdcHit mdcHit(m_mdcDigi,mdcDetector);
579 const Trajectory* wire(mdcHit.hitTraj());
580
581 double d0 = -track->dr();
582 double phi0 = track->phi0()+M_PI/2;
583 double omega = track->kappa()/fabs(track->alpha());
584 double z0 = track->dz();
585 double tanl = track->tanl();
586
587 //HepVector a(5,0);
588 //a(1) = d0;
589 //a(2) = phi0;
590 //a(3) = omega;
591 //a(4) = z0;
592 //a(5) = tanl;
593 //HepSymMatrix Ea(5,0);
594 //const HepVector pvec(a);
595 //const HepSymMatrix pcov(Ea);
596 //const HepPoint3D refpoint(track->pivot());
597 //const HelixTraj trk(pvec, pcov, -99999., 99999., refpoint);
598
599 double hitWireLength = m_hitPosition.z()-m_westPoint.z();
600 const TrkExchangePar trkExchangePar(d0,phi0,omega,z0,tanl);
601 double trkFlightLength = track->flightLength(m_hitPosition);
602 const HelixTraj helixTraj(trkExchangePar);
603 TrkPoca trkPoca(helixTraj,trkFlightLength,*wire,hitWireLength);
604 trkFlightLength = trkPoca.flt1();
605 hitWireLength = trkPoca.flt2();
606 double doca = trkPoca.doca();
607 //double trkFlightArc = track->flightArc(m_hitPosition);
608 //const TrkCircleTraj circleTraj(trkExchangePar);
609 //TrkPoca trkPoca(circleTraj,trkFlightArc,*wire,hitWireLength);
610 //trkFlightArc = trkPoca.flt1();
611 //hitWireLength = trkPoca.flt2();
612 //double doca = trkPoca.doca();
613
614 Hep3Vector wireDirection, trackDirection;
615 //HepPoint3D hitOnWire, hitOntrack;
616 wire->getInfo(hitWireLength, positionOnDetector, wireDirection);
617 helixTraj.getInfo(trkFlightLength, positionOntrack, trackDirection);
618 residual = m_driftDist - fabs(doca);
619 //cout<<"("<<m_layer<<","<<m_wire<<") ";
620 //cout<<setw(12)<<m_driftDist
621 //<<setw(12)<<doca
622 //<<setw(12)<<residual
623 //<<endl;
624
625 //cout<<"("<<m_layer<<","<<m_wire<<") "
626 //<<setw(12)<<getPairHit()->getHitPosition().z()
627 //<<setw(12)<<positionOntrack.z()
628 //<<setw(12)<<positionOnDetector.z()
629 //<<setw(12)<<tanl/sqrt(1+tanl*tanl)*trkFlightLength+z0
630 //<<setw(12)<<tanl*(track->flightArc(m_hitPosition))+z0
631 //<<endl;
632 }
633 else if(m_hitType==CGEMHIT){
634 double rCgem = m_hitPosition.perp();
635 //double phiTrkFlt = m_helix.IntersectCylinder(rCgem);
636 double phiTrkFlt = track->IntersectCylinder(rCgem);
637 phiTrkFlt = track->judgeHalf(this)*phiTrkFlt;
638 //HepPoint3D crossPoint = m_helix.x(phiTrkFlt);
639 positionOntrack = track->x(phiTrkFlt);
640 positionOnDetector = track->x(phiTrkFlt);
641 if(m_flag==0){
642 double phiCrossPoint = positionOntrack.phi();
643 double phiMeasure = m_hitPosition.phi();
644 double dphi = phiMeasure - phiCrossPoint;
645 while(dphi<-M_PI)dphi += 2*M_PI;
646 while(dphi> M_PI)dphi -= 2*M_PI;
647 residual = rCgem*dphi;
648 }
649 else{
650 residual = (m_cgemCluster->getrecv() - m_cgemGeomSvc->getReadoutPlane(m_layer,m_wire)->getVFromPhiZ(positionOntrack.phi(),positionOntrack.z()*10.))/10.;
651 }
652 }
653 return residual;
654}
CgemGeoReadoutPlane * getReadoutPlane(int iLayer, int iSheet) const
double flightLength(HepPoint3D &hit) const
double dr(void) const
returns an element of parameters.
const HepPoint3D & pivot(void) const
returns pivot position.

◆ residual() [4/4]

double HoughHit::residual ( HoughTrack track,
HepPoint3D positionOntrack,
HepPoint3D positionOnDetector 
)

◆ rmTrkPnt() [1/2]

void HoughHit::rmTrkPnt ( HoughTrack aHTrk)
inline

Definition at line 108 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

108{vector<HoughTrack*>::iterator result = find(m_vecTrkPnt.begin(), m_vecTrkPnt.end(), aHTrk); if(result!=m_vecTrkPnt.end()) m_vecTrkPnt.erase(result);}

◆ rmTrkPnt() [2/2]

void HoughHit::rmTrkPnt ( HoughTrack aHTrk)
inline

Definition at line 108 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

108{vector<HoughTrack*>::iterator result = find(m_vecTrkPnt.begin(), m_vecTrkPnt.end(), aHTrk); if(result!=m_vecTrkPnt.end()) m_vecTrkPnt.erase(result);}

◆ setBunchTime() [1/4]

void HoughHit::setBunchTime ( double  bunchTime)
inline

Definition at line 83 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

83{m_bunchTime = bunchTime;}

Referenced by MdcHoughFinder::execute(), and MdcHoughFinder::initialize().

◆ setBunchTime() [2/4]

void HoughHit::setBunchTime ( double  bunchTime)
inline

Definition at line 83 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

83{m_bunchTime = bunchTime;}

◆ setBunchTime() [3/4]

static void HoughHit::setBunchTime ( double  t0)
inlinestatic

Definition at line 43 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

43{_bunchTime=t0;}

◆ setBunchTime() [4/4]

static void HoughHit::setBunchTime ( double  t0)
inlinestatic

◆ setCgemCalibFunSvc() [1/2]

static void HoughHit::setCgemCalibFunSvc ( CgemCalibFunSvc cgemCalibFunSvc)
inlinestatic

Definition at line 102 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

102{m_cgemCalibFunSvc = cgemCalibFunSvc;}

Referenced by HoughFinder::initialize().

◆ setCgemCalibFunSvc() [2/2]

static void HoughHit::setCgemCalibFunSvc ( CgemCalibFunSvc cgemCalibFunSvc)
inlinestatic

Definition at line 102 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

102{m_cgemCalibFunSvc = cgemCalibFunSvc;}

◆ setCgemCluster() [1/2]

void HoughHit::setCgemCluster ( const RecCgemCluster cgemCluster)
inline

Definition at line 75 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

75{m_cgemCluster = cgemCluster;}

Referenced by HoughFinder::getMcHitCol().

◆ setCgemCluster() [2/2]

void HoughHit::setCgemCluster ( const RecCgemCluster cgemCluster)
inline

Definition at line 75 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

75{m_cgemCluster = cgemCluster;}

◆ setCgemGeomSvc() [1/4]

static void HoughHit::setCgemGeomSvc ( CgemGeomSvc cgemGeomSvc)
inlinestatic

Definition at line 101 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

101{m_cgemGeomSvc = cgemGeomSvc;}

Referenced by HoughFinder::initialize(), and MdcHoughFinder::initialize().

◆ setCgemGeomSvc() [2/4]

static void HoughHit::setCgemGeomSvc ( CgemGeomSvc cgemGeomSvc)
inlinestatic

Definition at line 101 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

101{m_cgemGeomSvc = cgemGeomSvc;}

◆ setCgemGeomSvc() [3/4]

static void HoughHit::setCgemGeomSvc ( CgemGeomSvc geomSvc)
inlinestatic

Definition at line 123 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

123{_cgemGeomSvc = geomSvc;}

◆ setCgemGeomSvc() [4/4]

static void HoughHit::setCgemGeomSvc ( CgemGeomSvc geomSvc)
inlinestatic

Definition at line 123 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

123{_cgemGeomSvc = geomSvc;}

◆ setCgemMcHit() [1/2]

void HoughHit::setCgemMcHit ( const CgemMcHit cgemMcHit)
inline

Definition at line 77 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

77{m_cgemMcHit = cgemMcHit;}

◆ setCgemMcHit() [2/2]

void HoughHit::setCgemMcHit ( const CgemMcHit cgemMcHit)
inline

Definition at line 77 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

77{m_cgemMcHit = cgemMcHit;}

◆ setCirList() [1/2]

void HoughHit::setCirList ( int  cir)
inline

Definition at line 113 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

113{_cirlist=cir;}

◆ setCirList() [2/2]

void HoughHit::setCirList ( int  cir)
inline

◆ setClusterId() [1/2]

void HoughHit::setClusterId ( int  id)
inline

Definition at line 132 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

132{_clusterid=id;}

◆ setClusterId() [2/2]

void HoughHit::setClusterId ( int  id)
inline

◆ setDeltaD() [1/2]

void HoughHit::setDeltaD ( double  d)
inline

Definition at line 107 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

107{ _deltad=d; } //l1l2-R+-r

Referenced by HoughTrack::cald_layer().

◆ setDeltaD() [2/2]

void HoughHit::setDeltaD ( double  d)
inline

Definition at line 107 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

107{ _deltad=d; } //l1l2-R+-r

◆ setDepositEnergy() [1/2]

void HoughHit::setDepositEnergy ( double  depositEnergy)
inline

Definition at line 85 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

85{m_depositEnergy = depositEnergy;}

◆ setDepositEnergy() [2/2]

void HoughHit::setDepositEnergy ( double  depositEnergy)
inline

Definition at line 85 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

85{m_depositEnergy = depositEnergy;}

◆ setDigi() [1/2]

void HoughHit::setDigi ( const MdcDigi mdcDigi)
inline

Definition at line 76 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

76{m_mdcDigi = mdcDigi;}

Referenced by HoughFinder::getMcHitCol().

◆ setDigi() [2/2]

void HoughHit::setDigi ( const MdcDigi mdcDigi)
inline

Definition at line 76 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

76{m_mdcDigi = mdcDigi;}

◆ setDriftDist() [1/2]

void HoughHit::setDriftDist ( double  driftDist)
inline

Definition at line 89 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

89{m_driftDist = driftDist;}

◆ setDriftDist() [2/2]

void HoughHit::setDriftDist ( double  driftDist)
inline

Definition at line 89 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

89{m_driftDist = driftDist;}

◆ setFlag() [1/2]

void HoughHit::setFlag ( int  flag)
inline

Definition at line 81 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

81{m_flag = flag;}

Referenced by HoughFinder::getMcHitCol().

◆ setFlag() [2/2]

void HoughHit::setFlag ( int  flag)
inline

◆ setFltLen() [1/2]

void HoughHit::setFltLen ( double  flt)
inline

Definition at line 108 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

108{_flightLength= flt;} // R*dtheta

◆ setFltLen() [2/2]

void HoughHit::setFltLen ( double  flt)
inline

Definition at line 108 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

108{_flightLength= flt;} // R*dtheta

◆ setHalfCircle() [1/2]

void HoughHit::setHalfCircle ( int  halfCircle)
inline

Definition at line 117 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

117{m_halfCircle = halfCircle;}

◆ setHalfCircle() [2/2]

void HoughHit::setHalfCircle ( int  halfCircle)
inline

Definition at line 117 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

117{m_halfCircle = halfCircle;}

◆ setHitID() [1/2]

void HoughHit::setHitID ( int  hitID)
inline

Definition at line 73 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

73{m_hitID = hitID;}

◆ setHitID() [2/2]

void HoughHit::setHitID ( int  hitID)
inline

Definition at line 73 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

73{m_hitID = hitID;}

◆ setHitId() [1/2]

void HoughHit::setHitId ( int  id)
inline

◆ setHitId() [2/2]

void HoughHit::setHitId ( int  id)
inline

◆ setHitPosition() [1/2]

void HoughHit::setHitPosition ( HepPoint3D  point)
inline

Definition at line 86 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

86{m_hitPosition = point;}

◆ setHitPosition() [2/2]

void HoughHit::setHitPosition ( HepPoint3D  point)
inline

Definition at line 86 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

86{m_hitPosition = point;}

◆ setHitType() [1/2]

void HoughHit::setHitType ( HitType  hitType)
inline

Definition at line 74 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

74{m_hitType = hitType;}

◆ setHitType() [2/2]

void HoughHit::setHitType ( HitType  hitType)
inline

Definition at line 74 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

74{m_hitType = hitType;}

◆ setLayer() [1/2]

void HoughHit::setLayer ( int  layer)
inline

◆ setLayer() [2/2]

void HoughHit::setLayer ( int  layer)
inline

◆ setLeftPoint() [1/2]

HepPoint3D HoughHit::setLeftPoint ( HepPoint3D  p)
inline

Definition at line 133 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

133{_leftPoint=p;}

Referenced by HoughStereo::cald().

◆ setLeftPoint() [2/2]

HepPoint3D HoughHit::setLeftPoint ( HepPoint3D  p)
inline

◆ setMdcCalibFunSvc() [1/4]

static void HoughHit::setMdcCalibFunSvc ( const MdcCalibFunSvc calibSvc)
inlinestatic

Definition at line 41 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

41{_calibPtr = calibSvc;}

◆ setMdcCalibFunSvc() [2/4]

static void HoughHit::setMdcCalibFunSvc ( const MdcCalibFunSvc calibSvc)
inlinestatic

Definition at line 41 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

41{_calibPtr = calibSvc;}

◆ setMdcCalibFunSvc() [3/4]

static void HoughHit::setMdcCalibFunSvc ( MdcCalibFunSvc mdcCalibFunSvc)
inlinestatic

Definition at line 100 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

100{m_mdcCalibFunSvc = mdcCalibFunSvc;}

Referenced by HoughFinder::initialize(), and MdcHoughFinder::initialize().

◆ setMdcCalibFunSvc() [4/4]

static void HoughHit::setMdcCalibFunSvc ( MdcCalibFunSvc mdcCalibFunSvc)
inlinestatic

Definition at line 100 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

100{m_mdcCalibFunSvc = mdcCalibFunSvc;}

◆ setMdcDetector() [1/2]

static void HoughHit::setMdcDetector ( const MdcDetector mdcDetector)
inlinestatic

Definition at line 103 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

103{m_mdcDetector = mdcDetector;}

Referenced by HoughFinder::initialize().

◆ setMdcDetector() [2/2]

static void HoughHit::setMdcDetector ( const MdcDetector mdcDetector)
inlinestatic

Definition at line 103 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

103{m_mdcDetector = mdcDetector;}

◆ setMdcGeomSvc() [1/4]

static void HoughHit::setMdcGeomSvc ( MdcGeomSvc geomSvc)
inlinestatic

Definition at line 42 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

42{_mdcGeomSvc = geomSvc;}

◆ setMdcGeomSvc() [2/4]

static void HoughHit::setMdcGeomSvc ( MdcGeomSvc geomSvc)
inlinestatic

Definition at line 42 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

42{_mdcGeomSvc = geomSvc;}

◆ setMdcGeomSvc() [3/4]

static void HoughHit::setMdcGeomSvc ( MdcGeomSvc mdcGeomSvc)
inlinestatic

Definition at line 99 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

99{m_mdcGeomSvc = mdcGeomSvc;}

Referenced by HoughFinder::initialize(), and MdcHoughFinder::initialize().

◆ setMdcGeomSvc() [4/4]

static void HoughHit::setMdcGeomSvc ( MdcGeomSvc mdcGeomSvc)
inlinestatic

Definition at line 99 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

99{m_mdcGeomSvc = mdcGeomSvc;}

◆ setMdcHit() [1/2]

void HoughHit::setMdcHit ( MdcHit mdcHit)
inline

Definition at line 135 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

135{m_mdcHit = mdcHit;}

Referenced by HoughFinder::makeHoughHitList().

◆ setMdcHit() [2/2]

void HoughHit::setMdcHit ( MdcHit mdcHit)
inline

Definition at line 135 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

135{m_mdcHit = mdcHit;}

◆ setMdcMcHit() [1/2]

void HoughHit::setMdcMcHit ( const MdcMcHit mdcMcHit)
inline

Definition at line 78 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

78{m_mdcMcHit = mdcMcHit;}

◆ setMdcMcHit() [2/2]

void HoughHit::setMdcMcHit ( const MdcMcHit mdcMcHit)
inline

Definition at line 78 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

78{m_mdcMcHit = mdcMcHit;}

◆ setPairHit() [1/2]

void HoughHit::setPairHit ( HoughHit pairHit)
inline

Definition at line 116 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

116{m_pairHit = pairHit;}

Referenced by HoughFinder::getMcHitCol().

◆ setPairHit() [2/2]

void HoughHit::setPairHit ( HoughHit pairHit)
inline

Definition at line 116 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

116{m_pairHit = pairHit;}

◆ setRawTime() [1/2]

void HoughHit::setRawTime ( double  rawTime)
inline

Definition at line 84 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

84{m_rawTime = rawTime;}

◆ setRawTime() [2/2]

void HoughHit::setRawTime ( double  rawTime)
inline

Definition at line 84 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

84{m_rawTime = rawTime;}

◆ setResidual() [1/2]

void HoughHit::setResidual ( double  residual)
inline

Definition at line 90 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

90{m_residual = residual;}

Referenced by HoughTrack::driftDistRes().

◆ setResidual() [2/2]

void HoughHit::setResidual ( double  residual)
inline

◆ setRightPoint() [1/2]

HepPoint3D HoughHit::setRightPoint ( HepPoint3D  p)
inline

Definition at line 134 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

134{_rightPoint=p;}

Referenced by HoughStereo::cald().

◆ setRightPoint() [2/2]

HepPoint3D HoughHit::setRightPoint ( HepPoint3D  p)
inline

◆ setStyle() [1/2]

void HoughHit::setStyle ( int  sty)
inline

Definition at line 114 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

114{_style=sty;}

◆ setStyle() [2/2]

void HoughHit::setStyle ( int  sty)
inline

◆ setSZ() [1/2]

void HoughHit::setSZ ( vector< S_Z sz)
inline

Definition at line 96 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

96{m_sz.clear();m_sz = sz;}

◆ setSZ() [2/2]

void HoughHit::setSZ ( vector< S_Z sz)
inline

Definition at line 96 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

96{m_sz.clear();m_sz = sz;}

◆ setTrkId() [1/2]

void HoughHit::setTrkId ( int  id)
inline

Definition at line 130 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

130{_trkid=id;}

◆ setTrkId() [2/2]

void HoughHit::setTrkId ( int  id)
inline

◆ setTrkID() [1/2]

void HoughHit::setTrkID ( vector< int >  trkID)
inline

Definition at line 91 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

91{m_trkID.clear();m_trkID = trkID;}

◆ setTrkID() [2/2]

void HoughHit::setTrkID ( vector< int >  trkID)
inline

Definition at line 91 of file Reconstruction/HoughTransAlg/HoughTransAlg-00-00-14/HoughTransAlg/HoughHit.h.

91{m_trkID.clear();m_trkID = trkID;}

◆ setTruthInfo() [1/4]

void HoughHit::setTruthInfo ( const CgemMcHit aMcHit)

◆ setTruthInfo() [2/4]

void HoughHit::setTruthInfo ( const CgemMcHit *  aMcHit)

Definition at line 196 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

196 {
197 if(!aMcHit) return;
198 _truthDrift = 0.00001;//mm to cm
199 _truthPoint.setX((aMcHit->GetPositionXOfPrePoint()+aMcHit->GetPositionXOfPostPoint())/2/10.);//mm to cm
200 _truthPoint.setY((aMcHit->GetPositionYOfPrePoint()+aMcHit->GetPositionYOfPostPoint())/2/10.);
201 _truthPoint.setZ((aMcHit->GetPositionZOfPrePoint()+aMcHit->GetPositionZOfPostPoint())/2/10.);
202
203 //int mcLR = aMcHit->getPositionFlag();
204 // if (mcLR == 0) mcLR = -1;//FIXME
205 // for truth reserve from digi
206 //if (mcLR == 1) mcLR = -1;//
207 //if (mcLR == 0) mcLR = 1;//
208 _truthId = aMcHit->GetTrackID();
209 _truthlr = 0;
210
211 //fix
212 _truthU = getConformal_u( _truthPoint.x(), _truthPoint.y(), _truthDrift );
213 _truthV = getConformal_v( _truthPoint.y(), _truthPoint.x(), _truthDrift );
214 _truthR = getConformal_r( _truthPoint.x(), _truthPoint.y(), _truthDrift );
215
216 //std::cout<<__FILE__<<" "<<_layer<<","<<_wire<<" "<<_truthId<<" truth "<<_truthPoint<<" truthU "<<_truthU<<std::endl;
217
218 _type = CLUSTERWITHTRUTH;
219}
double getConformal_v(double, double, double)
double getConformal_r(double, double, double)
double getConformal_u(double, double, double)

◆ setTruthInfo() [3/4]

void HoughHit::setTruthInfo ( const MdcMcHit *&  mcHit)

◆ setTruthInfo() [4/4]

void HoughHit::setTruthInfo ( const MdcMcHit *&  mcHit)

◆ setUsable() [1/2]

void HoughHit::setUsable ( int  u)
inline

Definition at line 141 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

141{_used = u;}

◆ setUsable() [2/2]

void HoughHit::setUsable ( int  u)
inline

◆ setUse() [1/2]

void HoughHit::setUse ( int  use)
inline

Definition at line 82 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

82{m_use = use;}

◆ setUse() [2/2]

void HoughHit::setUse ( int  use)
inline

◆ setWire() [1/2]

void HoughHit::setWire ( int  wire)
inline

Definition at line 80 of file InstallArea/include/HoughTransAlg/HoughTransAlg/HoughHit.h.

80{m_wire = wire;}

Referenced by HoughFinder::getMcHitCol().

◆ setWire() [2/2]

void HoughHit::setWire ( int  wire)
inline

◆ slayerType() [1/2]

int HoughHit::slayerType ( int  layer)

Definition at line 302 of file MdcHoughFinder/MdcHoughFinder-00-00-12/src/HoughHit.cxx.

302 {
303 //get nominal shift cell of this layer
304 double nomShift= _mdcGeomSvc->Layer(layer)->nomShift();
305
306 if(nomShift>0) return 1;
307 else if(nomShift<0) return -1;
308 else return 0;
309
310 return -999;
311}
const MdcGeoLayer *const Layer(unsigned id)
Definition: MdcGeomSvc.cxx:786

Referenced by HoughHit().

◆ slayerType() [2/2]

int HoughHit::slayerType ( int  layer)

◆ type() [1/2]

HoughHitType HoughHit::type ( ) const
inline

Definition at line 59 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

59{return _type;}

◆ type() [2/2]

HoughHitType HoughHit::type ( ) const
inline

◆ updateVHit() [1/2]

void HoughHit::updateVHit ( HoughTrack track)

Definition at line 550 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

551{
552 if(m_flag!=0&&m_hitType==HoughHit::MDCHIT){
553 double minRes(9999);
554 HepPoint3D hitPoint(m_hitPosition);
555 vector<HepPoint3D> position = VHitPosition(track);
556 for(vector<HepPoint3D>::iterator posIt = position.begin();posIt!=position.end();posIt++){
557 HepPoint3D point = *posIt;
558 double s = track->flightArc(point);
559 double zTrk = track->dz()+s*track->tanl();
560 double res = point.z() - zTrk;
561 if(fabs(res)<minRes){
562 minRes=fabs(res);
563 hitPoint = point;
564 }
565 }
566 m_hitPosition = hitPoint;
567 m_driftDist = driftDistance();
568 }
569}

◆ updateVHit() [2/2]

void HoughHit::updateVHit ( HoughTrack track)

◆ VHitPosition() [1/2]

vector< HepPoint3D > & HoughHit::VHitPosition ( HoughTrack track)

Definition at line 408 of file HoughTransAlg/HoughTransAlg-00-00-14/src/HoughHit.cxx.

409{
410 if(getFlag()==0)return m_position;
411 m_position.clear();
412 //if(getPairHit()==NULL)return m_position;
413 //if(getPairHit()->getHalfCircle()!=1)return m_position;
414 double z(0);
415 double xc = track->center().x();
416 double yc = track->center().y();
417 double rTrack = track->radius();// signed FIXME
419 resetSZ();
420 double drift = getDriftDist();
422 HepPoint3D westPoint = wire->Forward();
423 HepPoint3D eastPoint = wire->Backward();
424 double xEast = eastPoint.x()/10.0;
425 double xWest = westPoint.x()/10.0;
426 double yEast = eastPoint.y()/10.0;
427 double yWest = westPoint.y()/10.0;
428 double zEast = eastPoint.z()/10.0;
429 double zWest = westPoint.z()/10.0;
430 //cout<<"wast:x,y,z: "<<xWest<<", "<<yWest<<", "<<zWest<<endl;
431 //cout<<"east:x,y,z: "<<xEast<<", "<<yEast<<", "<<zEast<<endl;
432 //cout<<"Xc, Yc, Rc: "<<xc<<", "<<yc<<", "<<rTrack<<endl;
433 double west2east = sqrt((xEast-xWest)*(xEast-xWest)+(yEast-yWest)*(yEast-yWest));
434
435 double slope = (yEast-yWest)/(xEast-xWest);
436 double intercept = (yWest-slope*xWest+yEast-slope*xEast)/2;
437 double a = 1+slope*slope;
438 double b = -2*(xc+slope*yc-slope*intercept);
439 double c1 = xc*xc+(yc-intercept)*(yc-intercept)-(rTrack+drift)*(rTrack+drift);
440 double c2 = xc*xc+(yc-intercept)*(yc-intercept)-(rTrack-drift)*(rTrack-drift);
441 //double c1 = intercept*(2*yc-intercept)+drift*(drift+rTrack);
442 //double c2 = intercept*(2*yc-intercept)+drift*(drift-rTrack);
443 double delta1 = (b*b-4*a*c1);
444 double delta2 = (b*b-4*a*c2);
445 //cout<<"a,b,c1,c2: "<<a<<", "<<b<<", "<<c1<<", "<<c2<<endl;
446 //cout<<"delta: "<<delta1<<", "<<delta2<<endl;
447 if(delta1>=0){
448 double x1 = (-b+sqrt(delta1))/(2*a);
449 double x2 = (-b-sqrt(delta1))/(2*a);
450 double y1 = slope*x1+intercept;
451 double y2 = slope*x2+intercept;
452 if((x1-xWest)*(x1-xEast)<0){
453 double l = sqrt((x1-xWest)*(x1-xWest)+(y1-yWest)*(y1-yWest));
454 z = zWest + l/west2east*fabs((zEast-zWest));
455 HepPoint3D position(x1,y1,z);
456 m_position.push_back(position);
457 }
458 if((x2-xWest)*(x2-xEast)<0){
459 double l = sqrt((x2-xWest)*(x2-xWest)+(y2-yWest)*(y2-yWest));
460 z = zWest + l/west2east*fabs((zEast-zWest));
461 HepPoint3D position(x2,y2,z);
462 m_position.push_back(position);
463 }
464 }
465
466 if( delta2>=0){
467 double x1 = (-b+sqrt(delta2))/(2*a);
468 double x2 = (-b-sqrt(delta2))/(2*a);
469 double y1 = slope*x1+intercept;
470 double y2 = slope*x2+intercept;
471 if((x1-xWest)*(x1-xEast)<0){
472 double l = sqrt((x1-xWest)*(x1-xWest)+(y1-yWest)*(y1-yWest));
473 z = zWest + l/west2east*fabs((zEast-zWest));
474 HepPoint3D position(x1,y1,z);
475 m_position.push_back(position);
476 }
477 if((x2-xWest)*(x2-xEast)<0){
478 //double l = zWest + sqrt((x2-xWest)*(x2-xWest)+(y2-yWest)*(y2-yWest));
479 //z = l/west2east*fabs((zEast-zWest));
480 double l = sqrt((x2-xWest)*(x2-xWest)+(y2-yWest)*(y2-yWest));
481 z = zWest + l/west2east*fabs((zEast-zWest));
482 HepPoint3D position(x2,y2,z);
483 m_position.push_back(position);
484 }
485 }
486 }
487 return m_position;
488}
TCanvas * c1
Definition: tau_mode.c:75

Referenced by residual(), and updateVHit().

◆ VHitPosition() [2/2]

vector< HepPoint3D > & HoughHit::VHitPosition ( HoughTrack track)

◆ wire() [1/2]

const MdcSWire * HoughHit::wire ( ) const
inline

Definition at line 72 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/HoughHit.h.

72{ return _wirePtr; }

Referenced by HoughHit(), residual(), setWire(), and VHitPosition().

◆ wire() [2/2]

const MdcSWire * HoughHit::wire ( ) const
inline

Definition at line 72 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/HoughHit.h.

72{ return _wirePtr; }

Member Data Documentation

◆ _npart

int HoughHit::_npart =360
static

The documentation for this class was generated from the following files: