DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4MonteCarloTruth.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/InstanceCount.h>
17 
18 using namespace dd4hep::sim;
19 
23 }
24 
28 }
29 
32  : Geant4Action(ctxt,nam), Geant4MonteCarloTruth()
33 {
34 }
35 
38 {
39 }
40 
42 void Geant4DummyTruthHandler::mark(const G4Track*) {
43 }
44 
46 void Geant4DummyTruthHandler::mark(const G4Track*, int ) {
47 }
48 
50 void Geant4DummyTruthHandler::mark(const G4Step*) {
51 }
52 
54 void Geant4DummyTruthHandler::mark(const G4Step*, int ) {
55 }
56 
Geant4MonteCarloTruth.h
dd4hep::sim::Geant4DummyTruthHandler::Geant4DummyTruthHandler
Geant4DummyTruthHandler(Geant4Context *ctxt, const std::string &nam)
Standard constructor.
Definition: Geant4MonteCarloTruth.cpp:31
dd4hep::InstanceCount::increment
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
dd4hep::sim::Geant4MonteCarloTruth::Geant4MonteCarloTruth
Geant4MonteCarloTruth()
Standard constructor.
Definition: Geant4MonteCarloTruth.cpp:21
dd4hep::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
dd4hep::sim::Geant4MonteCarloTruth
Default Interface class to handle monte carlo truth records.
Definition: Geant4MonteCarloTruth.h:43
dd4hep::sim::Geant4Action
Default base class for all Geant 4 actions and derivates thereof.
Definition: Geant4Action.h:113
dd4hep::sim::Geant4DummyTruthHandler::mark
virtual void mark(const G4Track *track) override
Mark a Geant4 track to be kept for later MC truth analysis. Default flag: CREATED_HIT.
Definition: Geant4MonteCarloTruth.cpp:42
dd4hep::sim
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Definition: Geant4Output2EDM4hep.cpp:49
dd4hep::sim::Geant4DummyTruthHandler::~Geant4DummyTruthHandler
virtual ~Geant4DummyTruthHandler()
Default destructor.
Definition: Geant4MonteCarloTruth.cpp:37
dd4hep::sim::Geant4MonteCarloTruth::~Geant4MonteCarloTruth
virtual ~Geant4MonteCarloTruth()
Default destructor.
Definition: Geant4MonteCarloTruth.cpp:26
InstanceCount.h
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition: Geant4Context.h:201