EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrtHit Class Reference

#include <fun4all_eicdetectors/blob/master/simulation/g4simulation/g4eicdirc/PrtHit.h>

+ Inheritance diagram for PrtHit:
+ Collaboration diagram for PrtHit:

Public Member Functions

 PrtHit ()
 
 ~PrtHit ()
 
Int_t GetParticleId ()
 
Int_t GetParentParticleId ()
 
Int_t GetNreflectionsInPrizm ()
 
Long64_t GetPathInPrizm ()
 
TVector3 GetLocalPos ()
 
TVector3 GetGlobalPos ()
 
TVector3 GetDigiPos ()
 
TVector3 GetMomentum ()
 
TVector3 GetPosition ()
 
TVector3 GetMomentumAtBar () const
 
TVector3 GetPositionAtBar () const
 
Int_t GetMcpId ()
 
Int_t GetPixelId ()
 
Int_t GetChannel ()
 
Int_t GetMultiplicity ()
 
Double_t GetLeadTime ()
 
Double_t GetTotTime ()
 
void SetParticleId (Int_t val)
 
void SetParentParticleId (Int_t val)
 
void SetNreflectionsInPrizm (Int_t val)
 
void SetPathInPrizm (Long64_t val)
 
void SetLocalPos (TVector3 val)
 
void SetGlobalPos (TVector3 val)
 
void SetDigiPos (TVector3 val)
 
void SetMomentum (TVector3 val)
 
void SetPosition (TVector3 val)
 
void SetMomentumAtBar (TVector3 val)
 
void SetPositionAtBar (TVector3 val)
 
void SetMcpId (Int_t val)
 
void SetPixelId (Int_t val)
 
void SetChannel (Int_t val)
 
void SetMultiplicity (Int_t val)
 
void SetLeadTime (Double_t val)
 
void SetTotTime (Double_t val)
 
- Public Member Functions inherited from PHG4Hitv1
 PHG4Hitv1 ()=default
 
 PHG4Hitv1 (const PHG4Hit *g4hit)
 
 ~PHG4Hitv1 () override=default
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
float get_x (const int i) const override
 
float get_y (const int i) const override
 
float get_z (const int i) const override
 
float get_t (const int i) const override
 
float get_edep () const override
 
PHG4HitDefs::keytype get_hit_id () const override
 
int get_detid () const override
 
int get_shower_id () const override
 
int get_trkid () const override
 
void set_x (const int i, const float f) override
 
void set_y (const int i, const float f) override
 
void set_z (const int i, const float f) override
 
void set_t (const int i, const float f) override
 
void set_edep (const float f) override
 
void set_hit_id (const PHG4HitDefs::keytype i) override
 
void set_shower_id (const int i) override
 
void set_trkid (const int i) override
 
void print () const override
 
bool has_property (const PROPERTY prop_id) const override
 
float get_property_float (const PROPERTY prop_id) const override
 
int get_property_int (const PROPERTY prop_id) const override
 
unsigned int get_property_uint (const PROPERTY prop_id) const override
 
void set_property (const PROPERTY prop_id, const float value) override
 
void set_property (const PROPERTY prop_id, const int value) override
 
void set_property (const PROPERTY prop_id, const unsigned int value) override
 
float get_px (const int i) const override
 
float get_py (const int i) const override
 
float get_pz (const int i) const override
 
float get_local_x (const int i) const override
 
float get_local_y (const int i) const override
 
float get_local_z (const int i) const override
 
float get_eion () const override
 
float get_light_yield () const override
 
float get_path_length () const override
 
unsigned int get_layer () const override
 
int get_scint_id () const override
 
int get_row () const override
 
int get_strip_z_index () const override
 
int get_strip_y_index () const override
 
int get_ladder_z_index () const override
 
int get_ladder_phi_index () const override
 
int get_index_i () const override
 
int get_index_j () const override
 
int get_index_k () const override
 
int get_index_l () const override
 
int get_hit_type () const override
 
void set_px (const int i, const float f) override
 
void set_py (const int i, const float f) override
 
void set_pz (const int i, const float f) override
 
void set_local_x (const int i, const float f) override
 
void set_local_y (const int i, const float f) override
 
void set_local_z (const int i, const float f) override
 
void set_eion (const float f) override
 
void set_light_yield (const float f) override
 
void set_path_length (const float f) override
 
void set_layer (const unsigned int i) override
 
void set_scint_id (const int i) override
 
void set_row (const int i) override
 
void set_strip_z_index (const int i) override
 
void set_strip_y_index (const int i) override
 
void set_ladder_z_index (const int i) override
 
void set_ladder_phi_index (const int i) override
 
void set_index_i (const int i) override
 
void set_index_j (const int i) override
 
void set_index_k (const int i) override
 
void set_index_l (const int i) override
 
void set_hit_type (const int i) override
 
- Public Member Functions inherited from PHG4Hit
 PHG4Hit ()
 
 ~PHG4Hit () override
 
void CopyFrom (const PHObject *phobj) override
 
virtual float get_avg_x () const
 
virtual float get_avg_y () const
 
virtual float get_avg_z () const
 
virtual float get_avg_t () const
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 

Protected Attributes

Int_t fParticleId
 
Int_t fParentParticleId
 
Int_t fNreflectionsInPrizm
 
Long64_t fPathInPrizm
 
TVector3 fLocalPos
 
TVector3 fGlobalPos
 
TVector3 fDigiPos
 
TVector3 fMomentum
 
TVector3 fPosition
 
TVector3 fMomBar
 
TVector3 fPosBar
 
Int_t fMcpId
 
Int_t fPixelId
 
Int_t fChannel
 
Int_t fMultiplicity
 
Double_t fLeadTime
 
Double_t fTotTime
 
- Protected Attributes inherited from PHG4Hitv1
float x [2] = {NAN, NAN}
 
float y [2] = {NAN, NAN}
 
float z [2] = {NAN, NAN}
 
float t [2] = {NAN, NAN}
 
PHG4HitDefs::keytype hitid = ULONG_LONG_MAX
 
int trackid = INT_MIN
 
int showerid = INT_MIN
 
float edep = NAN
 
prop_map_t prop_map
 container for additional property
 

Additional Inherited Members

- Public Types inherited from PHG4Hit
enum  PROPERTY {
  prop_eion = 1, prop_light_yield = 2, scint_gammas = 3, cerenkov_gammas = 4,
  prop_px_0 = 10, prop_px_1 = 11, prop_py_0 = 12, prop_py_1 = 13,
  prop_pz_0 = 14, prop_pz_1 = 15, prop_path_length = 16, prop_local_x_0 = 20,
  prop_local_x_1 = 21, prop_local_y_0 = 22, prop_local_y_1 = 23, prop_local_z_0 = 24,
  prop_local_z_1 = 25, prop_layer = 101, prop_scint_id = 102, prop_row = 103,
  prop_strip_z_index = 110, prop_strip_y_index = 111, prop_ladder_z_index = 112, prop_ladder_phi_index = 113,
  prop_stave_index = 114, prop_half_stave_index = 115, prop_module_index = 116, prop_chip_index = 117,
  prop_local_pos_x_0 = 118, prop_local_pos_y_0 = 119, prop_local_pos_z_0 = 120, prop_index_i = 121,
  prop_index_j = 122, prop_index_k = 123, prop_index_l = 124, prop_hit_type = 125,
  prop_local_pos_x_1 = 128, prop_local_pos_y_1 = 126, prop_local_pos_z_1 = 127, prop_MAX_NUMBER = UCHAR_MAX
}
 
enum  PROPERTY_TYPE { type_int = 1, type_uint = 2, type_float = 3, type_unknown = -1 }
 
- Static Public Member Functions inherited from PHG4Hit
static std::pair< const
std::string, PROPERTY_TYPE
get_property_info (PROPERTY prop_id)
 
static bool check_property (const PROPERTY prop_id, const PROPERTY_TYPE prop_type)
 
static std::string get_property_type (const PROPERTY_TYPE prop_type)
 
- Protected Types inherited from PHG4Hitv1
typedef uint8_t prop_id_t
 storage types for additional property
 
typedef uint32_t prop_storage_t
 
typedef std::map< prop_id_t,
prop_storage_t
prop_map_t
 
- Protected Member Functions inherited from PHG4Hitv1
unsigned int get_property_nocheck (const PROPERTY prop_id) const override
 
void set_property_nocheck (const PROPERTY prop_id, const unsigned int ui) override
 

Detailed Description

Definition at line 26 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 26 of file PrtHit.h

Constructor & Destructor Documentation

PrtHit::PrtHit ( )
PrtHit::~PrtHit ( )
inline

Definition at line 32 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 32 of file PrtHit.h

Member Function Documentation

Int_t PrtHit::GetChannel ( )
inline

Definition at line 51 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 51 of file PrtHit.h

References fChannel.

TVector3 PrtHit::GetDigiPos ( )
inline

Definition at line 43 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 43 of file PrtHit.h

References fDigiPos.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetGlobalPos ( )
inline

Definition at line 42 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 42 of file PrtHit.h

References fGlobalPos.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

Double_t PrtHit::GetLeadTime ( )
inline

Definition at line 53 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 53 of file PrtHit.h

References fLeadTime.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetLocalPos ( )
inline

Definition at line 41 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 41 of file PrtHit.h

References fLocalPos.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

Int_t PrtHit::GetMcpId ( )
inline

Definition at line 49 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 49 of file PrtHit.h

References fMcpId.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetMomentum ( )
inline

Definition at line 44 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 44 of file PrtHit.h

References fMomentum.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetMomentumAtBar ( ) const
inline

Definition at line 46 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 46 of file PrtHit.h

References fMomBar.

Int_t PrtHit::GetMultiplicity ( )
inline

Definition at line 52 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 52 of file PrtHit.h

References fMultiplicity.

Int_t PrtHit::GetNreflectionsInPrizm ( )
inline

Definition at line 38 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 38 of file PrtHit.h

References fNreflectionsInPrizm.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

Int_t PrtHit::GetParentParticleId ( )
inline

Definition at line 36 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 36 of file PrtHit.h

References fParentParticleId.

Int_t PrtHit::GetParticleId ( )
inline

Definition at line 35 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 35 of file PrtHit.h

References fParticleId.

Long64_t PrtHit::GetPathInPrizm ( )
inline

Definition at line 39 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 39 of file PrtHit.h

References fPathInPrizm.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

Int_t PrtHit::GetPixelId ( )
inline

Definition at line 50 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 50 of file PrtHit.h

References fPixelId.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetPosition ( )
inline

Definition at line 45 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 45 of file PrtHit.h

References fPosition.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

TVector3 PrtHit::GetPositionAtBar ( ) const
inline

Definition at line 47 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 47 of file PrtHit.h

References fPosBar.

Double_t PrtHit::GetTotTime ( )
inline

Definition at line 54 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 54 of file PrtHit.h

References fTotTime.

Referenced by G4DIRCTree::process_hit().

+ Here is the caller graph for this function:

void PrtHit::SetChannel ( Int_t  val)
inline

Definition at line 73 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 73 of file PrtHit.h

References fChannel.

void PrtHit::SetDigiPos ( TVector3  val)
inline

Definition at line 65 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 65 of file PrtHit.h

References fDigiPos.

void PrtHit::SetGlobalPos ( TVector3  val)
inline

Definition at line 64 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 64 of file PrtHit.h

References fGlobalPos.

void PrtHit::SetLeadTime ( Double_t  val)
inline

Definition at line 75 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 75 of file PrtHit.h

References fLeadTime.

void PrtHit::SetLocalPos ( TVector3  val)
inline

Definition at line 63 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 63 of file PrtHit.h

References fLocalPos.

void PrtHit::SetMcpId ( Int_t  val)
inline

Definition at line 71 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 71 of file PrtHit.h

References fMcpId.

void PrtHit::SetMomentum ( TVector3  val)
inline

Definition at line 66 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 66 of file PrtHit.h

References fMomentum.

void PrtHit::SetMomentumAtBar ( TVector3  val)
inline

Definition at line 68 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 68 of file PrtHit.h

References fMomBar.

void PrtHit::SetMultiplicity ( Int_t  val)
inline

Definition at line 74 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 74 of file PrtHit.h

References fMultiplicity.

void PrtHit::SetNreflectionsInPrizm ( Int_t  val)
inline

Definition at line 60 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 60 of file PrtHit.h

References fNreflectionsInPrizm.

void PrtHit::SetParentParticleId ( Int_t  val)
inline

Definition at line 58 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 58 of file PrtHit.h

References fParentParticleId.

void PrtHit::SetParticleId ( Int_t  val)
inline

Definition at line 57 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 57 of file PrtHit.h

References fParticleId.

void PrtHit::SetPathInPrizm ( Long64_t  val)
inline

Definition at line 61 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 61 of file PrtHit.h

References fPathInPrizm.

void PrtHit::SetPixelId ( Int_t  val)
inline

Definition at line 72 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 72 of file PrtHit.h

References fPixelId.

void PrtHit::SetPosition ( TVector3  val)
inline

Definition at line 67 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 67 of file PrtHit.h

References fPosition.

void PrtHit::SetPositionAtBar ( TVector3  val)
inline

Definition at line 69 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 69 of file PrtHit.h

References fPosBar.

void PrtHit::SetTotTime ( Double_t  val)
inline

Definition at line 76 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 76 of file PrtHit.h

References fTotTime.

Member Data Documentation

Int_t PrtHit::fChannel
protected

Definition at line 93 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 93 of file PrtHit.h

Referenced by GetChannel(), and SetChannel().

TVector3 PrtHit::fDigiPos
protected

Definition at line 85 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 85 of file PrtHit.h

Referenced by GetDigiPos(), and SetDigiPos().

TVector3 PrtHit::fGlobalPos
protected

Definition at line 84 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 84 of file PrtHit.h

Referenced by GetGlobalPos(), and SetGlobalPos().

Double_t PrtHit::fLeadTime
protected

Definition at line 95 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 95 of file PrtHit.h

Referenced by GetLeadTime(), and SetLeadTime().

TVector3 PrtHit::fLocalPos
protected

Definition at line 83 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 83 of file PrtHit.h

Referenced by GetLocalPos(), and SetLocalPos().

Int_t PrtHit::fMcpId
protected

Definition at line 91 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 91 of file PrtHit.h

Referenced by GetMcpId(), and SetMcpId().

TVector3 PrtHit::fMomBar
protected

Definition at line 88 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 88 of file PrtHit.h

Referenced by GetMomentumAtBar(), and SetMomentumAtBar().

TVector3 PrtHit::fMomentum
protected

Definition at line 86 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 86 of file PrtHit.h

Referenced by GetMomentum(), and SetMomentum().

Int_t PrtHit::fMultiplicity
protected

Definition at line 94 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 94 of file PrtHit.h

Referenced by GetMultiplicity(), and SetMultiplicity().

Int_t PrtHit::fNreflectionsInPrizm
protected

Definition at line 81 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 81 of file PrtHit.h

Referenced by GetNreflectionsInPrizm(), and SetNreflectionsInPrizm().

Int_t PrtHit::fParentParticleId
protected

Definition at line 80 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 80 of file PrtHit.h

Referenced by GetParentParticleId(), and SetParentParticleId().

Int_t PrtHit::fParticleId
protected

Definition at line 79 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 79 of file PrtHit.h

Referenced by GetParticleId(), and SetParticleId().

Long64_t PrtHit::fPathInPrizm
protected

Definition at line 82 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 82 of file PrtHit.h

Referenced by GetPathInPrizm(), and SetPathInPrizm().

Int_t PrtHit::fPixelId
protected

Definition at line 92 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 92 of file PrtHit.h

Referenced by GetPixelId(), and SetPixelId().

TVector3 PrtHit::fPosBar
protected

Definition at line 89 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 89 of file PrtHit.h

Referenced by GetPositionAtBar(), and SetPositionAtBar().

TVector3 PrtHit::fPosition
protected

Definition at line 87 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 87 of file PrtHit.h

Referenced by GetPosition(), and SetPosition().

Double_t PrtHit::fTotTime
protected

Definition at line 96 of file PrtHit.h.

View newest version in sPHENIX GitHub at line 96 of file PrtHit.h

Referenced by GetTotTime(), and SetTotTime().


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