PandaRoot
PndEmcApdPoint Class Reference

#include <PndEmcApdPoint.h>

Inheritance diagram for PndEmcApdPoint:

Public Member Functions

 PndEmcApdPoint ()
 
 PndEmcApdPoint (Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Short_t flag)
 
 PndEmcApdPoint (const PndEmcApdPoint &point)
 
virtual ~PndEmcApdPoint ()
 
Double_t GetTheta () const
 
Double_t GetPhi () const
 
Short_t GetFlag () const
 
Short_t GetXPad () const
 
Short_t GetYPad () const
 
void Position (TVector3 &pos)
 
void Momentum (TVector3 &mom)
 
Short_t GetModule () const
 
Short_t GetRow () const
 
Short_t GetCrystal () const
 
Short_t GetCopy () const
 
void SetModule (Short_t mod)
 
void SetRow (Short_t row)
 
void SetCrystal (Short_t crys)
 
void SetFlag (Short_t flag)
 
virtual void Print (const Option_t *opt) const
 

Protected Attributes

Short_t nModule
 
Short_t nRow
 
Short_t nCrystal
 
Short_t nCopy
 
Short_t fFlag
 

Detailed Description

Definition at line 14 of file PndEmcApdPoint.h.

Constructor & Destructor Documentation

◆ PndEmcApdPoint() [1/3]

PndEmcApdPoint::PndEmcApdPoint ( )

Default constructor

◆ PndEmcApdPoint() [2/3]

PndEmcApdPoint::PndEmcApdPoint ( Int_t  trackID,
Int_t  detID,
Int_t  evtID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Short_t  mod,
Short_t  row,
Short_t  crys,
Short_t  copy,
Short_t  flag 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posInCcoordinates at entrance to active volume [cm]
posOutCoordinates at exit of active volume [cm]
momInMomentum of track at entrance [GeV]
momOutMomentum of track at exit [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

◆ PndEmcApdPoint() [3/3]

PndEmcApdPoint::PndEmcApdPoint ( const PndEmcApdPoint point)

Copy constructor

◆ ~PndEmcApdPoint()

virtual PndEmcApdPoint::~PndEmcApdPoint ( )
virtual

Destructor

Member Function Documentation

◆ GetCopy()

Short_t PndEmcApdPoint::GetCopy ( ) const
inline

Definition at line 54 of file PndEmcApdPoint.h.

54 { return ((fDetectorID / 10000) % 100); };

◆ GetCrystal()

Short_t PndEmcApdPoint::GetCrystal ( ) const
inline

Definition at line 53 of file PndEmcApdPoint.h.

53 { return (fDetectorID % 10000); };

◆ GetFlag()

Short_t PndEmcApdPoint::GetFlag ( ) const
inline

Definition at line 44 of file PndEmcApdPoint.h.

References fFlag, GetXPad(), and GetYPad().

44 { return fFlag; };

◆ GetModule()

Short_t PndEmcApdPoint::GetModule ( ) const
inline

Definition at line 51 of file PndEmcApdPoint.h.

51 { return (fDetectorID / 100000000); };

◆ GetPhi()

Double_t PndEmcApdPoint::GetPhi ( ) const
inline

Definition at line 43 of file PndEmcApdPoint.h.

References CAMath::ATan2().

43 { return fX == 0.0 && fY == 0.0 ? 0.0 : TMath::ATan2(fY, fX) * TMath::RadToDeg(); };
static T ATan2(const T &y, const T &x)

◆ GetRow()

Short_t PndEmcApdPoint::GetRow ( ) const
inline

Definition at line 52 of file PndEmcApdPoint.h.

52 { return ((fDetectorID / 1000000) % 100); };

◆ GetTheta()

Double_t PndEmcApdPoint::GetTheta ( ) const
inline

Accessors

Definition at line 42 of file PndEmcApdPoint.h.

References CAMath::ATan2(), and sqrt().

42 { return fX == 0.0 && fY == 0.0 && fZ == 0.0 ? 0.0 : TMath::ATan2(sqrt(fX * fX + fY * fY), fZ) * TMath::RadToDeg(); };
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:28
static T ATan2(const T &y, const T &x)

◆ GetXPad()

Short_t PndEmcApdPoint::GetXPad ( ) const

Referenced by GetFlag().

◆ GetYPad()

Short_t PndEmcApdPoint::GetYPad ( ) const

Referenced by GetFlag().

◆ Momentum()

void PndEmcApdPoint::Momentum ( TVector3 &  mom)
inline

Definition at line 50 of file PndEmcApdPoint.h.

50 { mom.SetXYZ(fPx, fPy, fPz); };

◆ Position()

void PndEmcApdPoint::Position ( TVector3 &  pos)
inline

Definition at line 49 of file PndEmcApdPoint.h.

49 { pos.SetXYZ(fX, fY, fZ); };

◆ Print()

virtual void PndEmcApdPoint::Print ( const Option_t *  opt) const
virtual

Output to screen

Referenced by SetFlag().

◆ SetCrystal()

void PndEmcApdPoint::SetCrystal ( Short_t  crys)
inline

Definition at line 58 of file PndEmcApdPoint.h.

References nCrystal.

58 { nCrystal = crys; };

◆ SetFlag()

void PndEmcApdPoint::SetFlag ( Short_t  flag)
inline

Definition at line 59 of file PndEmcApdPoint.h.

References fFlag, and Print().

59 { fFlag = flag; };

◆ SetModule()

void PndEmcApdPoint::SetModule ( Short_t  mod)
inline

Modifiers

Definition at line 56 of file PndEmcApdPoint.h.

References nModule.

56 { nModule = mod; };

◆ SetRow()

void PndEmcApdPoint::SetRow ( Short_t  row)
inline

Definition at line 57 of file PndEmcApdPoint.h.

References nRow.

57 { nRow = row; };

Member Data Documentation

◆ fFlag

Short_t PndEmcApdPoint::fFlag
protected

Definition at line 69 of file PndEmcApdPoint.h.

Referenced by GetFlag(), and SetFlag().

◆ nCopy

Short_t PndEmcApdPoint::nCopy
protected

Definition at line 68 of file PndEmcApdPoint.h.

◆ nCrystal

Short_t PndEmcApdPoint::nCrystal
protected

Definition at line 67 of file PndEmcApdPoint.h.

Referenced by SetCrystal().

◆ nModule

Short_t PndEmcApdPoint::nModule
protected

Definition at line 65 of file PndEmcApdPoint.h.

Referenced by SetModule().

◆ nRow

Short_t PndEmcApdPoint::nRow
protected

Definition at line 66 of file PndEmcApdPoint.h.

Referenced by SetRow().


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