PandaRoot
PndEmcApdHit Class Reference

#include <PndEmcApdHit.h>

Inheritance diagram for PndEmcApdHit:

Public Member Functions

 PndEmcApdHit ()
 
 PndEmcApdHit (Int_t trackid, Int_t id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z)
 
 PndEmcApdHit (Int_t trackid, Int_t id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z, Int_t npoint, Int_t pointIndex[10])
 
 PndEmcApdHit (Int_t trackid, Int_t id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z, std::vector< PndEmcApdPoint *> PointList)
 
 PndEmcApdHit (const PndEmcApdHit &)
 
virtual ~PndEmcApdHit ()
 
virtual void Print (const Option_t *opt="") const
 
virtual void SetEnergy (Double32_t energy)
 
virtual void SetTime (Double32_t time)
 
virtual Double_t GetEnergy () const
 
virtual Double_t GetTime () const
 
Float_t GetTheta () const
 
Float_t GetPhi () const
 
Short_t GetModule () const
 
Short_t GetRow () const
 
Short_t GetCrystal () const
 
Short_t GetCopy () const
 
Short_t GetXPad () const
 
Short_t GetYPad () const
 
Int_t GetNPoints () const
 
Int_t GetMCIndex (Short_t ind) const
 
std::vector< PndEmcApdPoint * > & GetPointList ()
 

Protected Attributes

Double32_t fTime
 
Double32_t fEnergy
 
Int_t fPointIndex [10]
 
std::vector< PndEmcApdPoint * > fPointList
 
Int_t fNPoints
 

Detailed Description

Definition at line 23 of file PndEmcApdHit.h.

Constructor & Destructor Documentation

◆ PndEmcApdHit() [1/5]

PndEmcApdHit::PndEmcApdHit ( )

Default constructor

◆ PndEmcApdHit() [2/5]

PndEmcApdHit::PndEmcApdHit ( Int_t  trackid,
Int_t  id,
Float_t  energy,
Float_t  time,
Float_t  X,
Float_t  Y,
Float_t  Z 
)

◆ PndEmcApdHit() [3/5]

PndEmcApdHit::PndEmcApdHit ( Int_t  trackid,
Int_t  id,
Float_t  energy,
Float_t  time,
Float_t  X,
Float_t  Y,
Float_t  Z,
Int_t  npoint,
Int_t  pointIndex[10] 
)

◆ PndEmcApdHit() [4/5]

PndEmcApdHit::PndEmcApdHit ( Int_t  trackid,
Int_t  id,
Float_t  energy,
Float_t  time,
Float_t  X,
Float_t  Y,
Float_t  Z,
std::vector< PndEmcApdPoint *>  PointList 
)

◆ PndEmcApdHit() [5/5]

PndEmcApdHit::PndEmcApdHit ( const PndEmcApdHit )

Copy

◆ ~PndEmcApdHit()

virtual PndEmcApdHit::~PndEmcApdHit ( )
virtual

Destructor

Member Function Documentation

◆ GetCopy()

Short_t PndEmcApdHit::GetCopy ( ) const
inline

Definition at line 55 of file PndEmcApdHit.h.

References GetXPad(), and GetYPad().

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

◆ GetCrystal()

Short_t PndEmcApdHit::GetCrystal ( ) const
inline

Definition at line 54 of file PndEmcApdHit.h.

54 { return (fDetectorID % 10000); };

◆ GetEnergy()

virtual Double_t PndEmcApdHit::GetEnergy ( ) const
inlinevirtual

Accessors

Definition at line 48 of file PndEmcApdHit.h.

References fEnergy.

48 { return fEnergy; };
Double32_t fEnergy
Definition: PndEmcApdHit.h:70

◆ GetMCIndex()

Int_t PndEmcApdHit::GetMCIndex ( Short_t  ind) const
inline

Definition at line 61 of file PndEmcApdHit.h.

References fPointIndex.

61 { return fPointIndex[ind]; };
Int_t fPointIndex[10]
Definition: PndEmcApdHit.h:71

◆ GetModule()

Short_t PndEmcApdHit::GetModule ( ) const
inline

Definition at line 52 of file PndEmcApdHit.h.

52 { return (fDetectorID / 100000000); };

◆ GetNPoints()

Int_t PndEmcApdHit::GetNPoints ( ) const
inline

Definition at line 60 of file PndEmcApdHit.h.

References fNPoints.

60 { return fNPoints; };
Int_t fNPoints
Definition: PndEmcApdHit.h:76

◆ GetPhi()

Float_t PndEmcApdHit::GetPhi ( ) const
inline

Definition at line 51 of file PndEmcApdHit.h.

References CAMath::ATan2().

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

◆ GetPointList()

std::vector<PndEmcApdPoint *>& PndEmcApdHit::GetPointList ( )
inline

Definition at line 64 of file PndEmcApdHit.h.

References fPointList.

64 { return fPointList; }
std::vector< PndEmcApdPoint * > fPointList
Definition: PndEmcApdHit.h:75

◆ GetRow()

Short_t PndEmcApdHit::GetRow ( ) const
inline

Definition at line 53 of file PndEmcApdHit.h.

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

◆ GetTheta()

Float_t PndEmcApdHit::GetTheta ( ) const
inline

Definition at line 50 of file PndEmcApdHit.h.

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

50 { 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)

◆ GetTime()

virtual Double_t PndEmcApdHit::GetTime ( ) const
inlinevirtual

Definition at line 49 of file PndEmcApdHit.h.

References fTime.

49 { return fTime; };
Double32_t fTime
Definition: PndEmcApdHit.h:69

◆ GetXPad()

Short_t PndEmcApdHit::GetXPad ( ) const

Referenced by GetCopy().

◆ GetYPad()

Short_t PndEmcApdHit::GetYPad ( ) const

Referenced by GetCopy().

◆ Print()

virtual void PndEmcApdHit::Print ( const Option_t *  opt = "") const
virtual

Output to screen

◆ SetEnergy()

virtual void PndEmcApdHit::SetEnergy ( Double32_t  energy)
inlinevirtual

Modifiers

Definition at line 44 of file PndEmcApdHit.h.

References fEnergy.

44 { fEnergy = energy; };
Double32_t fEnergy
Definition: PndEmcApdHit.h:70

◆ SetTime()

virtual void PndEmcApdHit::SetTime ( Double32_t  time)
inlinevirtual

Definition at line 45 of file PndEmcApdHit.h.

References fTime.

45 { fTime = time; };
Double32_t fTime
Definition: PndEmcApdHit.h:69

Member Data Documentation

◆ fEnergy

Double32_t PndEmcApdHit::fEnergy
protected

Definition at line 70 of file PndEmcApdHit.h.

Referenced by GetEnergy(), and SetEnergy().

◆ fNPoints

Int_t PndEmcApdHit::fNPoints
protected

Definition at line 76 of file PndEmcApdHit.h.

Referenced by GetNPoints().

◆ fPointIndex

Int_t PndEmcApdHit::fPointIndex[10]
protected

Definition at line 71 of file PndEmcApdHit.h.

Referenced by GetMCIndex().

◆ fPointList

std::vector<PndEmcApdPoint *> PndEmcApdHit::fPointList
protected

Definition at line 75 of file PndEmcApdHit.h.

Referenced by GetPointList().

◆ fTime

Double32_t PndEmcApdHit::fTime
protected

Definition at line 69 of file PndEmcApdHit.h.

Referenced by GetTime(), and SetTime().


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