GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Data Fields
GGSTPosHit Class Reference

Class to store G4 position hits. More...

#include <GGSTHits.h>

Inheritance diagram for GGSTPosHit:
Inheritance graph
[legend]
Collaboration diagram for GGSTPosHit:
Collaboration graph
[legend]

Public Member Functions

 GGSTPosHit ()
 Constructor.
 
const GGSTPosHitoperator= (const GGSTPosHit &)
 Assignment operator.
 
void Clear (Option_t *)
 Resets data members. More...
 
virtual void UserConversion (const GGSPosHit &posHit)
 Hook for user-defined conversion. More...
 

Data Fields

Float_t eDep
 Total deposited energy.
 
Float_t time
 Time of the hit.
 
Float_t pathLength
 Path length of the hit.
 
Float_t startPoint [3]
 Start point.
 
Float_t endPoint [3]
 End point.
 
Float_t startMomentum [3]
 Start momentum.
 
Float_t startEnergy
 Start kinetic energy.
 

Detailed Description

Class to store G4 position hits.

This class is used to write on ROOT files the informations stored in GGSPosHit. It inherits form TObject and has data members corresponding to those of GGSPosHit.

Definition at line 34 of file GGSTHits.h.

Member Function Documentation

void GGSTPosHit::Clear ( Option_t *  )

Resets data members.

This function has an unused Option_t argument so that a TClonesArray of GGSTPrimaryParticle can call this method when clearing the objects it contains (eg., when TClonesArray::Clear("C") is called).

Definition at line 31 of file GGSTHits.cpp.

31  {
32  eDep = 0.;
33  time = 0.;
34  pathLength = 0.;
35  startPoint[0] = startPoint[1] = startPoint[2] = 0.;
36  endPoint[0] = endPoint[1] = endPoint[2] = 0.;
37  startMomentum[0] = startMomentum[1] = startMomentum[2] = 0.;
38  startEnergy = 0.;
39 }
Float_t startMomentum[3]
Start momentum.
Definition: GGSTHits.h:42
Float_t eDep
Total deposited energy.
Definition: GGSTHits.h:37
Float_t time
Time of the hit.
Definition: GGSTHits.h:38
Float_t pathLength
Path length of the hit.
Definition: GGSTHits.h:39
Float_t startEnergy
Start kinetic energy.
Definition: GGSTHits.h:43
Float_t startPoint[3]
Start point.
Definition: GGSTHits.h:40
Float_t endPoint[3]
End point.
Definition: GGSTHits.h:41
virtual void GGSTPosHit::UserConversion ( const GGSPosHit posHit)
inlinevirtual

Hook for user-defined conversion.

Derived classes can override this method to perform custom conversion of the simulation data stored in posHit.

Parameters
intHitReference to the position hit object. It might refer to a class derived from GGSPosHit if that's what's actually in use.

Definition at line 67 of file GGSTHits.h.

67  {
68  IGNORE(posHit);
69  }

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