1#include "SimCore/SensitiveDetector.h"
3#include "Framework/Exception/Exception.h"
4#include "G4ChargedGeantino.hh"
5#include "G4Geantino.hh"
6#include "G4SDManager.hh"
14 : G4VSensitiveDetector(name), conditions_interface_(ci) {
16 G4SDManager::GetSDMpointer()->AddNewDetector(
this);
20 auto particle_def{step->GetTrack()->GetDefinition()};
21 return (particle_def == G4Geantino::Definition() or
22 particle_def == G4ChargedGeantino::Definition());
Class encapsulating parameters for configuring a processor.
Handle to the conditions system, provided at construction to classes which require it.
bool isGeantino(const G4Step *step) const
Check if the passed step is a step of a geantino.
SensitiveDetector(const std::string &name, simcore::ConditionsInterface &ci, const framework::config::Parameters ¶meters)
Constructor.