Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:17:33

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DD4hep/InstanceCount.h>
0016 #include <DDG4/Geant4MonteCarloTruth.h>
0017 
0018 using namespace dd4hep::sim;
0019 
0020 /// Standard action constructor
0021 Geant4MonteCarloTruth::Geant4MonteCarloTruth()   {
0022   InstanceCount::increment(this);
0023 }
0024 
0025 /// Default destructor
0026 Geant4MonteCarloTruth::~Geant4MonteCarloTruth() {
0027   InstanceCount::decrement(this);
0028 }
0029 
0030 /// Standard constructor
0031 Geant4DummyTruthHandler::Geant4DummyTruthHandler(Geant4Context* ctxt,const std::string& nam) 
0032   : Geant4Action(ctxt,nam), Geant4MonteCarloTruth()
0033 {
0034 }
0035 
0036 /// Default destructor
0037 Geant4DummyTruthHandler::~Geant4DummyTruthHandler()
0038 {
0039 }
0040 
0041 /// Mark a Geant4 track to be kept for later MC truth analysis
0042 void Geant4DummyTruthHandler::mark(const G4Track*)  {
0043 }
0044 
0045 /// Store a track, with a flag
0046 void Geant4DummyTruthHandler::mark(const G4Track*, int ) {
0047 }
0048 
0049 /// Mark a Geant4 track of the step to be kept for later MC truth analysis
0050 void Geant4DummyTruthHandler::mark(const G4Step*) {
0051 }
0052 
0053 /// Store a track produced in a step to be kept for later MC truth analysis
0054 void Geant4DummyTruthHandler::mark(const G4Step*, int ) {
0055 }
0056