FairShip
Loading...
Searching...
No Matches
SHiP::DetectorHit Class Reference

#include <DetectorHit.h>

Inheritance diagram for SHiP::DetectorHit:
Collaboration diagram for SHiP::DetectorHit:

Public Member Functions

 DetectorHit ()
 
 DetectorHit (Int_t detID, Float_t digi)
 
 ~DetectorHit () override=default
 
Double_t GetDigi () const
 
Int_t GetDetectorID () const
 
void SetDigi (Float_t d)
 
void SetDetectorID (Int_t detID)
 
void Print (const Option_t *opt="") const override
 

Protected Member Functions

 ClassDefOverride (SHiP::DetectorHit, 1)
 

Protected Attributes

Float_t fdigi
 digitized detector hit
 
Int_t fDetectorID
 Detector unique identifier.
 

Detailed Description

copied from FairRoot FairHit and simplified

Definition at line 16 of file DetectorHit.h.

Constructor & Destructor Documentation

◆ DetectorHit() [1/2]

SHiP::DetectorHit::DetectorHit ( )

Default constructor

Definition at line 10 of file DetectorHit.cxx.

10: TObject(), fdigi(0), fDetectorID(-1) {}
Float_t fdigi
digitized detector hit
Definition: DetectorHit.h:39
Int_t fDetectorID
Detector unique identifier.
Definition: DetectorHit.h:40

◆ DetectorHit() [2/2]

SHiP::DetectorHit::DetectorHit ( Int_t  detID,
Float_t  digi 
)

Constructor with hit parameters

Definition at line 14 of file DetectorHit.cxx.

15 : TObject(), fdigi(digi), fDetectorID(detID) {}

◆ ~DetectorHit()

SHiP::DetectorHit::~DetectorHit ( )
overridedefault

Destructor

Member Function Documentation

◆ ClassDefOverride()

SHiP::DetectorHit::ClassDefOverride ( SHiP::DetectorHit  ,
 
)
protected

◆ GetDetectorID()

Int_t SHiP::DetectorHit::GetDetectorID ( ) const
inline

Definition at line 29 of file DetectorHit.h.

29{ return fDetectorID; };

◆ GetDigi()

Double_t SHiP::DetectorHit::GetDigi ( ) const
inline

Accessors

Definition at line 28 of file DetectorHit.h.

28{ return fdigi; };

◆ Print()

void SHiP::DetectorHit::Print ( const Option_t *  opt = "") const
inlineoverride

Definition at line 36 of file DetectorHit.h.

36{}

◆ SetDetectorID()

void SHiP::DetectorHit::SetDetectorID ( Int_t  detID)
inline

Definition at line 33 of file DetectorHit.h.

◆ SetDigi()

void SHiP::DetectorHit::SetDigi ( Float_t  d)
inline

Modifiers

Definition at line 32 of file DetectorHit.h.

Member Data Documentation

◆ fDetectorID

Int_t SHiP::DetectorHit::fDetectorID
protected

Detector unique identifier.

Definition at line 40 of file DetectorHit.h.

◆ fdigi

Float_t SHiP::DetectorHit::fdigi
protected

digitized detector hit

Definition at line 39 of file DetectorHit.h.


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