Skip to content
Snippets Groups Projects
Geant4MonteCarloTruth.cpp 1.61 KiB
Newer Older
Markus Frank's avatar
Markus Frank committed
// $Id: $
//==========================================================================
Markus Frank's avatar
Markus Frank committed
//  AIDA Detector description implementation for LCD
//--------------------------------------------------------------------------
Markus Frank's avatar
Markus Frank committed
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
Markus Frank's avatar
Markus Frank committed
//
// For the licensing terms see $DD4hepINSTALL/LICENSE.
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
Markus Frank's avatar
Markus Frank committed
//
// Author     : M.Frank
//
//==========================================================================
Markus Frank's avatar
Markus Frank committed

// 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);
}

/// Standard constructor
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*)  {
}

/// Store a track, with a flag
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 ) {