Newer
Older
Markus Frank
committed
//==========================================================================
Markus Frank
committed
//--------------------------------------------------------------------------
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
Markus Frank
committed
// All rights reserved.
Markus Frank
committed
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
Markus Frank
committed
// Author : M.Frank
//
//==========================================================================
// Framework include files
#include "DD4hep/InstanceCount.h"
#include "DDG4/Geant4MonteCarloTruth.h"
using namespace DD4hep::Simulation;
/// Standard action constructor
Geant4MonteCarloTruth::Geant4MonteCarloTruth() {
InstanceCount::increment(this);
}
/// Default destructor
Geant4MonteCarloTruth::~Geant4MonteCarloTruth() {
InstanceCount::decrement(this);
}
Markus Frank
committed
Geant4DummyTruthHandler::Geant4DummyTruthHandler(Geant4Context* ctxt,const std::string& nam)
: Geant4Action(ctxt,nam), Geant4MonteCarloTruth()
{
}
/// Default destructor
Geant4DummyTruthHandler::~Geant4DummyTruthHandler()
{
}
/// Mark a Geant4 track to be kept for later MC truth analysis
void Geant4DummyTruthHandler::mark(const G4Track*) {
void Geant4DummyTruthHandler::mark(const G4Track*, int ) {
}
/// Mark a Geant4 track of the step to be kept for later MC truth analysis
void Geant4DummyTruthHandler::mark(const G4Step*) {
}
/// Store a track produced in a step to be kept for later MC truth analysis
void Geant4DummyTruthHandler::mark(const G4Step*, int ) {