PandaRoot
PndLine Class Reference

#include <PndLine.h>

Public Member Functions

 PndLine ()
 
 PndLine (FairHit *h1, FairHit *h2)
 
 PndLine (TVector3 &base, TVector3 &dir)
 
 PndLine (TVector3 h1, Int_t layer)
 
virtual ~PndLine ()
 
void Print (Bool_t withDirVec=kFALSE)
 
FairTrackParP plot (Double_t zVal1, Double_t zVal2)
 
TVector3 getP1 ()
 
TVector3 getP2 ()
 
TVector3 getDir ()
 
bool operator< (const PndLine &) const
 
Double_t getZAngle ()
 
Int_t getRating ()
 
void incrementRating ()
 
void setRating (Int_t r)
 
TVector3 getPerpendicular (PndLine l2)
 
Double_t getDistTo (TVector3 p)
 

Detailed Description

Definition at line 23 of file PndLine.h.

Constructor & Destructor Documentation

◆ PndLine() [1/4]

PndLine::PndLine ( )
inline

Definition at line 25 of file PndLine.h.

25 : fP1(), fP2(), fRating(1) {}

◆ PndLine() [2/4]

PndLine::PndLine ( FairHit *  h1,
FairHit *  h2 
)

◆ PndLine() [3/4]

PndLine::PndLine ( TVector3 &  base,
TVector3 &  dir 
)

◆ PndLine() [4/4]

PndLine::PndLine ( TVector3  h1,
Int_t  layer 
)

◆ ~PndLine()

virtual PndLine::~PndLine ( )
virtual

Member Function Documentation

◆ getDir()

TVector3 PndLine::getDir ( )
inline

Definition at line 34 of file PndLine.h.

34 { return fP1 - fP2; }

◆ getDistTo()

Double_t PndLine::getDistTo ( TVector3  p)

◆ getP1()

TVector3 PndLine::getP1 ( )
inline

Definition at line 32 of file PndLine.h.

32 { return fP1; }

◆ getP2()

TVector3 PndLine::getP2 ( )
inline

Definition at line 33 of file PndLine.h.

33 { return fP2; }

◆ getPerpendicular()

TVector3 PndLine::getPerpendicular ( PndLine  l2)

◆ getRating()

Int_t PndLine::getRating ( )
inline

Definition at line 40 of file PndLine.h.

40 { return fRating; }

◆ getZAngle()

Double_t PndLine::getZAngle ( )
inline

Definition at line 39 of file PndLine.h.

References CAMath::Abs(), and CAMath::ASin().

39 { return TMath::Abs(TMath::ASin(getDir()[2] / getDir().Mag()) * TMath::RadToDeg()); }
static T ASin(const T &x)
TVector3 getDir()
Definition: PndLine.h:34
static T Abs(const T &x)
Definition: PndCAMath.h:56

◆ incrementRating()

void PndLine::incrementRating ( )
inline

Definition at line 41 of file PndLine.h.

41 { fRating++; }

◆ operator<()

bool PndLine::operator< ( const PndLine ) const
inline

Definition at line 35 of file PndLine.h.

36  {
37  return kTRUE; // dummy sorting operator for map
38  }

◆ plot()

FairTrackParP PndLine::plot ( Double_t  zVal1,
Double_t  zVal2 
)

◆ Print()

void PndLine::Print ( Bool_t  withDirVec = kFALSE)

◆ setRating()

void PndLine::setRating ( Int_t  r)
inline

Definition at line 42 of file PndLine.h.

42 { fRating = r; }

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