15 #ifndef DD4HEP_GEANT4DATA_H
16 #define DD4HEP_GEANT4DATA_H
20 #include "Math/Vector3D.h"
34 namespace Simulation {
70 typedef std::vector<long>
Seeds;
128 #ifdef DD4HEP_DD4HEP_PTR_AUTO
164 x(pos[0]),
y(pos[1]),
z(pos[2])
170 x(pos[0]),
y(pos[1]),
z(pos[2])
243 Hit(
int track_id,
int pdg_id,
double deposit,
double time_stamp);
251 Hit&
storePoint(
const G4Step* step,
const G4StepPoint* point);
298 #endif // DD4HEP_GEANT4DATA_H
DDG4 tracker hit class used by the generic DDG4 tracker sensitive detector.
Geant4Tracker SimpleTracker
Seeds seeds
Random number generator seeds.
std::vector< MonteCarloContrib > Contributions
DataExtension()
Default constructor.
double length
Length of the track segment contributing to this hit.
MonteCarloContrib & operator=(const MonteCarloContrib &c)
Assignment operator.
Direction momentum
Hit direction.
MonteCarloContrib(int track_id, int pdg, double dep, double time_stamp, float *pos)
Initializing constructor.
DDG4 calorimeter hit class used by the generic DDG4 calorimeter sensitive detector.
int numEvents
Number of events in this run.
virtual ~SimpleRun()
Default destructor.
double energyDeposit
Energy deposit in the tracker hit.
virtual ~DataExtension()
Default destructor.
Helper class to define structures used by the generic DDG4 calorimeter sensitive detector.
Out version of the std auto_ptr implementation base either on auto_ptr or unique_ptr.
Position position
Hit position.
Contribution truth
Monte Carlo / Geant4 information.
long long int cellID
cellID
Contributions truth
Hit contributions by individual particles.
SimpleRun()
Default constructor.
MonteCarloContrib()
Default constructor.
Generic user-extendible data extension class.
double deposit
Total energy deposit in this hit.
not persisten. ROOT cannot handle
Hit & clear()
Clear hit content.
virtual ~Hit()
Default destructor.
Hit & storePoint(const G4Step *step, const G4StepPoint *point)
Store Geant4 point and step information into tracker hit structure.
Position position
Hit position.
Hit & operator=(const Hit &c)
Assignment operator.
static Contribution extractContribution(const G4Step *step)
Extract the MC contribution for a given hit from the step information.
int runID
Run identifiers.
Helper class to define structures used by the generic DDG4 tracker sensitive detector.
MonteCarloContrib(int track_id, int pdg, double dep, double time_stamp)
Initializing constructor.
MonteCarloContrib Contribution
ROOT::Math::XYZVector Position
int runID
Run identifiers.
dd4hep_ptr< DataExtension > extension
User data extension if required.
virtual ~Geant4HitData()
Default destructor.
Hit()
Default constructor (for ROOT)
float x
Proper position of the hit contribution.
MonteCarloContrib(const MonteCarloContrib &c)
Copy constructor.
void clear()
Clear data content.
int pdgID
Particle ID from the PDG table.
MonteCarloContrib(int track_id, int pdg, double dep, double time_stamp, double *pos)
Initializing constructor.
Geant4Calorimeter SimpleCalorimeter
Geant4HitData()
Default constructor.
SimpleEvent()
Default constructor.
Hit()
Default constructor.
Simple run description structure. Used in the default I/O mechanism.
long g4ID
Original Geant 4 track identifier of the creating track (debugging)
Geant4HitData SimpleHit
Backward compatibility definitions.
int trackID
Geant 4 Track identifier.
double energyDeposit
Total energy deposit.
virtual ~SimpleEvent()
Default destructor.
long flag
User flag to classify hits.
ROOT::Math::XYZVector Position
double time
Timestamp when this energy was deposited.
virtual ~Hit()
Default destructor.
std::vector< long > Seeds
int eventID
Event identifier.
Simple event description structure. Used in the default I/O mechanism.
Base class for geant4 hit structures used by the default DDG4 sensitive detector implementations.