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

Generic type manipulation class for generic hit structures created in Geant4 sensitive detectors. More...

#include <Geant4HitCollection.h>

Public Types

typedef std::pair< void *, HitManipulator * > Wrapper
 

Public Member Functions

 HitManipulator (const ComponentCast &c, const ComponentCast &v)
 Initializing Constructor. More...
 
 ~HitManipulator ()
 Default destructor. More...
 
template<typename TYPE >
Wrapper castHit (TYPE *obj)
 Check pointer to be of proper type. More...
 

Static Public Member Functions

template<typename TYPE >
static void deleteHit (Wrapper &obj)
 Static function to delete contained hits. More...
 
template<typename TYPE >
static HitManipulatorinstance ()
 

Public Attributes

const ComponentCast & cast
 
const ComponentCast & vec_type
 

Detailed Description

Generic type manipulation class for generic hit structures created in Geant4 sensitive detectors.

Author
M.Frank
Version
1.0

Definition at line 65 of file Geant4HitCollection.h.

Member Typedef Documentation

◆ Wrapper

Definition at line 67 of file Geant4HitCollection.h.

Constructor & Destructor Documentation

◆ HitManipulator()

Geant4HitWrapper::HitManipulator::HitManipulator ( const ComponentCast &  c,
const ComponentCast &  v 
)

Initializing Constructor.

Definition at line 28 of file Geant4HitCollection.cpp.

◆ ~HitManipulator()

Geant4HitWrapper::HitManipulator::~HitManipulator ( )

Default destructor.

Definition at line 34 of file Geant4HitCollection.cpp.

Member Function Documentation

◆ castHit()

template<typename TYPE >
Wrapper dd4hep::sim::Geant4HitWrapper::HitManipulator::castHit ( TYPE *  obj)
inline

Check pointer to be of proper type.

Definition at line 80 of file Geant4HitCollection.h.

◆ deleteHit()

template<typename TYPE >
static void dd4hep::sim::Geant4HitWrapper::HitManipulator::deleteHit ( Wrapper obj)
inlinestatic

Static function to delete contained hits.

Definition at line 94 of file Geant4HitCollection.h.

◆ instance()

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

Definition at line 100 of file Geant4HitCollection.h.

Member Data Documentation

◆ cast

const ComponentCast& dd4hep::sim::Geant4HitWrapper::HitManipulator::cast

Definition at line 72 of file Geant4HitCollection.h.

◆ vec_type

const ComponentCast& dd4hep::sim::Geant4HitWrapper::HitManipulator::vec_type

Definition at line 73 of file Geant4HitCollection.h.


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