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 35 of file PndLine.h.

Constructor & Destructor Documentation

◆ PndLine() [1/4]

PndLine::PndLine ( )
inline

Definition at line 37 of file PndLine.h.

37 : 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 46 of file PndLine.h.

46 { return fP1 - fP2; }

◆ getDistTo()

Double_t PndLine::getDistTo ( TVector3  p)

◆ getP1()

TVector3 PndLine::getP1 ( )
inline

Definition at line 44 of file PndLine.h.

44 { return fP1; }

◆ getP2()

TVector3 PndLine::getP2 ( )
inline

Definition at line 45 of file PndLine.h.

45 { return fP2; }

◆ getPerpendicular()

TVector3 PndLine::getPerpendicular ( PndLine  l2)

◆ getRating()

Int_t PndLine::getRating ( )
inline

Definition at line 52 of file PndLine.h.

52 { return fRating; }

◆ getZAngle()

Double_t PndLine::getZAngle ( )
inline

Definition at line 51 of file PndLine.h.

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

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

◆ incrementRating()

void PndLine::incrementRating ( )
inline

Definition at line 53 of file PndLine.h.

53 { fRating++; }

◆ operator<()

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

Definition at line 47 of file PndLine.h.

48  {
49  return kTRUE; // dummy sorting operator for map
50  }

◆ 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 54 of file PndLine.h.

54 { fRating = r; }

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