PandaRoot
PndEmcHit Class Reference

represents the deposited energy of one emc crystal from simulation More...

#include <PndEmcHit.h>

Inheritance diagram for PndEmcHit:

Public Member Functions

 PndEmcHit ()
 
 PndEmcHit (Int_t trackid, Int_t id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z)
 
 PndEmcHit (Int_t trackid, Int_t id, Float_t energy, Float_t time, Float_t X, Float_t Y, Float_t Z, std::vector< Int_t > McTruth, FairMultiLinkedData enteringTrack, FairMultiLinkedData exitingTrack, std::set< Int_t > clusterList)
 
 PndEmcHit (const PndEmcHit &)
 
virtual ~PndEmcHit ()
 
void Print (const Option_t *opt="") const
 
void SetEnergy (Double32_t energy)
 
void SetTime (Double32_t time)
 
void SetDepositedEnergyMap (const std::map< Int_t, Double_t > &depEnergy)
 
void AddDepositedEnergy (Int_t mcId, Double_t depEnergy)
 
Double_t GetEnergy () const
 
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
 
FairMultiLinkedData GetTrackEntering () const
 
FairMultiLinkedData GetTrackExiting () const
 
const std::vector< Int_t > & GetMcList ()
 
std::set< Int_t > GetClusterList ()
 
void AddClusterID (int clusterId)
 
std::map< Int_t, Double_t > GetDepositedEnergyMap () const
 

Protected Attributes

Double32_t fEnergy
 
std::vector< Int_t > fMcList
 
FairMultiLinkedData fTrackEntering
 
FairMultiLinkedData fTrackExiting
 
std::set< Int_t > fClusterList
 
std::map< Int_t, Double_t > fDepositedEnergy
 

Detailed Description

represents the deposited energy of one emc crystal from simulation

Definition at line 28 of file PndEmcHit.h.

Constructor & Destructor Documentation

◆ PndEmcHit() [1/4]

PndEmcHit::PndEmcHit ( )

Default constructor

◆ PndEmcHit() [2/4]

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

◆ PndEmcHit() [3/4]

PndEmcHit::PndEmcHit ( Int_t  trackid,
Int_t  id,
Float_t  energy,
Float_t  time,
Float_t  X,
Float_t  Y,
Float_t  Z,
std::vector< Int_t >  McTruth,
FairMultiLinkedData  enteringTrack,
FairMultiLinkedData  exitingTrack,
std::set< Int_t >  clusterList 
)

◆ PndEmcHit() [4/4]

PndEmcHit::PndEmcHit ( const PndEmcHit )

Copy

◆ ~PndEmcHit()

virtual PndEmcHit::~PndEmcHit ( )
virtual

Destructor

Member Function Documentation

◆ AddClusterID()

void PndEmcHit::AddClusterID ( int  clusterId)
inline

Definition at line 71 of file PndEmcHit.h.

References fClusterList.

71 { fClusterList.insert(clusterId); }
std::set< Int_t > fClusterList
Definition: PndEmcHit.h:81

◆ AddDepositedEnergy()

void PndEmcHit::AddDepositedEnergy ( Int_t  mcId,
Double_t  depEnergy 
)
inline

Definition at line 51 of file PndEmcHit.h.

References fDepositedEnergy.

51 { fDepositedEnergy[mcId] += depEnergy; }
std::map< Int_t, Double_t > fDepositedEnergy
Definition: PndEmcHit.h:82

◆ GetClusterList()

std::set<Int_t> PndEmcHit::GetClusterList ( )
inline

Definition at line 69 of file PndEmcHit.h.

References fClusterList.

69 { return fClusterList; }
std::set< Int_t > fClusterList
Definition: PndEmcHit.h:81

◆ GetCopy()

Short_t PndEmcHit::GetCopy ( ) const
inline

Definition at line 61 of file PndEmcHit.h.

References GetXPad(), and GetYPad().

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

◆ GetCrystal()

Short_t PndEmcHit::GetCrystal ( ) const
inline

Definition at line 60 of file PndEmcHit.h.

60 { return (fDetectorID % 10000); };

◆ GetDepositedEnergyMap()

std::map<Int_t, Double_t> PndEmcHit::GetDepositedEnergyMap ( ) const
inline

Definition at line 73 of file PndEmcHit.h.

References fDepositedEnergy, and fEnergy.

73 { return fDepositedEnergy; };
std::map< Int_t, Double_t > fDepositedEnergy
Definition: PndEmcHit.h:82

◆ GetEnergy()

Double_t PndEmcHit::GetEnergy ( ) const
inline

Accessors

Definition at line 54 of file PndEmcHit.h.

References fEnergy.

54 { return fEnergy; };
Double32_t fEnergy
Definition: PndEmcHit.h:73

◆ GetMcList()

const std::vector<Int_t>& PndEmcHit::GetMcList ( )
inline

Definition at line 68 of file PndEmcHit.h.

References fMcList.

68 { return fMcList; }
std::vector< Int_t > fMcList
Definition: PndEmcHit.h:78

◆ GetModule()

Short_t PndEmcHit::GetModule ( ) const
inline

Definition at line 58 of file PndEmcHit.h.

58 { return (fDetectorID / 100000000); };

◆ GetPhi()

Float_t PndEmcHit::GetPhi ( ) const
inline

Definition at line 57 of file PndEmcHit.h.

References CAMath::ATan2().

57 { 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 PndEmcHit::GetRow ( ) const
inline

Definition at line 59 of file PndEmcHit.h.

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

◆ GetTheta()

Float_t PndEmcHit::GetTheta ( ) const
inline

Definition at line 56 of file PndEmcHit.h.

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

56 { 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()

Double_t PndEmcHit::GetTime ( ) const
inline

Definition at line 55 of file PndEmcHit.h.

55 { return fTimeStamp / 1E9; };

◆ GetTrackEntering()

FairMultiLinkedData PndEmcHit::GetTrackEntering ( ) const
inline

Definition at line 65 of file PndEmcHit.h.

References fTrackEntering.

65 { return fTrackEntering; }
FairMultiLinkedData fTrackEntering
Definition: PndEmcHit.h:79

◆ GetTrackExiting()

FairMultiLinkedData PndEmcHit::GetTrackExiting ( ) const
inline

Definition at line 66 of file PndEmcHit.h.

References fTrackExiting.

66 { return fTrackExiting; }
FairMultiLinkedData fTrackExiting
Definition: PndEmcHit.h:80

◆ GetXPad()

Short_t PndEmcHit::GetXPad ( ) const

Referenced by GetCopy().

◆ GetYPad()

Short_t PndEmcHit::GetYPad ( ) const

Referenced by GetCopy().

◆ Print()

void PndEmcHit::Print ( const Option_t *  opt = "") const

Output to screen

◆ SetDepositedEnergyMap()

void PndEmcHit::SetDepositedEnergyMap ( const std::map< Int_t, Double_t > &  depEnergy)
inline

Definition at line 50 of file PndEmcHit.h.

References fDepositedEnergy.

50 { fDepositedEnergy = depEnergy; }
std::map< Int_t, Double_t > fDepositedEnergy
Definition: PndEmcHit.h:82

◆ SetEnergy()

void PndEmcHit::SetEnergy ( Double32_t  energy)
inline

Modifiers

Definition at line 48 of file PndEmcHit.h.

References fEnergy.

48 { fEnergy = energy; };
Double32_t fEnergy
Definition: PndEmcHit.h:73

◆ SetTime()

void PndEmcHit::SetTime ( Double32_t  time)
inline

Definition at line 49 of file PndEmcHit.h.

49 { fTimeStamp = time * 1E9; };

Member Data Documentation

◆ fClusterList

std::set<Int_t> PndEmcHit::fClusterList
protected

Definition at line 81 of file PndEmcHit.h.

Referenced by AddClusterID(), and GetClusterList().

◆ fDepositedEnergy

std::map<Int_t, Double_t> PndEmcHit::fDepositedEnergy
protected

Definition at line 82 of file PndEmcHit.h.

Referenced by AddDepositedEnergy(), GetDepositedEnergyMap(), and SetDepositedEnergyMap().

◆ fEnergy

Double32_t PndEmcHit::fEnergy
protected

Definition at line 73 of file PndEmcHit.h.

Referenced by GetDepositedEnergyMap(), GetEnergy(), and SetEnergy().

◆ fMcList

std::vector<Int_t> PndEmcHit::fMcList
protected

Definition at line 78 of file PndEmcHit.h.

Referenced by GetMcList().

◆ fTrackEntering

FairMultiLinkedData PndEmcHit::fTrackEntering
protected

Definition at line 79 of file PndEmcHit.h.

Referenced by GetTrackEntering().

◆ fTrackExiting

FairMultiLinkedData PndEmcHit::fTrackExiting
protected

Definition at line 80 of file PndEmcHit.h.

Referenced by GetTrackExiting().


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