23 auto [recoilTrackID, recoilElectron] = Analysis::getRecoil(particleMap);
26 const std::vector<ldmx::SimCalorimeterHit> ecalSimHits =
32 bool hasRecoilElectronHits =
false;
38 for (
int iContrib = 0; iContrib < simHit.getNumberOfContribs();
42 if (contrib.
trackID == recoilTrackID) {
47 hasRecoilElectronHits =
true;
54 if (hasRecoilElectronHits) {
#define DECLARE_PRODUCER_NS(NS, CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
Processor used to select events where the recoil electron misses the Ecal.
void setStorageHint(framework::StorageControl::Hint hint)
Mark the current event as having the given storage control hint from this module.
Implements an event buffer system for storing event data.
Class which represents the process under execution.
Stores simulated calorimeter hit information.
Class representing a simulated particle.
void produce(framework::Event &event)
Run the processor and select events where the recoil misses the Ecal.
RecoilMissesEcalSkimmer(const std::string &name, framework::Process &process)
Constructor.
~RecoilMissesEcalSkimmer()
Destructor.
All classes in the ldmx-sw project use this namespace.
constexpr StorageControl::Hint hint_shouldKeep
storage control hint alias for backwards compatibility
constexpr StorageControl::Hint hint_shouldDrop
storage control hint alias for backwards compatibility
Information about a contribution to the hit in the associated cell.
int trackID
track ID of this contributor