18 #include <TClonesArray.h>
19 #include <TObjArray.h>
20 #include <TRefArray.h>
31 #define TREELINE_MAX_NUM_LAYERS 8
66 QwTreeLine(
int _a_beg,
int _a_end ,
int _b_beg,
int _b_end);
130 void Print(
const Option_t* options = 0)
const;
191 std::pair<double,double>
CalculateDistance(
int row,
double width,
unsigned int bins,
double error);
195 std::vector<QwTreeLine*> list;
198 list.push_back(treeline);
199 treeline = treeline->
next;
245 #endif // QWTREELINE_H
double fChi
chi squared(?)
QwTreeLine QwTrackingTreeLine
bool IsNotVoid() const
Is this tree line not void?
int fHashArray[2 *MAX_LAYERS]
///< all hits that satisfy road requirement
double fOffset
track offset
const std::vector< QwHit * > & GetListOfHits() const
Get the list of hits.
void SetNotVoid(const bool isvoid=false)
void SetMatchingPattern(std::vector< int > &box)
Set the matching pattern.
bool fIsUsed
has been used (part of parttrack)
void DeleteHits()
Delete the hits in the list.
int fR3Offset
offset of demultiplexed group of 8
Int_t GetNumberOfHits() const
Get the number of hits.
bool fIsVoid
has been found void
QwHit * GetBestWireHit(double offset=0.0)
Get the hit with the smallest drift distance.
double fAverageResidual
///< link to next list element
double GetResolutionLast(const double binwidth)
Returns resolution at the last detector plane.
std::vector< QwHit * > fQwHits
List of hits in this tree line.
double fCov[3]
covariance matrix of offset and slope
double GetAverageResidual() const
Get the average residuals.
double GetOffset() const
Get the offset.
double GetChiWeight()
Get the weighted chi^2.
void SetSlope(const double slope)
Set the slope.
VQwTrackingElementContainer< QwTreeLine > QwTreeLineContainer
double GetPositionLast(const double binwidth)
Returns position at the last detector plane.
void SetVoid(const bool isvoid=true)
bool IsUsed() const
Is this tree line used?
const double * GetCov() const
Get the covariance.
int fR3LastWire
first and last wire in group of 8
void SetAverageResidual(const double residual)
Set the average residuals.
Memory management structure to count objects.
void AddHitList(const std::vector< QwHit * > &fQwHits)
Add a list of hits.
Definition of the hit patterns used in the tracking tree search.
void SetChi(const double chi)
Set the chi^2.
void SetValid(const bool isvoid=false)
QwHit * GetHit(int i=0)
Get a specific hit.
void SetNotUsed(const bool isused=false)
Draft skeleton for the decoding-to-QTR interface class.
double GetChi() const
Get the chi^2.
void Print(const Option_t *options=0) const
Memory management class to count object instantiations.
double GetPositionFirst(const double binwidth)
Returns position at the first detector plane.
int b_end
bin in last layer
int fNumHits
number of hits on this treeline
void SetOffset(const double offset)
Set the offset.
void Initialize()
Initialization.
bool IsNotUsed() const
Is this tree line not used?
double GetSlope() const
Get the slope.
bool IsVoid() const
Is this tree line void?
std::vector< int > fMatchingPattern
double GetResolutionFirst(const double binwidth)
Returns resolution at the first detector plane.
One-dimensional (u, v, or x) track stubs and associated hits.
int fNumMiss
number of planes without hits
std::pair< double, double > CalculateDistance(int row, double width, unsigned int bins, double error)
calculate the upper and lower bound of the drift distance give the row number
QwTreeLine()
Default constructor.
void SetCov(const double *cov)
Set the covariance.
void DeleteHit(const size_t i)
Delete a single hit.
friend std::ostream & operator<<(std::ostream &stream, const QwTreeLine &tl)
Output stream operator.
QwTreeLine & operator=(const QwTreeLine &treeline)
Assignment operator.
Definition of virtual base class for all tracking elements.
void AddHit(const QwHit *hit)
Add a single hit.
virtual ~QwTreeLine()
Destructor.
bool IsValid() const
Is this tree line valid?
QwHit * fHits[2 *MAX_LAYERS]
void SetAverageResidual()
Calculate and set the average residuals.
Hit structure uniquely defining each hit.
void SetUsed(const bool isused=true)
int a_end
bin in first layer
std::vector< QwTreeLine * > GetListAsVector() const
Get vector for linked list of treelines.
Int_t fNQwHits
Number of hits in this tree line.
double CalculateAverageResidual()
Calculate the average residuals.
void ClearHits()
Clear the list of hits without deleting.
Virtual base class for all tracking elements.