9#include <simulation/kernel/SensitiveDetectorBase.h>
10#include <framework/logging/Logger.h>
18 namespace Simulation {
24 std::pair<std::map<std::string, RelationArray::EConsolidationAction>::iterator,
bool> insert =
s_mcRelations.insert(std::make_pair(
27 if (!insert.second && insert.first->second != ignoreAction) {
28 B2FATAL(
"MCParticle Relation " << name <<
" already registered with different ignore action.");
EConsolidationAction
Modification actions for the consolidate member.
static std::map< std::string, RelationArray::EConsolidationAction > s_mcRelations
Static set holding all relations which have to be updated at the end of the Event.
static void registerMCParticleRelation(const std::string &name, RelationArray::EConsolidationAction ignoreAction=RelationArray::c_negativeWeight)
Register an relation involving MCParticles.
static bool s_active
Static bool which indicates wether recording of hits is enabled.
Abstract base class for different kinds of events.