27 if (!event.
exists(
"FindableTracks"))
return;
29 auto recoilTrackID = 0;
55 double p{-1}, pt{-1}, px{-9999}, py{-9999}, pz{-9999};
57 if (event.
exists(
"TargetScoringPlaneHits")) {
59 const std::vector<ldmx::SimTrackerHit> spHits =
63 if ((hit.getTrackID() == recoilTrackID) and
64 (hit.getLayerID() == 2) and
65 (hit.getMomentum()[2] > 0)
73 TVector3 recoilP(spHit->getMomentum().data());
89 bool passesTrackVeto{
false};
91 if (event.
exists(
"TrackerVeto")) {
102 if (passesTrackVeto) {
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Analyzer used for DQM of the Recoil tracker.
Class which encapsulates information from a hit in a simulated tracking detector.
void configure(framework::config::Parameters ¶meters) override
Configure the processor using the given user specified parameters.
void onProcessStart() override
Method executed before processing of events begins.
virtual ~RecoilTrackerDQM()
Destructor.
void analyze(const framework::Event &event) override
Process the event and make histograms ro summaries.
RecoilTrackerDQM(const std::string &name, framework::Process &process)
Constructor.
HistogramHelper histograms_
Interface class for making and filling histograms.
Implements an event buffer system for storing event data.
bool exists(const std::string &name, const std::string &passName="", bool unique=true) const
Check for the existence of an object or collection with the given name and pass name in the event.
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
Represents a simulated tracker hit in the simulation.
All classes in the ldmx-sw project use this namespace.