20 ecal_sim_hits_pass_name_ = parameters.
get<std::string>(
"ecalSimHitsPassName");
22 sim_particles_pass_name_ =
23 parameters.
get<std::string>(
"sim_particles_pass_name");
29 "SimParticles", sim_particles_pass_name_)};
32 auto [recoilTrackID, recoilElectron] = analysis::getRecoil(particle_map);
35 const std::vector<ldmx::SimCalorimeterHit> ecal_sim_hits =
37 ecal_sim_hits_pass_name_);
42 bool has_recoil_electron_hits =
false;
48 for (
int i_contrib = 0; i_contrib < sim_hit.getNumberOfContribs();
57 has_recoil_electron_hits =
true;
64 if (has_recoil_electron_hits) {
#define DECLARE_PRODUCER(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.
Class encapsulating parameters for configuring a processor.
const T & get(const std::string &name) const
Retrieve the parameter of the given name.
Stores simulated calorimeter hit information.
Class representing a simulated particle.
RecoilMissesEcalSkimmer(const std::string &name, framework::Process &process)
Constructor.
void configure(framework::config::Parameters ¶meters) override
Configure the processor using the given user specified parameters.
void produce(framework::Event &event) override
Run the processor and select events where the recoil misses the Ecal.
~RecoilMissesEcalSkimmer()
Destructor.
All classes in the ldmx-sw project use this namespace.
constexpr StorageControl::Hint HINT_SHOULD_DROP
storage control hint alias for backwards compatibility
constexpr StorageControl::Hint HINT_SHOULD_KEEP
storage control hint alias for backwards compatibility
Information about a contribution to the hit in the associated cell.
int track_id_
track ID of this contributor