|
ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Describes a linear track. More...
#include <AtPatternLine.h>


Public Types | |
| using | XYZPoint = ROOT::Math::XYZPoint |
| using | XYZVector = ROOT::Math::XYZVector |
Public Types inherited from AtPatterns::AtPattern | |
| using | XYZPoint = ROOT::Math::XYZPoint |
Public Member Functions | |
| AtPatternLine () | |
| XYZPoint | GetPoint () const |
| XYZVector | GetDirection () const |
| virtual void | DefinePattern (const std::vector< XYZPoint > &points) override |
| Define based on points. More... | |
| virtual Double_t | DistanceToPattern (const XYZPoint &point) const override |
| Closest distance to pattern. More... | |
| virtual XYZPoint | ClosestPointOnPattern (const XYZPoint &point) const override |
| Closest point on pattern. More... | |
| virtual XYZPoint | GetPointAt (double z) const override |
| Get point on line at z. More... | |
| virtual TEveElement * | GetEveElement () const override |
| Get visual representation of pattern. More... | |
| virtual std::unique_ptr< AtPattern > | Clone () const override |
| TEveLine * | GetEveLine (Double_t rMax=250) const |
Public Member Functions inherited from AtPatterns::AtPattern | |
| AtPattern (Int_t numPoints=0) | |
| AtPattern (const AtPattern &)=default | |
| AtPattern (AtPattern &&)=default | |
| virtual | ~AtPattern ()=default |
| Double_t | FitPattern (const std::vector< AtHit > &pointsToFit, Double_t qThreshold=-1) |
| Fit the pattern. More... | |
| Double_t | FitPattern (const std::vector< const AtHit * > &pointsToFit, Double_t qThreshold=-1) |
| Double_t | FitPattern (const std::vector< XYZPoint > &pointsToFit) |
| Fit the pattern shape. More... | |
| virtual void | DefinePattern (std::vector< double > par) |
| Define based on parameters. More... | |
| TEveLine * | GetEveLine (double tMin, double tMax, int n) const |
| Get visual representation of pattern. More... | |
| Int_t | GetNumPoints () const |
| Number of points to define the pattern. More... | |
| Double_t | GetChi2 () const |
| Int_t | GetNFree () const |
| virtual std::vector< double > | GetPatternPar () const |
| Get list or parameters that describe the pattern. More... | |
| Double_t | GetTotCharge () const |
| void | SetPatternPar (std::vector< double > par) |
| void | SetChi2 (double chi2) |
Protected Member Functions | |
| std::vector< Double_t > | lineIntersecR (Double_t rMax, Double_t tMin, Double_t tMax) const |
| virtual void | FitPattern (const std::vector< XYZPoint > &points, const std::vector< double > &charge) override |
| double | parameterAtPoint (const XYZPoint &point) const |
| Get the parameter closes to compPoint. More... | |
Additional Inherited Members | |
Protected Types inherited from AtPatterns::AtPattern | |
| using | TEveLineVec = std::vector< std::unique_ptr< TEveLine > > |
Protected Attributes inherited from AtPatterns::AtPattern | |
| std::vector< Double_t > | fPatternPar |
| Double_t | fChi2 {NAN} |
| Int_t | fNFree {0} |
| const Int_t | fNumPoints |
| Double_t | fTotCharge {0} |
Describes a linear track.
Definition at line 28 of file AtPatternLine.h.
| using AtPatterns::AtPatternLine::XYZPoint = ROOT::Math::XYZPoint |
Definition at line 30 of file AtPatternLine.h.
| using AtPatterns::AtPatternLine::XYZVector = ROOT::Math::XYZVector |
Definition at line 31 of file AtPatternLine.h.
| AtPatternLine::AtPatternLine | ( | ) |
Definition at line 18 of file AtPatternLine.cxx.
|
inlineoverridevirtual |
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 42 of file AtPatternLine.h.
|
overridevirtual |
Closest point on pattern.
| [in] | point | Point to get the closest point on the pattern. |
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 37 of file AtPatternLine.cxx.
|
overridevirtual |
Define based on points.
Will set-up the pattern using the vector of XYZPoints. Assumes the size of points is equal to fNumPoints
| [in] | points | 3D points to use when defining the pattern |
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 53 of file AtPatternLine.cxx.
|
overridevirtual |
Closest distance to pattern.
| [in] | point | Point to get the distance from. |
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 43 of file AtPatternLine.cxx.
|
overrideprotectedvirtual |
Called by other versions of FitPattern. If pointCharge is not empty does charge weighted fit. Sets fPatternPar, fChi2, and fNFree
Implements AtPatterns::AtPattern.
Definition at line 79 of file AtPatternLine.cxx.
|
inline |
Definition at line 35 of file AtPatternLine.h.
|
overridevirtual |
Get visual representation of pattern.
Calls GetEveLine(double tMin, double tMax, int n) with reasonable defaults for the shape
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 20 of file AtPatternLine.cxx.
| TEveLine * AtPatternLine::GetEveLine | ( | Double_t | rMax = 250 | ) | const |
Definition at line 175 of file AtPatternLine.cxx.
|
inline |
Definition at line 34 of file AtPatternLine.h.
|
overridevirtual |
Get point on line at z.
Get point on line at z. If the line is parallel to Z, then return then the parameter passed has not defined physical interpretation
| [in] | z | Location of point at z [mm] |
Implements AtPatterns::AtPattern.
Reimplemented in AtPatterns::AtPatternRay.
Definition at line 74 of file AtPatternLine.cxx.
|
protected |
Definition at line 198 of file AtPatternLine.cxx.
|
protected |
Get the parameter closes to compPoint.
The clossest point on the line to compPoint is then GetPointAt(return value)
| [in] | The | point to compare the line to |
Definition at line 32 of file AtPatternLine.cxx.
1.8.18