12 ldmx_log(debug) <<
"Process starts!";
18 "Total energy deposition in the pad/event [MeV]", 1000, 0,
30 1500,
"Max PE hit time [ns]", 1500, 0, 1500);
33 1500, 0, 1500,
"Earliest time of hit above threshold [ns]",
40 hit_passname_ = ps.
get<std::string>(
"hit_passname");
47 const std::vector<ldmx::SimCalorimeterHit> trig_scint_hits =
52 int hit_count = trig_scint_hits.size();
55 double total_energy{0};
59 int bar = det_id.
bar();
65 std::vector<float> posvec = hit.getPosition();
70 total_energy += hit.getEdep();
#define DECLARE_ANALYZER(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.
void configure(framework::config::Parameters &pSet)
Configure the processor using the given user specified parameters.
void onProcessStart()
Method executed before processing of events begins.
std::string pad_name_
Name of Pad.
std::string hit_collection_name_
Name of trigger pad hit collection.
HistogramPool histograms_
helper object for making and filling histograms
TDirectory * getHistoDirectory()
Access/create a directory in the histogram file for this event processor to create histograms and ana...
Implements an event buffer system for storing event data.
void create(const config::Parameters &p)
Create a histogram from the input configuration parameters.
void fill(const std::string &name, const T &val)
Fill a 1D histogram.
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 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.