9#include <rawdata/modules/TTDDQM/TTDDQMModule.h>
10#include <TDirectory.h>
40 TDirectory* oldDir = gDirectory;
47 "Triggers for LER veto tuning;Time since last injection in #mus;Time within beam cycle in #mus", 500, 0, 30000, 100, 0,
50 "Triggers for HER veto tuning;Time since last injection in #mus;Time within beam cycle in #mus", 500, 0, 30000, 100, 0,
54 "#delta Trigger Time since previous trigger;#delta t in #mus;Triggers/Time (0.5 #mus bins)", 100000, 0, 50000);
55 hTriggersPerBunch =
new TH1I(
"hTTDTriggerBunch",
"Triggers per Bunch;Bunch(rel);Triggers per 4 Bunches", 1280, 0, 1280 * 4);
57 hBunchInjLER =
new TH1I(
"hTTDBunchInjLER",
"Last Injected Bunch LER;Bunch(rel);Counts per 4 Bunches", 1280, 0, 1280 * 4);
58 hBunchInjHER =
new TH1I(
"hTTDBunchInjHER",
"Last Injected Bunch HER;Bunch(rel);Counts per 4 Bunches", 1280, 0, 1280 * 4);
61 "Correlation between triggered bunch and injected bunch in LER;Injected Bunch(rel);Triggered Bunch(rel)", 256, 0, 1280 * 4, 256, 0,
64 "Correlation between triggered bunch and injected bunch in HER;Injected Bunch(rel);Triggered Bunch(rel)", 256, 0, 1280 * 4, 256, 0,
68 "Offset between triggered bunch and injected bunch in LER;Injected Bunch(rel)-Triggered Bunch(rel);Counts per 4 Bunches", 1280, 0,
71 "Offset between triggered bunch and injected bunch in HER;Injected Bunch(rel)-Triggered Bunch(rel);Counts per 4 Bunches", 1280, 0,
117 float time_since_inj_in_us = time_since_inj_in_ticks / 127.;
119 int injected_bunch_in_ticks = ((time_since_inj_in_ticks - triggered_bunch_in_ticks + 1280) % 1280);
122 hTrigAfterInjHER->Fill(time_since_inj_in_us, time_since_inj_in_us -
int(time_since_inj_in_us / (5120 / 508.)) * (5120 / 508.));
124 hTrigBunchInjHER->Fill(injected_bunch_in_ticks * 4, triggered_bunch_in_ticks * 4);
125 hTrigBunchInjHERproj->Fill(((injected_bunch_in_ticks - triggered_bunch_in_ticks + 1280) % 1280) * 4);
127 hTrigAfterInjLER->Fill(time_since_inj_in_us, time_since_inj_in_us -
int(time_since_inj_in_us / (5120 / 508.)) * (5120 / 508.));
129 hTrigBunchInjLER->Fill(injected_bunch_in_ticks * 4, triggered_bunch_in_ticks * 4);
130 hTrigBunchInjLERproj->Fill(((injected_bunch_in_ticks - triggered_bunch_in_ticks + 1280) % 1280) * 4);
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void initialize() override final
initialize function
TH1I * hTriggersDeltaT
Histogram for Delta T to previous Trigger.
TH2I * hTrigAfterInjHER
Histogram Veto tuning triggers after HER injection.
TTDDQMModule()
Constructor defining the parameters.
TH2I * hTrigBunchInjLER
Histogram correlation triggered and injected bunch LER.
TH1I * hBunchInjHER
Histogram injected LER bunch (triggers)
void defineHisto() override final
defineHisto function
TH1I * hTrigBunchInjHERproj
Histogram offset triggered and injected bunch HER.
TH1I * hBunchInjLER
Histogram injected HER bunch (triggers)
void event() override final
event function
TH1I * hTrigBunchInjLERproj
Histogram offset triggered and injected bunch LER.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH2I * hTrigBunchInjHER
Histogram correlation triggered and injected bunch HER.
TH2I * hTrigAfterInjLER
Histogram Veto tuning triggers after LER injection.
void beginRun() override final
beginRun function
StoreObjPtr< EventLevelTriggerTimeInfo > m_EventLevelTriggerTimeInfo
Input object for TTD mdst object.
TH1I * hTriggersPerBunch
Histogram for Triggers per Bunch
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.