14 ldmx_log(debug) <<
"Process starts!";
32 1500, 0, 1500,
"TrigScint max PE hit time (ns)", 1500, 0,
36 "Photoelectrons in a TrigScint bar", 1500, 0, 1500,
37 "Earliest time of TrigScint hit above threshold (ns)",
45 ldmx_log(debug) <<
"In TrigScintDQM::configure, got parameters "
50 const std::vector<ldmx::SimCalorimeterHit> TrigScintHits =
54 int hitCount = TrigScintHits.size();
57 double totalEnergy{0};
61 int bar = detID.
bar();
67 std::vector<float> posvec = hit.getPosition();
72 totalEnergy += hit.getEdep();
#define DECLARE_ANALYZER_NS(NS, CLASS)
Macro which allows the framework to construct an analyzer given its name during configuration.
Class which stores simulated calorimeter hit information.
Analyzer used for TrigScint DQM.
void analyze(const framework::Event &event)
Process the event and make histograms ro summaries.
TrigScintDQM(const std::string &name, framework::Process &process)
Constructor.
std::string padName_
Name of Pad.
void configure(framework::config::Parameters &pSet)
Configure the processor using the given user specified parameters.
std::string hitCollectionName_
Name of trigger pad hit collection.
void onProcessStart()
Method executed before processing of events begins.
~TrigScintDQM()
Destructor.
TDirectory * getHistoDirectory()
Access/create a directory in the histogram file for this event processor to create histograms and ana...
HistogramHelper histograms_
Interface class for making and filling histograms.
Implements an event buffer system for storing event data.
void fill(const std::string &name, const double &val)
Fill a 1D histogram.
void create(const std::string &name, const std::string &xLabel, const double &bins, const double &xmin, const double &xmax)
Create a ROOT 1D histogram of type TH1F and pool it for later use.
Class which represents the process under execution.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
Stores simulated calorimeter hit information.
Class that defines the detector ID of the trigger scintillator.
int bar() const
Get the value of the bar field from the ID.
All classes in the ldmx-sw project use this namespace.