14#include <dqm/analysis/modules/DQMHistInjection.h>
15#include <klm/dataobjects/KLMElementNumbers.h>
36 B2DEBUG(1,
"DQMHistInjection: Constructor done.");
64 m_hInjectionLERPXD =
new TH1F(
"HitInjectionLERPXD",
"PXD Hits after LER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
65 m_hInjectionLERPXDOcc =
new TH1F(
"HitInjectionPXDLEROcc",
"PXD Occ after LER Injection;Time in #mus;Mean Occ in % per module", 4000,
67 m_hInjectionLERSVD =
new TH1F(
"HitInjectionLERSVD",
"SVD Hits after LER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
68 m_hInjectionLERSVDOcc =
new TH1F(
"HitInjectionSVDLEROcc",
"SVD Occ after LER Injection;Time in #mus;Mean Occ in % per module", 4000,
70 m_hInjectionLERECL =
new TH1F(
"HitInjectionLERECL",
"ECL Hits after LER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
71 m_hBurstLERECL =
new TH1F(
"BurstInjectionLERECL",
"ECL Bursts after LER Injection;Time in #mus;Suppressions/event (1 #mus bins)",
73 m_hInjectionLERTOP =
new TH1F(
"HitInjectionLERTOP",
"TOP Occ after LER Injection;Time in #mus;Mean Occ in % /event", 4000, 0,
75 m_hInjectionLERARICH =
new TH1F(
"HitInjectionLERARICH",
"ARICH Occ after LER Injection;Time in #mus;Mean Hits/event", 4000, 0,
78 "KLM occupancy after LER Injection;Time [#mus];Digits occupancy in % / (5 #mus)", 4000, 0,
81 m_hInjectionHERPXD =
new TH1F(
"HitInjectionHERPXD",
"PXD Hits after HER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
82 m_hInjectionHERPXDOcc =
new TH1F(
"HitInjectionPXDHEROcc",
"PXD Occ after HER Injection;Time in #mus;Mean Occ in % per module", 4000,
84 m_hInjectionHERSVD =
new TH1F(
"HitInjectionHERSVD",
"SVD Hits after HER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
85 m_hInjectionHERSVDOcc =
new TH1F(
"HitInjectionSVDHEROcc",
"SVD Occ after HER Injection;Time in #mus;Mean Occ in % per module", 4000,
87 m_hInjectionHERECL =
new TH1F(
"HitInjectionHERECL",
"ECL Hits after HER Injection;Time in #mus;Mean Hits/event", 4000, 0, 20000);
88 m_hBurstHERECL =
new TH1F(
"BurstInjectionHERECL",
"ECL Bursts after HER Injection;Time in #mus;Suppressions/event (1 #mus bins)",
90 m_hInjectionHERTOP =
new TH1F(
"HitInjectionHERTOP",
"TOP Occ after HER Injection;Time in #mus;Mean Occ in % /event", 4000, 0,
92 m_hInjectionHERARICH =
new TH1F(
"HitInjectionHERARICH",
"ARICH Occ after HER Injection;Time in #mus;Mean Hits/event", 4000, 0,
95 "KLM occupancy after HER Injection;Time [#mus];Digits occupancy in % / (5 #mus)", 4000, 0,
98 B2DEBUG(1,
"DQMHistInjection: initialized.");
104 B2DEBUG(1,
"DQMHistInjection: beginRun called.");
118 TH1* Hits =
nullptr, *Triggers =
nullptr;
119 TString locationHits =
"";
120 TString locationTriggers =
"";
124 locationHits =
"PXDOccInjLER";
126 Hits = (TH1*)
findHist(locationHits.Data());
127 locationTriggers =
"PXDEOccInjLER";
131 Triggers = (TH1*)
findHist(locationTriggers.Data());
135 if (Hits && Triggers) {
148 locationHits =
"PXDOccInjHER";
152 Hits = (TH1*)
findHist(locationHits.Data());
153 locationTriggers =
"PXDEOccInjHER";
157 Triggers = (TH1*)
findHist(locationTriggers.Data());
161 if (Hits && Triggers) {
177 locationHits =
"SVDOccInjLER";
179 Hits = (TH1*)
findHist(locationHits.Data());
180 locationTriggers =
"SVDTrgOccInjLER";
184 Triggers = (TH1*)
findHist(locationTriggers.Data());
188 if (Hits && Triggers) {
201 locationHits =
"SVDOccInjHER";
205 Hits = (TH1*)
findHist(locationHits.Data());
206 locationTriggers =
"SVDTrgOccInjHER";
210 Triggers = (TH1*)
findHist(locationTriggers.Data());
214 if (Hits && Triggers) {
231 locationHits =
"ECLHitsInjLER";
233 Hits = (TH1*)
findHist(locationHits.Data());
234 locationTriggers =
"ECLEHitsInjLER";
238 Triggers = (TH1*)
findHist(locationTriggers.Data());
241 if (Hits && Triggers) {
249 locationHits =
"ECLHitsInjHER";
253 Hits = (TH1*)
findHist(locationHits.Data());
254 locationTriggers =
"ECLEHitsInjHER";
258 Triggers = (TH1*)
findHist(locationTriggers.Data());
261 if (Hits && Triggers) {
269 locationHits =
"ECLBurstsInjLER";
273 Hits = (TH1*)
findHist(locationHits.Data());
274 locationTriggers =
"ECLEBurstsInjLER";
278 Triggers = (TH1*)
findHist(locationTriggers.Data());
280 if (Hits && Triggers) {
289 locationHits =
"ECLBurstsInjHER";
293 Hits = (TH1*)
findHist(locationHits.Data());
294 locationTriggers =
"ECLEBurstsInjHER";
298 Triggers = (TH1*)
findHist(locationTriggers.Data());
300 if (Hits && Triggers) {
313 locationHits =
"TOPOccInjLER";
315 Hits = (TH1*)
findHist(locationHits.Data());
316 locationTriggers =
"TOPEOccInjLER";
320 Triggers = (TH1*)
findHist(locationTriggers.Data());
322 if (Hits && Triggers) {
330 locationHits =
"TOPOccInjHER";
334 Hits = (TH1*)
findHist(locationHits.Data());
335 locationTriggers =
"TOPEOccInjHER";
339 Triggers = (TH1*)
findHist(locationTriggers.Data());
341 if (Hits && Triggers) {
354 locationHits =
"ARICHOccInjLER";
356 Hits = (TH1*)
findHist(locationHits.Data());
357 locationTriggers =
"ARICHEOccInjLER";
361 Triggers = (TH1*)
findHist(locationTriggers.Data());
363 if (Hits && Triggers) {
371 locationHits =
"ARICHOccInjHER";
375 Hits = (TH1*)
findHist(locationHits.Data());
376 locationTriggers =
"ARICHEOccInjHER";
380 Triggers = (TH1*)
findHist(locationTriggers.Data());
382 if (Hits && Triggers) {
393 locationHits =
"KLMOccInjLER";
395 Hits = (TH1*)
findHist(locationHits.Data());
396 locationTriggers =
"KLMTrigInjLER";
400 Triggers = (TH1*)
findHist(locationTriggers.Data());
402 if (Hits && Triggers) {
410 locationHits =
"KLMOccInjHER";
414 Hits = (TH1*)
findHist(locationHits.Data());
415 locationTriggers =
"KLMTrigInjHER";
419 Triggers = (TH1*)
findHist(locationTriggers.Data());
421 if (Hits && Triggers) {
The base class for the histogram analysis module.
static TH1 * findHist(const std::string &histname, bool onlyIfUpdated=false)
Get histogram from list (no other search).
TH1F * m_hInjectionLERKLM
KLM occupancy after LER injection.
TH1F * m_hInjectionLERTOP
TOP Occ.
TCanvas * m_cInjectionLERSVD
Final Canvas.
TCanvas * m_cInjectionLERECL
Final Canvas.
TCanvas * m_cInjectionHERPXDOcc
Final Canvas.
TH1F * m_hInjectionHERTOP
TOP Occ.
TCanvas * m_cBurstLERECL
Final Canvas.
TCanvas * m_cInjectionHERSVDOcc
Final Canvas.
TCanvas * m_cInjectionLERKLM
Canvas for KLM occupancy after LER injection.
TCanvas * m_cInjectionLERPXDOcc
Final Canvas.
void initialize(void) override final
Initializer.
TCanvas * m_cInjectionLERPXD
Final Canvas.
TH1F * m_hInjectionHERARICH
ARICH Occ.
TH1F * m_hInjectionHERECL
ECL Hits.
std::string m_pvPrefix
prefix for EPICS PVs
TCanvas * m_cBurstHERECL
Final Canvas.
TCanvas * m_cInjectionHERECL
Final Canvas.
TH1F * m_hInjectionHERPXD
PXD Hits.
TH1F * m_hInjectionLERSVD
SVD Hits.
TCanvas * m_cInjectionLERTOP
Final Canvas.
TCanvas * m_cInjectionHERTOP
Final Canvas.
TH1F * m_hInjectionLERARICH
ARICH Occ.
TCanvas * m_cInjectionHERKLM
Canvas for KLM occupancy after HER injection.
std::string m_histogramDirectoryName
name of histogram directory
TH1F * m_hInjectionLERPXD
PXD Hits.
TH1F * m_hInjectionHERKLM
KLM occupancy after HER injection.
TH1F * m_hInjectionLERECL
ECL Hits.
TCanvas * m_cInjectionHERARICH
Final Canvas.
TH1F * m_hInjectionHERSVDOcc
SVD Occ norm.
TH1F * m_hBurstLERECL
ECL Bursts.
TH1F * m_hInjectionHERSVD
SVD Hits.
TCanvas * m_cInjectionLERARICH
Final Canvas.
TH1F * m_hInjectionHERPXDOcc
PXD Occ norm.
DQMHistInjectionModule()
Constructor.
TCanvas * m_cInjectionLERSVDOcc
Final Canvas.
TH1F * m_hInjectionLERSVDOcc
SVD Occ norm.
TCanvas * m_cInjectionHERSVD
Final Canvas.
TH1F * m_hInjectionLERPXDOcc
PXD Occ norm.
TH1F * m_hBurstHERECL
ECL Bursts.
TCanvas * m_cInjectionHERPXD
Final Canvas.
void beginRun(void) override final
Called when entering a new run.
void event(void) override final
This method is called for each event.
static constexpr int getTotalChannelNumber()
Get total number of channels.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.