SomeExperiment::MyTrackerHit Class Reference

This is the hit definition. More...

#include <MyTrackerHit.h>

Collaboration diagram for SomeExperiment::MyTrackerHit:

Public Member Functions

 MyTrackerHit ()=default
 Default constructor. More...
 
 MyTrackerHit (int track_id, int pdg_id, double deposit, double time_stamp)
 Initializing constructor. More...
 
virtual ~MyTrackerHit ()=default
 Default destructor. More...
 
MyTrackerHitoperator= (const MyTrackerHit &c)
 Assignment operator. More...
 
MyTrackerHitclear ()
 Clear hit content. More...
 
MyTrackerHitstorePoint (const G4Step *step, const G4StepPoint *pnt)
 Store Geant4 point and step information into tracker hit structure. More...
 

Public Attributes

long long int cellID = 0
 dd4hep::sim::Geant4HitData: cellID More...
 
long flag = 0
 dd4hep::sim::Geant4HitData: User flag to classify hits More...
 
long g4ID = -1
 dd4hep::sim::Geant4HitData: Original Geant 4 track identifier of the creating track (debugging) More...
 
dd4hep::Position position
 Hit position. More...
 
dd4hep::Direction momentum
 Hit direction. More...
 
double length = 0
 Length of the track segment contributing to this hit. More...
 
dd4hep::sim::Geant4HitData::MonteCarloContrib truth
 Monte Carlo / Geant4 information. More...
 
double energyDeposit = 0
 Energy deposit in the tracker hit. More...
 

Detailed Description

This is the hit definition.

I took here the same definition of the default Geant4Tracker class, (see DDG4/Geant4Data.h) but it could be anything else as well.

Please note:

The MC truth handling as implemented in the Geant4ParticleHandler will not work with this class if the object(s) are saved with the standard Geant4Output2ROOT event action. If the hit is specialized, the output writing also must be specialized if MC truth handling should be supported. Otherwise it is sufficient to provide a ROOT dictionary as long as the base class dd4hep::sim::Geant4HitData is kept.

Author
M.Frank
Version
1.0

Definition at line 39 of file MyTrackerHit.h.

Constructor & Destructor Documentation

◆ MyTrackerHit() [1/2]

SomeExperiment::MyTrackerHit::MyTrackerHit ( )
default

Default constructor.

◆ MyTrackerHit() [2/2]

SomeExperiment::MyTrackerHit::MyTrackerHit ( int  track_id,
int  pdg_id,
double  deposit,
double  time_stamp 
)
inline

Initializing constructor.

Definition at line 65 of file MyTrackerHit.h.

◆ ~MyTrackerHit()

virtual SomeExperiment::MyTrackerHit::~MyTrackerHit ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ clear()

MyTrackerHit & MyTrackerHit::clear ( )

Clear hit content.

Definition at line 32 of file MyTrackerHit.cpp.

◆ operator=()

MyTrackerHit & MyTrackerHit::operator= ( const MyTrackerHit c)

Assignment operator.

Definition at line 21 of file MyTrackerHit.cpp.

◆ storePoint()

MyTrackerHit & MyTrackerHit::storePoint ( const G4Step *  step,
const G4StepPoint *  pnt 
)

Store Geant4 point and step information into tracker hit structure.

Definition at line 41 of file MyTrackerHit.cpp.

Member Data Documentation

◆ cellID

long long int SomeExperiment::MyTrackerHit::cellID = 0

dd4hep::sim::Geant4HitData: cellID

Definition at line 43 of file MyTrackerHit.h.

◆ energyDeposit

double SomeExperiment::MyTrackerHit::energyDeposit = 0

Energy deposit in the tracker hit.

Definition at line 59 of file MyTrackerHit.h.

◆ flag

long SomeExperiment::MyTrackerHit::flag = 0

dd4hep::sim::Geant4HitData: User flag to classify hits

Definition at line 45 of file MyTrackerHit.h.

◆ g4ID

long SomeExperiment::MyTrackerHit::g4ID = -1

dd4hep::sim::Geant4HitData: Original Geant 4 track identifier of the creating track (debugging)

Definition at line 47 of file MyTrackerHit.h.

◆ length

double SomeExperiment::MyTrackerHit::length = 0

Length of the track segment contributing to this hit.

Definition at line 55 of file MyTrackerHit.h.

◆ momentum

dd4hep::Direction SomeExperiment::MyTrackerHit::momentum

Hit direction.

Definition at line 53 of file MyTrackerHit.h.

◆ position

dd4hep::Position SomeExperiment::MyTrackerHit::position

Hit position.

Definition at line 51 of file MyTrackerHit.h.

◆ truth

dd4hep::sim::Geant4HitData::MonteCarloContrib SomeExperiment::MyTrackerHit::truth

Monte Carlo / Geant4 information.

Definition at line 57 of file MyTrackerHit.h.


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