1#ifndef DQM_PHOTONUCLEARDQM_H
2#define DQM_PHOTONUCLEARDQM_H
7#include "Framework/Configure/Parameters.h"
9#include "SimCore/Event/SimParticle.h"
18 enum class CompactEventType {
20 single_charged_kaon = 1,
21 single_neutral_kaon = 2,
26 enum class EventType {
30 three_or_more_neutrons = 3,
31 single_charged_pion = 4,
32 two_charged_pions = 5,
33 single_neutral_pion = 6,
34 single_charged_pion_and_nucleon = 7,
35 single_charged_pion_and_two_nucleons = 8,
36 two_charged_pions_and_nucleon = 9,
37 single_neutral_pion_and_nucleon = 10,
38 single_neutral_pion_and_two_nucleons = 11,
39 single_neutral_pion_charged_pion_and_nucleon = 12,
79 const std::vector<const ldmx::SimParticle *> daughters,
double threshold);
84 const std::vector<const ldmx::SimParticle *> daughters,
double threshold);
104 const std::map<int, ldmx::SimParticle> &particleMap,
113 const std::vector<const ldmx::SimParticle *> &pnDaughters);
123 const std::vector<const ldmx::SimParticle *> &pnDaughters,
124 const EventType eventType);
138 if (pdgCode > 1000000000) {
140 return ((pdgCode / 10) % 1000) <= 4;
146 bool count_light_ions_;
Base classes for all user event processing components to extend.
void findSubleadingKinematics(const ldmx::SimParticle *pnGamma, const std::vector< const ldmx::SimParticle * > &pnDaughters, const EventType eventType)
Fill histograms related to the kinematics and subleading particles for 1n, kaon, and 2n type events.
constexpr bool isLightIon(const int pdgCode) const
Check if the PDG code corresponds to a light ion.
std::vector< const ldmx::SimParticle * > findDaughters(const std::map< int, ldmx::SimParticle > &particleMap, const ldmx::SimParticle *parent) const
Find all daughter particles of a parent.
void analyze(const framework::Event &event) override
Process the event and create the histogram summaries.
EventType classifyEvent(const std::vector< const ldmx::SimParticle * > daughters, double threshold)
Method used to classify events.
void onProcessStart() override
Method executed before processing of events begins.
CompactEventType classifyCompactEvent(const ldmx::SimParticle *pnGamma, const std::vector< const ldmx::SimParticle * > daughters, double threshold)
Method used to classify events in a compact manner.
virtual ~PhotoNuclearDQM()
Destructor.
void findRecoilProperties(const ldmx::SimParticle *recoil)
Fill the recoil electron-histograms.
void findParticleKinematics(const std::vector< const ldmx::SimParticle * > &pnDaughters)
Fill histograms related to kinematics of PN products.
void configure(framework::config::Parameters ¶meters) override
Configure this analyzer using the user specified parameters.
Base class for a module which does not produce a data product.
Implements an event buffer system for storing event data.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
Class representing a simulated particle.