BOSS 7.1.1
BESIII Offline Software System
|
#include <MucRec2DRoad.h>
Public Member Functions | |
MucRec2DRoad (const int &part=0, const int &seg=0, const int &orient=0, const float &xVertex=0.0, const float &yVertex=0.0, const float &zVertex=0.0, const int &fittingMethod=0) | |
Constructor. | |
MucRec2DRoad & | operator= (const MucRec2DRoad &orig) |
Assignment constructor. | |
MucRec2DRoad (const MucRec2DRoad &source) | |
Copy constructor. | |
~MucRec2DRoad () | |
Destructor. | |
void | SetIndex (const int &index) |
Set the index for this road. | |
void | AttachHit (MucRecHit *hit) |
Attach the given hit to this road. | |
void | AttachHitNoFit (MucRecHit *hit) |
Attach the given hit to this road, but not fit this road. | |
void | SetMaxNSkippedGaps (const int &nGaps) |
int | SimpleFit (float &slope, float &intercept, float &sigmaSlope, float &sigmaIntercept, float &chisq, int &ndof) |
Calculate the best-fit straight line with "simple" weights. | |
int | SimpleFitNoCurrentGap (int currentgap, float &slope, float &intercept, float &sigmaSlope, float &sigmaIntercept, float &chisq, int &ndof) |
Calculate the best-fit straight line with "simple" weights. not use current gap!!! | |
int | Fit (const float &x, const float &y, const float &z, float &slope, float &intercept, float &sigmaSlope, float &sigmaIntercept, float &chisq, int &ndof) |
Fit (with weights) the hit center to a straight line. | |
void | Project (const int &gap, float &x, float &y, float &z, float &x2, float &y2, float &z2) |
Where does the trajectory of this road intersect a specific gap? | |
float | WeightFunc (const float &chisq, const float &distance) const |
float | WindowFunc (const float &chisq, const float &distance) const |
int | GetIndex () const |
A unique identifier for this road in the current event. | |
int | GetPart () const |
In which part was this road found? | |
int | GetSeg () const |
In which segment was this road found? | |
int | GetOrient () const |
In which orientation was this road found? | |
void | GetVertexPos (float &x, float &y, float &z) const |
Position of the vertex point. | |
int | GetLastGap () const |
Which gap is the last one with hits attached to this road? | |
int | GetNGapsWithHits () const |
How many gaps provide hits attached to this road? | |
int | GetTotalHits () const |
How many hits in all does this road contain? | |
int | GetHitsPerGap (const int &gap) const |
How many hits per gap does this road contain? | |
int | GetMaxHitsPerGap () const |
How many hits were attached in the gap with the most attached hits? | |
bool | HasHitInGap (const int &gap) const |
Does this road contain any hits in the given gap? | |
int | GetNSharedHits (const MucRec2DRoad *road) const |
How many hits do two roads share? | |
float | GetSlope () const |
Slope of trajectory. | |
float | GetIntercept () const |
Intercept of trajectory. | |
int | GetDegreesOfFreedom () const |
How many degrees of freedom in the trajectory fit? | |
float | GetReducedChiSquare () const |
Chi-square parameter (per degree of freedom) of the trajectory fit. | |
void | GetSimpleFitParams (float &slope, float &intercept, float &sigmaSlope, float &sigmaIntercept, float &chisq, int &ndof) const |
Get the parameters from the simple fit. | |
void | GetSimpleFitParams (float &a, float &b, float &c, int &whichhalf, float &sigmaa, float &sigmab, float &sigmac, float &chisq, int &ndof) const |
Get the parameters from the simple quad fit. | |
bool | GetQuadFitOk () |
void | GetPosSigma (float &possigma) const |
MucRecHit * | GetHit (const int &gap) const |
Get a pointer to the first found hit attached in a particular gap. | |
float | GetHitDistance (const MucRecHit *hit) |
Distance to a hit. | |
float | GetSearchWindowSize (const int &gap) const |
Determine the size of the search window in the given gap. | |
bool | HasHit (MucRecHit *hit) const |
Does the hit exist in the road . | |
vector< Identifier > | GetHitsID () const |
Get indices of all hits in the road. | |
vector< MucRecHit * > | GetHits () const |
void | PrintHitsInfo () const |
Print Hits Infomation. | |
Describes a "two-dimensional" road found in the muon chamber. part and orient decides dimension of the road. part orient dimension 1 0 Z-R 1 1 Phi-R 0,2 0 Y-Z 0,2 1 X-Z A full "three-dimensional" road is composed of two 2D roads with different orients on the same part.
Definition at line 38 of file MucRec2DRoad.h.
MucRec2DRoad::MucRec2DRoad | ( | const int & | part = 0, |
const int & | seg = 0, | ||
const int & | orient = 0, | ||
const float & | xVertex = 0.0, | ||
const float & | yVertex = 0.0, | ||
const float & | zVertex = 0.0, | ||
const int & | fittingMethod = 0 ) |
Constructor.
Definition at line 28 of file MucRec2DRoad.cxx.
MucRec2DRoad::MucRec2DRoad | ( | const MucRec2DRoad & | source | ) |
Copy constructor.
Definition at line 72 of file MucRec2DRoad.cxx.
MucRec2DRoad::~MucRec2DRoad | ( | ) |
void MucRec2DRoad::AttachHit | ( | MucRecHit * | hit | ) |
Attach the given hit to this road.
Definition at line 100 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and RecMucTrack::LineFit().
void MucRec2DRoad::AttachHitNoFit | ( | MucRecHit * | hit | ) |
Attach the given hit to this road, but not fit this road.
Definition at line 145 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
int MucRec2DRoad::Fit | ( | const float & | x, |
const float & | y, | ||
const float & | z, | ||
float & | slope, | ||
float & | intercept, | ||
float & | sigmaSlope, | ||
float & | sigmaIntercept, | ||
float & | chisq, | ||
int & | ndof ) |
Fit (with weights) the hit center to a straight line.
Definition at line 575 of file MucRec2DRoad.cxx.
int MucRec2DRoad::GetDegreesOfFreedom | ( | ) | const |
How many degrees of freedom in the trajectory fit?
Definition at line 1064 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and MucRec3DRoad::MucRec3DRoad().
MucRecHit * MucRec2DRoad::GetHit | ( | const int & | gap | ) | const |
Get a pointer to the first found hit attached in a particular gap.
Definition at line 1131 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::GetHit(), and MucRec3DRoad::MucRec3DRoad().
float MucRec2DRoad::GetHitDistance | ( | const MucRecHit * | hit | ) |
Distance to a hit.
Definition at line 1154 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and MucRec3DRoad::MucRec3DRoad().
vector< MucRecHit * > MucRec2DRoad::GetHits | ( | ) | const |
Definition at line 1439 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
vector< Identifier > MucRec2DRoad::GetHitsID | ( | ) | const |
Get indices of all hits in the road.
Definition at line 1418 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::GetHitsID().
int MucRec2DRoad::GetHitsPerGap | ( | const int & | gap | ) | const |
How many hits per gap does this road contain?
Definition at line 977 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::GetHitsPerGap(), and MucRec3DRoad::GetNGapsWithHits().
int MucRec2DRoad::GetIndex | ( | ) | const |
A unique identifier for this road in the current event.
Definition at line 909 of file MucRec2DRoad.cxx.
float MucRec2DRoad::GetIntercept | ( | ) | const |
Intercept of trajectory.
Definition at line 1060 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and RecMucTrack::LineFit().
int MucRec2DRoad::GetLastGap | ( | ) | const |
Which gap is the last one with hits attached to this road?
Definition at line 939 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), MucRec3DRoad::GetLastGapDelta(), and MucRec3DRoad::MucRec3DRoad().
int MucRec2DRoad::GetMaxHitsPerGap | ( | ) | const |
How many hits were attached in the gap with the most attached hits?
Definition at line 943 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::GetMaxHitsPerGap().
int MucRec2DRoad::GetNGapsWithHits | ( | ) | const |
How many gaps provide hits attached to this road?
Definition at line 951 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
int MucRec2DRoad::GetNSharedHits | ( | const MucRec2DRoad * | road | ) | const |
How many hits do two roads share?
Definition at line 1026 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::GetNSharedHits().
int MucRec2DRoad::GetOrient | ( | ) | const |
In which orientation was this road found?
Definition at line 924 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
int MucRec2DRoad::GetPart | ( | ) | const |
In which part was this road found?
Definition at line 916 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and MucRec3DRoad::MucRec3DRoad().
void MucRec2DRoad::GetPosSigma | ( | float & | possigma | ) | const |
Definition at line 1099 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::ProjectNoCurrentGap(), MucRec3DRoad::ProjectWithSigma(), and MucRec3DRoad::RefitNoCurrentGap().
|
inline |
Definition at line 160 of file MucRec2DRoad.h.
Referenced by MucRec3DRoad::Project(), and MucRec3DRoad::ProjectNoCurrentGap().
float MucRec2DRoad::GetReducedChiSquare | ( | ) | const |
Chi-square parameter (per degree of freedom) of the trajectory fit.
Definition at line 1068 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
float MucRec2DRoad::GetSearchWindowSize | ( | const int & | gap | ) | const |
Determine the size of the search window in the given gap.
Definition at line 1239 of file MucRec2DRoad.cxx.
int MucRec2DRoad::GetSeg | ( | ) | const |
In which segment was this road found?
Definition at line 920 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and MucRec3DRoad::MucRec3DRoad().
void MucRec2DRoad::GetSimpleFitParams | ( | float & | a, |
float & | b, | ||
float & | c, | ||
int & | whichhalf, | ||
float & | sigmaa, | ||
float & | sigmab, | ||
float & | sigmac, | ||
float & | chisq, | ||
int & | ndof ) const |
Get the parameters from the simple quad fit.
Definition at line 1108 of file MucRec2DRoad.cxx.
void MucRec2DRoad::GetSimpleFitParams | ( | float & | slope, |
float & | intercept, | ||
float & | sigmaSlope, | ||
float & | sigmaIntercept, | ||
float & | chisq, | ||
int & | ndof ) const |
Get the parameters from the simple fit.
Definition at line 1083 of file MucRec2DRoad.cxx.
Referenced by Project(), MucRec3DRoad::Project(), MucRec3DRoad::ProjectNoCurrentGap(), and MucRec3DRoad::ProjectWithSigma().
float MucRec2DRoad::GetSlope | ( | ) | const |
Slope of trajectory.
Definition at line 1056 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), and RecMucTrack::LineFit().
int MucRec2DRoad::GetTotalHits | ( | ) | const |
How many hits in all does this road contain?
Definition at line 947 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute(), MucRec3DRoad::GetTotalHits(), and MucRec3DRoad::GetTotalHitsDelta().
void MucRec2DRoad::GetVertexPos | ( | float & | x, |
float & | y, | ||
float & | z ) const |
Position of the vertex point.
Definition at line 928 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::MucRec3DRoad().
Does the hit exist in the road .
Definition at line 1395 of file MucRec2DRoad.cxx.
bool MucRec2DRoad::HasHitInGap | ( | const int & | gap | ) | const |
Does this road contain any hits in the given gap?
Definition at line 1003 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::HasHitInGap().
MucRec2DRoad & MucRec2DRoad::operator= | ( | const MucRec2DRoad & | orig | ) |
Assignment constructor.
Definition at line 47 of file MucRec2DRoad.cxx.
void MucRec2DRoad::PrintHitsInfo | ( | ) | const |
Print Hits Infomation.
Definition at line 1449 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::PrintHitsInfo().
void MucRec2DRoad::Project | ( | const int & | gap, |
float & | x, | ||
float & | y, | ||
float & | z, | ||
float & | x2, | ||
float & | y2, | ||
float & | z2 ) |
Where does the trajectory of this road intersect a specific gap?
Definition at line 734 of file MucRec2DRoad.cxx.
Referenced by GetHitDistance().
void MucRec2DRoad::SetIndex | ( | const int & | index | ) |
Set the index for this road.
Definition at line 92 of file MucRec2DRoad.cxx.
void MucRec2DRoad::SetMaxNSkippedGaps | ( | const int & | nGaps | ) |
Max number of consecutive gaps allowed with no hits attached. This parameter affects the calculation of the last gap.
Definition at line 180 of file MucRec2DRoad.cxx.
Referenced by MucRecRoadFinder::execute().
int MucRec2DRoad::SimpleFit | ( | float & | slope, |
float & | intercept, | ||
float & | sigmaSlope, | ||
float & | sigmaIntercept, | ||
float & | chisq, | ||
int & | ndof ) |
Calculate the best-fit straight line with "simple" weights.
Definition at line 188 of file MucRec2DRoad.cxx.
Referenced by AttachHit(), and Fit().
int MucRec2DRoad::SimpleFitNoCurrentGap | ( | int | currentgap, |
float & | slope, | ||
float & | intercept, | ||
float & | sigmaSlope, | ||
float & | sigmaIntercept, | ||
float & | chisq, | ||
int & | ndof ) |
Calculate the best-fit straight line with "simple" weights. not use current gap!!!
Definition at line 414 of file MucRec2DRoad.cxx.
Referenced by MucRec3DRoad::ProjectNoCurrentGap(), and MucRec3DRoad::RefitNoCurrentGap().
float MucRec2DRoad::WeightFunc | ( | const float & | chisq, |
const float & | distance ) const |
float MucRec2DRoad::WindowFunc | ( | const float & | chisq, |
const float & | distance ) const |
Definition at line 1480 of file MucRec2DRoad.cxx.
Referenced by GetSearchWindowSize().