PandaRoot
PndLineApproximation Class Reference

#include <PndLineApproximation.h>

Public Member Functions

 PndLineApproximation (vector< PndFtsHit *> hits)
 
 PndLineApproximation ()
 
 PndLineApproximation (PndLine lineApprox, vector< PndFtsHit *> correctedHits)
 
 PndLineApproximation (PndLine lineApprox, vector< PndFtsHit *> ch1, vector< PndFtsHit *> ch2)
 
virtual ~PndLineApproximation ()
 
PndLinegetLine ()
 
void setLine (PndLine l)
 
vector< PndFtsHit * > getHits ()
 
void setHits (vector< PndFtsHit *> h)
 
PndLineApproximation newApproximation (PndLineApproximation &approx2)
 
PndLine linearRegression (vector< PndFtsHit *> hits)
 
PndLine linearRegressionXZ (vector< PndFtsHit *> hits)
 
PndLine linearRegressionZX (vector< PndFtsHit *> hits)
 
PndLine linearRegressionYZ (vector< PndFtsHit *> hits)
 
PndLine linearRegressionZY (vector< PndFtsHit *> hits)
 
PndTrack plot (Double_t zVal1, Double_t zVal2, TClonesArray *hitArr)
 
void correctHits3DAndAdd (vector< PndFtsHit *> correctedHits)
 
void setYInfo (Bool_t i)
 
Bool_t HasYInfo ()
 

Detailed Description

Definition at line 23 of file PndLineApproximation.h.

Constructor & Destructor Documentation

◆ PndLineApproximation() [1/4]

PndLineApproximation::PndLineApproximation ( vector< PndFtsHit *>  hits)
inline

Definition at line 25 of file PndLineApproximation.h.

25 : fLineApprox(linearRegression(hits)), fCorrectedHits(hits), hasYInfo(kTRUE) {}
PndLine linearRegression(vector< PndFtsHit *> hits)

◆ PndLineApproximation() [2/4]

PndLineApproximation::PndLineApproximation ( )
inline

Definition at line 26 of file PndLineApproximation.h.

26 {}

◆ PndLineApproximation() [3/4]

PndLineApproximation::PndLineApproximation ( PndLine  lineApprox,
vector< PndFtsHit *>  correctedHits 
)
inline

Definition at line 27 of file PndLineApproximation.h.

27 : fLineApprox(lineApprox), fCorrectedHits(correctedHits) {}

◆ PndLineApproximation() [4/4]

PndLineApproximation::PndLineApproximation ( PndLine  lineApprox,
vector< PndFtsHit *>  ch1,
vector< PndFtsHit *>  ch2 
)

◆ ~PndLineApproximation()

virtual PndLineApproximation::~PndLineApproximation ( )
virtual

Member Function Documentation

◆ correctHits3DAndAdd()

void PndLineApproximation::correctHits3DAndAdd ( vector< PndFtsHit *>  correctedHits)

◆ getHits()

vector<PndFtsHit *> PndLineApproximation::getHits ( )
inline

Definition at line 32 of file PndLineApproximation.h.

32 { return fCorrectedHits; }

◆ getLine()

PndLine& PndLineApproximation::getLine ( )
inline

Definition at line 30 of file PndLineApproximation.h.

30 { return fLineApprox; }

◆ HasYInfo()

Bool_t PndLineApproximation::HasYInfo ( )
inline

Definition at line 43 of file PndLineApproximation.h.

43 { return hasYInfo; }

◆ linearRegression()

PndLine PndLineApproximation::linearRegression ( vector< PndFtsHit *>  hits)

◆ linearRegressionXZ()

PndLine PndLineApproximation::linearRegressionXZ ( vector< PndFtsHit *>  hits)

◆ linearRegressionYZ()

PndLine PndLineApproximation::linearRegressionYZ ( vector< PndFtsHit *>  hits)

◆ linearRegressionZX()

PndLine PndLineApproximation::linearRegressionZX ( vector< PndFtsHit *>  hits)

◆ linearRegressionZY()

PndLine PndLineApproximation::linearRegressionZY ( vector< PndFtsHit *>  hits)

◆ newApproximation()

PndLineApproximation PndLineApproximation::newApproximation ( PndLineApproximation approx2)

◆ plot()

PndTrack PndLineApproximation::plot ( Double_t  zVal1,
Double_t  zVal2,
TClonesArray *  hitArr 
)

◆ setHits()

void PndLineApproximation::setHits ( vector< PndFtsHit *>  h)
inline

Definition at line 33 of file PndLineApproximation.h.

33 { fCorrectedHits = h; }

◆ setLine()

void PndLineApproximation::setLine ( PndLine  l)
inline

Definition at line 31 of file PndLineApproximation.h.

31 { fLineApprox = l; }

◆ setYInfo()

void PndLineApproximation::setYInfo ( Bool_t  i)
inline

Definition at line 42 of file PndLineApproximation.h.

References i.

42 { hasYInfo = i; }
unsigned int i
Definition: P4_F32vec4.h:21

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