DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
dd4hep::sim::Geant4HitWrapper Class Reference

Generic wrapper class for hit structures created in Geant4 sensitive detectors. More...

#include <Geant4HitCollection.h>

Inheritance diagram for dd4hep::sim::Geant4HitWrapper:
G4VHit

Classes

class  HitManipulator
 Generic type manipulation class for generic hit structures created in Geant4 sensitive detectors. More...
 
class  InvalidHit
 Helper class to indicate invalid hit wrappers or containers. More...
 

Public Types

typedef HitManipulator::Wrapper Wrapper
 

Public Member Functions

 Geant4HitWrapper ()
 Default constructor. More...
 
 Geant4HitWrapper (const Geant4HitWrapper &v)
 Copy constructor. More...
 
 Geant4HitWrapper (const Wrapper &v)
 Copy constructor. More...
 
virtual ~Geant4HitWrapper ()
 Default destructor. More...
 
void * operator new (size_t)
 Geant4 required object allocator. More...
 
void operator delete (void *ptr)
 Geant4 required object destroyer. More...
 
void * release ()
 Pointer/Object release. More...
 
Wrapper releaseData ()
 Release data for copy. More...
 
HitManipulatormanip () const
 Access to cast grammar. More...
 
void * data ()
 Pointer/Object access. More...
 
void * data () const
 Pointer/Object access (CONST) More...
 
Geant4HitWrapperoperator= (const Geant4HitWrapper &v)
 Assignment transfers the pointer ownership. More...
 
template<typename TYPE >
 operator TYPE * () const
 Automatic conversion to the desired type. More...
 

Static Public Member Functions

template<typename TYPE >
static HitManipulatormanipulator ()
 Generate manipulator object. More...
 

Protected Attributes

Wrapper m_data
 Wrapper data. More...
 

Detailed Description

Generic wrapper class for hit structures created in Geant4 sensitive detectors.

Default base class for all geant 4 created hits. The hit is stored in an opaque way and can be accessed by the collection.

Author
M.Frank
Version
1.0

Definition at line 50 of file Geant4HitCollection.h.

Member Typedef Documentation

◆ Wrapper

Definition at line 106 of file Geant4HitCollection.h.

Constructor & Destructor Documentation

◆ Geant4HitWrapper() [1/3]

dd4hep::sim::Geant4HitWrapper::Geant4HitWrapper ( )
inline

Default constructor.

Definition at line 114 of file Geant4HitCollection.h.

◆ Geant4HitWrapper() [2/3]

dd4hep::sim::Geant4HitWrapper::Geant4HitWrapper ( const Geant4HitWrapper v)
inline

Copy constructor.

Definition at line 119 of file Geant4HitCollection.h.

◆ Geant4HitWrapper() [3/3]

dd4hep::sim::Geant4HitWrapper::Geant4HitWrapper ( const Wrapper v)
inline

Copy constructor.

Definition at line 125 of file Geant4HitCollection.h.

◆ ~Geant4HitWrapper()

Geant4HitWrapper::~Geant4HitWrapper ( )
virtual

Default destructor.

Definition at line 39 of file Geant4HitCollection.cpp.

Member Function Documentation

◆ data() [1/2]

void* dd4hep::sim::Geant4HitWrapper::data ( )
inline

Pointer/Object access.

Definition at line 143 of file Geant4HitCollection.h.

◆ data() [2/2]

void* dd4hep::sim::Geant4HitWrapper::data ( ) const
inline

Pointer/Object access (CONST)

Definition at line 147 of file Geant4HitCollection.h.

◆ manip()

HitManipulator* dd4hep::sim::Geant4HitWrapper::manip ( ) const
inline

Access to cast grammar.

Definition at line 139 of file Geant4HitCollection.h.

◆ manipulator()

template<typename TYPE >
static HitManipulator* dd4hep::sim::Geant4HitWrapper::manipulator ( )
inlinestatic

Generate manipulator object.

Definition at line 151 of file Geant4HitCollection.h.

◆ operator delete()

void Geant4HitWrapper::operator delete ( void *  ptr)

Geant4 required object destroyer.

Geat4 required object destroyer.

Definition at line 55 of file Geant4HitCollection.cpp.

◆ operator new()

void * Geant4HitWrapper::operator new ( size_t  )

Geant4 required object allocator.

Definition at line 47 of file Geant4HitCollection.cpp.

◆ operator TYPE *()

template<typename TYPE >
dd4hep::sim::Geant4HitWrapper::operator TYPE * ( ) const
inline

Automatic conversion to the desired type.

Definition at line 164 of file Geant4HitCollection.h.

◆ operator=()

Geant4HitWrapper& dd4hep::sim::Geant4HitWrapper::operator= ( const Geant4HitWrapper v)
inline

Assignment transfers the pointer ownership.

Definition at line 155 of file Geant4HitCollection.h.

◆ release()

void * Geant4HitWrapper::release ( )

Pointer/Object release.

Definition at line 60 of file Geant4HitCollection.cpp.

◆ releaseData()

Geant4HitWrapper::Wrapper Geant4HitWrapper::releaseData ( )

Release data for copy.

Pointer/Object release.

Definition at line 68 of file Geant4HitCollection.cpp.

Member Data Documentation

◆ m_data

Wrapper dd4hep::sim::Geant4HitWrapper::m_data
mutableprotected

Wrapper data.

Definition at line 109 of file Geant4HitCollection.h.


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