20 ecal_sim_hits_pass_name_ =
21 parameters.
get<std::string>(
"ecal_sim_hits_pass_name");
23 sim_particles_pass_name_ =
24 parameters.
get<std::string>(
"sim_particles_pass_name");
30 "SimParticles", sim_particles_pass_name_)};
33 auto [recoilTrackID, recoilElectron] = analysis::getRecoil(particle_map);
36 const std::vector<ldmx::SimCalorimeterHit> ecal_sim_hits =
38 ecal_sim_hits_pass_name_);
43 bool has_recoil_electron_hits =
false;
49 for (
int i_contrib = 0; i_contrib < sim_hit.getNumberOfContribs();
58 has_recoil_electron_hits =
true;
65 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