Belle II Software  release-05-02-19
SoftwareTriggerHLTDQMModule.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Chunhua Li, Thomas Hauth, Nils Braun, Markus Prim *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <hlt/softwaretrigger/modules/dqm/SoftwareTriggerHLTDQMModule.h>
11 
12 #include <TDirectory.h>
13 
14 #include <hlt/softwaretrigger/core/SoftwareTriggerDBHandler.h>
15 #include <hlt/softwaretrigger/core/FinalTriggerDecisionCalculator.h>
16 
17 #include <framework/core/ModuleParam.templateDetails.h>
18 
19 #include <algorithm>
20 #include <fstream>
21 
22 using namespace Belle2;
23 using namespace SoftwareTrigger;
24 
25 REG_MODULE(SoftwareTriggerHLTDQM)
26 
28 {
29  setDescription("Monitor Physics Trigger");
30  setPropertyFlags(c_ParallelProcessingCertified);
31 
32  // Fill in the default values of the module parameters
33  m_param_variableIdentifiers = {};
34 
35  m_param_cutResultIdentifiers["filter"]["filter"] = {"total_result"};
36 
37  addParam("cutResultIdentifiers", m_param_cutResultIdentifiers,
38  "Which cuts should be reported? Please remember to include the total_result also, if wanted.",
39  m_param_cutResultIdentifiers);
40 
41  addParam("cutResultIdentifiersIgnored", m_param_cutResultIdentifiersIgnored,
42  "Which cuts should be ignored? This will display cleaner trigger lines, e.g. to clear them from bhabha contamination. "
43  "Vetoes on skims do not apply in filter plot and vice versa.",
44  m_param_cutResultIdentifiersIgnored);
45 
46  addParam("cutResultIdentifiersPerUnit", m_param_cutResultIdentifiersPerUnit,
47  "Which cuts should be reported per unit?",
48  m_param_cutResultIdentifiersPerUnit);
49 
50  addParam("variableIdentifiers", m_param_variableIdentifiers,
51  "Which variables should be reported?",
52  m_param_variableIdentifiers);
53 
54  addParam("l1Identifiers", m_param_l1Identifiers,
55  "Which l1 identifiers to report?",
56  m_param_l1Identifiers);
57 
58  addParam("additionalL1Identifiers", m_param_additionalL1Identifiers,
59  "Which additional l1 identifiers to be added to the l1 total result plot?",
60  m_param_additionalL1Identifiers);
61 
62  addParam("createTotalResultHistograms", m_param_create_total_result_histograms,
63  "Create total result histogram?",
64  true);
65 
66  addParam("createExpRunEventHistograms", m_param_create_exp_run_event_histograms,
67  "Create exp/run/event histograms?",
68  true);
69 
70  addParam("createHLTUnitHistograms", m_param_create_hlt_unit_histograms,
71  "Create HLT unit histograms?",
72  false);
73 
74  addParam("createErrorFlagHistograms", m_param_create_error_flag_histograms,
75  "Create Error Flag histograms?",
76  false);
77 
78  addParam("histogramDirectoryName", m_param_histogramDirectoryName,
79  "SoftwareTrigger DQM histograms will be put into this directory", m_param_histogramDirectoryName);
80 
81  addParam("pathLocation", m_param_pathLocation,
82  "Location of the module in the path: before filter or after filter", m_param_pathLocation);
83 }
84 
86 {
87  TDirectory* oldDirectory = nullptr;
88 
89  if (!m_param_histogramDirectoryName.empty()) {
90  oldDirectory = gDirectory;
91  TDirectory* histDir = oldDirectory->mkdir(m_param_histogramDirectoryName.c_str());
92  histDir->cd();
93  }
94 
95  for (auto const& variable : m_param_variableIdentifiers) {
96  // todo: make correct range
97  const unsigned int numberOfBins = 50;
98  const double lowerX = 0;
99  const double upperX = 50;
100  m_triggerVariablesHistograms.emplace(variable, new TH1F(variable.c_str(), variable.c_str(), numberOfBins, lowerX, upperX));
101  m_triggerVariablesHistograms[variable]->SetXTitle(("SoftwareTriggerVariable " + variable).c_str());
102  }
103 
104  for (const auto& cutIdentifier : m_param_cutResultIdentifiers) {
105 
106  const std::string& title = cutIdentifier.first;
107  const auto& mapVal = *(m_param_cutResultIdentifiers[title].begin());
108  const std::string& baseIdentifier = mapVal.first;
109  const auto& cuts = mapVal.second;
110  const int numberOfFlags = cuts.size();
111 
112  if (m_param_histogramDirectoryName == "softwaretrigger_skim_nobhabha") {
113  if (title == baseIdentifier)
114  m_cutResultHistograms.emplace(title,
115  new TH1F((title + "_nobhabha").c_str(), ("Events triggered in HLT " + baseIdentifier).c_str(),
116  numberOfFlags, 0,
117  numberOfFlags));
118  else
119  m_cutResultHistograms.emplace(title,
120  new TH1F((baseIdentifier + "_" + title + "_nobhabha").c_str(),
121  ("Events triggered in HLT " + baseIdentifier + " : " + title).c_str(),
122  numberOfFlags, 0,
123  numberOfFlags));
124  } else {
125  if (title == baseIdentifier)
126  m_cutResultHistograms.emplace(title,
127  new TH1F(title.c_str(), ("Events triggered in HLT " + baseIdentifier).c_str(),
128  numberOfFlags, 0,
129  numberOfFlags));
130  else
131  m_cutResultHistograms.emplace(title,
132  new TH1F((baseIdentifier + "_" + title).c_str(), ("Events triggered in HLT " + baseIdentifier + " : " + title).c_str(),
133  numberOfFlags, 0,
134  numberOfFlags));
135  }
136  m_cutResultHistograms[title]->SetXTitle("");
137  m_cutResultHistograms[title]->SetOption("hist");
138  m_cutResultHistograms[title]->SetStats(false);
139  m_cutResultHistograms[title]->SetMinimum(0);
140 
141  // Set bin labels
142  int index = 0;
143  for (const std::string& cutTitle : cuts) {
144  index++;
145  m_cutResultHistograms[title]->GetXaxis()->SetBinLabel(index, cutTitle.c_str());
146  }
147  }
148 
149  // We add one for the total result
151  m_cutResultHistograms.emplace("total_result",
152  new TH1F("total_result", "Total Result of HLT (absolute numbers)", 1, 0, 0));
153  m_cutResultHistograms["total_result"]->SetXTitle("Total Cut Result");
154  m_cutResultHistograms["total_result"]->SetOption("hist");
155  m_cutResultHistograms["total_result"]->SetStats(false);
156  m_cutResultHistograms["total_result"]->SetMinimum(0);
157  }
158 
159  for (const std::string& trigger : m_param_l1Identifiers) {
160  m_l1Histograms.emplace(trigger, new TH1F(trigger.c_str(), ("Events triggered in L1 " + trigger).c_str(), 1, 0, 0));
161  m_l1Histograms[trigger]->SetXTitle("");
162  m_l1Histograms[trigger]->SetOption("hist");
163  m_l1Histograms[trigger]->SetStats(false);
164  m_l1Histograms[trigger]->SetMinimum(0);
165  }
166 
167  // And also one for the total numbers
169  m_l1Histograms.emplace("l1_total_result",
170  new TH1F("l1_total_result", "Events triggered in L1 (total results)", 1, 0, 0));
171  m_l1Histograms["l1_total_result"]->SetXTitle("Total L1 Cut Result");
172  m_l1Histograms["l1_total_result"]->SetOption("hist");
173  m_l1Histograms["l1_total_result"]->SetStats(false);
174  m_l1Histograms["l1_total_result"]->SetMinimum(0);
175 
176  const int numberOfL1Flags = m_param_l1Identifiers.size() + m_param_additionalL1Identifiers.size();
177  m_l1Histograms["l1_total_result"]->SetBins(numberOfL1Flags, 0, numberOfL1Flags);
178  // Set bin labels
179  int l1Index = 0;
180  for (const std::string& l1Trigger : m_param_l1Identifiers) {
181  l1Index++;
182  m_l1Histograms["l1_total_result"]->GetXaxis()->SetBinLabel(l1Index, l1Trigger.c_str());
183  }
184  for (const std::string& l1Trigger : m_param_additionalL1Identifiers) {
185  l1Index++;
186  m_l1Histograms["l1_total_result"]->GetXaxis()->SetBinLabel(l1Index, l1Trigger.c_str());
187  }
188  }
189 
191  m_runInfoHistograms.emplace("run_number", new TH1D("run_number", "Run Number", 100, 0, 10000));
192  m_runInfoHistograms.emplace("event_number", new TH1D("event_number", "Event Number", 100, 0, 1'000'000));
193  m_runInfoHistograms.emplace("experiment_number", new TH1D("experiment_number", "Experiment Number", 50, 0, 50));
194  }
195 
197  if (m_param_histogramDirectoryName != "softwaretrigger_before_filter") {
198  m_runInfoHistograms.emplace("hlt_unit_number", new TH1D("hlt_unit_number_after_filter",
199  ("Number of events per HLT unit " + m_param_pathLocation).c_str(), HLTUnit::max_hlt_units + 1, 0,
201  } else {
202  m_runInfoHistograms.emplace("hlt_unit_number", new TH1D("hlt_unit_number",
203  ("Number of events per HLT unit " + m_param_pathLocation).c_str(), HLTUnit::max_hlt_units + 1, 0,
205  }
206 
207  m_runInfoHistograms["hlt_unit_number"]->SetMinimum(0);
208 
209  for (const auto& cutIdentifierPerUnit : m_param_cutResultIdentifiersPerUnit) {
210  m_cutResultPerUnitHistograms.emplace(cutIdentifierPerUnit , new TH1F((cutIdentifierPerUnit + "_per_unit").c_str(),
211  ("Events triggered per unit in HLT : " + cutIdentifierPerUnit).c_str(), HLTUnit::max_hlt_units + 1, 0,
213  m_cutResultPerUnitHistograms[cutIdentifierPerUnit]->SetXTitle("HLT unit number");
214  m_cutResultPerUnitHistograms[cutIdentifierPerUnit]->SetOption("histe");
215  m_cutResultPerUnitHistograms[cutIdentifierPerUnit]->SetMinimum(0);
216  }
217 
218  }
219 
221  m_runInfoHistograms.emplace("error_flag", new TH1D("error_flag", "Error Flag", 4, 0, 4));
222  m_runInfoHistograms["error_flag"]->SetStats(false);
223  m_runInfoHistograms["error_flag"]->SetOption("hist");
224  m_runInfoHistograms["error_flag"]->SetMinimum(0);
225  }
226 
227  if (oldDirectory) {
228  oldDirectory->cd();
229  }
230 }
231 
233 {
234  // Register histograms (calls back defineHisto)
235  REG_HISTOGRAM
236 
238  std::ifstream file;
239  file.open(HLTUnit::hlt_unit_file);
240  if (file.good()) {
241  std::string host;
242  getline(file, host);
243  m_hlt_unit = atoi(host.substr(3, 2).c_str());
244  file.close();
245  } else {
246  B2WARNING("HLT unit number not found");
247  }
248  }
249 }
250 
252 {
253  // this might be pre-scaled for performance reasons in the final configuration, therefore this structure
254  // might not be filled in every event
255  if (m_variables.isValid()) {
256  for (auto& variableNameAndTH1F : m_triggerVariablesHistograms) {
257  const std::string& variable = variableNameAndTH1F.first;
258  TH1F* histogram = variableNameAndTH1F.second;
259 
260  // try to load this variable from the computed trigger variables
261  if (not m_variables->has(variable)) {
262  B2ERROR("Variable " << variable << " configured for SoftwareTriggerDQM plotting is not available");
263  } else {
264  const double value = m_variables->getVariable(variable);
265  histogram->Fill(value);
266  }
267  }
268  }
269 
270  if (m_triggerResult.isValid()) {
271  const auto results = m_triggerResult->getResults();
272 
273  for (auto const& cutIdentifier : m_param_cutResultIdentifiers) {
274  const std::string& title = cutIdentifier.first;
275  const auto& mapVal = *(m_param_cutResultIdentifiers[title].begin());
276  const std::string& baseIdentifier = mapVal.first;
277  const auto& cuts = mapVal.second;
278 
279  // check if we want to ignore it
280  bool skip = false;
281  const auto& cutsIgnored = m_param_cutResultIdentifiersIgnored[baseIdentifier];
282 
283  for (const std::string& cutTitleIgnored : cutsIgnored) {
284  const std::string& cutNameIgnored = cutTitleIgnored.substr(0, cutTitleIgnored.find("\\"));
285  const std::string& fullCutIdentifierIgnored = SoftwareTriggerDBHandler::makeFullCutName(baseIdentifier, cutNameIgnored);
286 
287  auto const cutEntryIgnored = results.find(fullCutIdentifierIgnored);
288 
289  if (cutEntryIgnored != results.end()) {
290  if (cutEntryIgnored->second > 0) skip = true;
291  }
292  }
293 
294  float index = 0;
295  for (const std::string& cutTitle : cuts) {
296  index++;
297  const std::string& cutName = cutTitle.substr(0, cutTitle.find("\\"));
298  const std::string& fullCutIdentifier = SoftwareTriggerDBHandler::makeFullCutName(baseIdentifier, cutName);
299 
300  // check if the cutResult is in the list, be graceful when not available
301  // Create results object instead of calling .find() on a temporary object. This will cause undefined behaviour
302  // when checking again the .end() pointer, when the .end() pointer is also created from a temporary object.
303  auto const cutEntry = results.find(fullCutIdentifier);
304 
305  if (cutEntry != results.end()) {
306  const int cutResult = cutEntry->second;
307  if (cutResult > 0 and not skip) {
308  m_cutResultHistograms[title]->Fill(index - 0.5);
309  }
310  }
311  }
312 
314  if (title == baseIdentifier) {
315  const std::string& totalCutIdentifier = SoftwareTriggerDBHandler::makeTotalResultName(baseIdentifier);
316  const int cutResult = static_cast<int>(m_triggerResult->getResult(totalCutIdentifier));
317 
318  m_cutResultHistograms["total_result"]->Fill(totalCutIdentifier.c_str(), cutResult > 0);
319  }
320  }
321  }
322 
325  m_cutResultHistograms["total_result"]->Fill("total_result", totalResult > 0);
326  }
327 
329  for (const std::string& cutIdentifierPerUnit : m_param_cutResultIdentifiersPerUnit) {
330  const std::string& cutName = cutIdentifierPerUnit.substr(0, cutIdentifierPerUnit.find("\\"));
331  const std::string& fullCutIdentifier = SoftwareTriggerDBHandler::makeFullCutName("filter", cutName);
332 
333  // check if the cutResult is in the list, be graceful when not available
334  auto const cutEntry = results.find(fullCutIdentifier);
335 
336  if (cutEntry != results.end()) {
337  const int cutResult = cutEntry->second;
338  if (cutResult > 0) {
339  m_cutResultPerUnitHistograms[cutIdentifierPerUnit]->Fill(m_hlt_unit);
340  }
341  }
342  }
343  }
344 
345  if (m_l1TriggerResult.isValid() and m_l1NameLookup.isValid()) {
346  float l1Index = 0;
347  for (const std::string& l1Trigger : m_param_l1Identifiers) {
348  l1Index++;
349  const int triggerBit = m_l1NameLookup->getoutbitnum(l1Trigger.c_str());
350  if (triggerBit < 0) {
351  B2WARNING("Could not find"
352  << LogVar("L1 trigger line", l1Trigger));
353  continue;
354  }
355  const bool triggerResult = m_l1TriggerResult->testPsnm(triggerBit);
357  if (triggerResult) {
358  m_l1Histograms["l1_total_result"]->Fill(l1Index - 0.5);
359  }
360  }
361 
362  if (not triggerResult) {
363  continue;
364  }
365 
366  for (auto const& cutIdentifier : m_param_cutResultIdentifiers) {
367  const std::string& title = cutIdentifier.first;
368  const auto& mapVal = *(m_param_cutResultIdentifiers[title].begin());
369  const std::string& baseIdentifier = mapVal.first;
370  const auto& cuts = mapVal.second;
371 
372  if (title == baseIdentifier) {
373  for (const std::string& cutTitle : cuts) {
374  const std::string& cutName = cutTitle.substr(0, cutTitle.find("\\"));
375  const std::string& fullCutIdentifier = SoftwareTriggerDBHandler::makeFullCutName(baseIdentifier, cutName);
376 
377  // check if the cutResult is in the list, be graceful when not available
378  auto const cutEntry = results.find(fullCutIdentifier);
379 
380  if (cutEntry != results.end()) {
381  const int cutResult = cutEntry->second;
382  m_l1Histograms[l1Trigger]->Fill(cutTitle.c_str(), cutResult > 0);
383  }
384  }
385  }
386  }
387 
389  m_l1Histograms[l1Trigger]->Fill("hlt_result", totalResult > 0);
390  m_l1Histograms[l1Trigger]->LabelsDeflate("X");
391  }
393  for (const std::string& l1Trigger : m_param_additionalL1Identifiers) {
394  l1Index++;
395  const int triggerBit = m_l1NameLookup->getoutbitnum(l1Trigger.c_str());
396  if (triggerBit < 0) {
397  B2WARNING("Could not find"
398  << LogVar("L1 trigger line", l1Trigger));
399  continue;
400  }
401  const bool triggerResult = m_l1TriggerResult->testPsnm(triggerBit);
402  if (triggerResult) {
403  m_l1Histograms["l1_total_result"]->Fill(l1Index - 0.5);
404  }
405  }
406  }
407  }
408  }
409 
411  m_runInfoHistograms["run_number"]->Fill(m_eventMetaData->getRun());
412  m_runInfoHistograms["event_number"]->Fill(m_eventMetaData->getEvent());
413  m_runInfoHistograms["experiment_number"]->Fill(m_eventMetaData->getExperiment());
414  }
415 
417  m_runInfoHistograms["error_flag"]->Fill("B2LinkPacketCRCError",
418  (bool)(m_eventMetaData->getErrorFlag() & EventMetaData::EventErrorFlag::c_B2LinkPacketCRCError));
419  m_runInfoHistograms["error_flag"]->Fill("B2LinkEventCRCError",
420  (bool)(m_eventMetaData->getErrorFlag() & EventMetaData::EventErrorFlag::c_B2LinkEventCRCError));
421  m_runInfoHistograms["error_flag"]->Fill("HLTCrash",
422  (bool)(m_eventMetaData->getErrorFlag() & EventMetaData::EventErrorFlag::c_HLTCrash));
423  m_runInfoHistograms["error_flag"]->Fill("ReconstructionAbort",
424  (bool)(m_eventMetaData->getErrorFlag() & EventMetaData::EventErrorFlag::c_ReconstructionAbort));
425  }
426 
428  m_runInfoHistograms["hlt_unit_number"]->Fill(m_hlt_unit);
429  }
430 }
431 
433 {
434  std::for_each(m_cutResultHistograms.begin(), m_cutResultHistograms.end(),
435  [](auto & it) { it.second->Reset(); });
436  std::for_each(m_cutResultPerUnitHistograms.begin(), m_cutResultPerUnitHistograms.end(),
437  [](auto & it) { it.second->Reset(); });
438  std::for_each(m_triggerVariablesHistograms.begin(), m_triggerVariablesHistograms.end(),
439  [](auto & it) { it.second->Reset(); });
440  std::for_each(m_l1Histograms.begin(), m_l1Histograms.end(),
441  [](auto & it) { it.second->Reset(); });
442  std::for_each(m_runInfoHistograms.begin(), m_runInfoHistograms.end(),
443  [](auto & it) { it.second->Reset(); });
444 }
445 
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_cutResultPerUnitHistograms
std::map< std::string, TH1F * > m_cutResultPerUnitHistograms
histograms for the final sw trigger decisions for each base identifier per unit
Definition: SoftwareTriggerHLTDQMModule.h:111
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_cutResultHistograms
std::map< std::string, TH1F * > m_cutResultHistograms
histograms for the final sw trigger decisions for each base identifier
Definition: SoftwareTriggerHLTDQMModule.h:108
Belle2::SoftwareTrigger::SoftwareTriggerDBHandler::makeFullCutName
static std::string makeFullCutName(const std::string &baseCutIdentifier, const std::string &cutIdentifier)
Helper function to compile the full identifier from the base and the specific cut name.
Definition: SoftwareTriggerDBHandler.cc:39
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_create_hlt_unit_histograms
bool m_param_create_hlt_unit_histograms
Create HLT unit number histograms?
Definition: SoftwareTriggerHLTDQMModule.h:89
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_runInfoHistograms
std::map< std::string, TH1D * > m_runInfoHistograms
histograms with the run information
Definition: SoftwareTriggerHLTDQMModule.h:120
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_l1NameLookup
DBObjPtr< TRGGDLDBFTDLBits > m_l1NameLookup
Dataobjects.
Definition: SoftwareTriggerHLTDQMModule.h:136
Belle2::SoftwareTrigger::HLTUnit::max_hlt_units
static constexpr unsigned int max_hlt_units
Maximum number of HLT units used during the experiment.
Definition: SoftwareTriggerHLTDQMModule.h:142
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_histogramDirectoryName
std::string m_param_histogramDirectoryName
Directory to put the generated histograms.
Definition: SoftwareTriggerHLTDQMModule.h:98
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_variables
StoreObjPtr< SoftwareTriggerVariables > m_variables
STM cut variables.
Definition: SoftwareTriggerHLTDQMModule.h:130
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::initialize
void initialize() override
Module functions to be called from main process.
Definition: SoftwareTriggerHLTDQMModule.cc:232
Belle2::SoftwareTrigger::FinalTriggerDecisionCalculator::getFinalTriggerDecision
static bool getFinalTriggerDecision(const SoftwareTriggerResult &result, bool forgetTotalResult=false)
Calculate the final cut decision using all "total_results" of all sub triggers in the software trigge...
Definition: FinalTriggerDecisionCalculator.cc:17
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_additionalL1Identifiers
std::vector< std::string > m_param_additionalL1Identifiers
Which additional L1 cuts should be added to the L1 total result plot?
Definition: SoftwareTriggerHLTDQMModule.h:80
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_cutResultIdentifiersIgnored
std::map< std::string, std::vector< std::string > > m_param_cutResultIdentifiersIgnored
Which cuts should be ignored? This can be used to clear trigger lines from e.g. bhabha contamination.
Definition: SoftwareTriggerHLTDQMModule.h:71
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_l1Histograms
std::map< std::string, TH1F * > m_l1Histograms
histogram with the L1 information
Definition: SoftwareTriggerHLTDQMModule.h:117
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_hlt_unit
int m_hlt_unit
HLT unit number of the machine used.
Definition: SoftwareTriggerHLTDQMModule.h:104
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_triggerResult
StoreObjPtr< SoftwareTriggerResult > m_triggerResult
STM cut results.
Definition: SoftwareTriggerHLTDQMModule.h:124
Belle2::SoftwareTrigger::HLTUnit::hlt_unit_file
static constexpr char hlt_unit_file[]
Location of HLT unit number information.
Definition: SoftwareTriggerHLTDQMModule.h:145
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_variableIdentifiers
std::vector< std::string > m_param_variableIdentifiers
Which variables should be reported?
Definition: SoftwareTriggerHLTDQMModule.h:95
LogVar
Class to store variables with their name which were sent to the logging service.
Definition: LogVariableStream.h:24
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_cutResultIdentifiers
std::map< std::string, std::map< std::string, std::vector< std::string > > > m_param_cutResultIdentifiers
Which cuts should be reported? Please remember to include the total_result also, if wanted.
Definition: SoftwareTriggerHLTDQMModule.h:68
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::event
void event() override
Module functions to be called from event process.
Definition: SoftwareTriggerHLTDQMModule.cc:251
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::beginRun
void beginRun() override
Reset all histogram entries for a new run.
Definition: SoftwareTriggerHLTDQMModule.cc:432
Belle2::SoftwareTrigger::SoftwareTriggerDBHandler::makeTotalResultName
static std::string makeTotalResultName(const std::string &baseIdentifier="all")
Handy function to create the name related to the total result of a specific trigger stage (either fil...
Definition: SoftwareTriggerDBHandler.cc:48
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_create_total_result_histograms
bool m_param_create_total_result_histograms
Create total result histogram?
Definition: SoftwareTriggerHLTDQMModule.h:83
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule
Module defining the STM histograms.
Definition: SoftwareTriggerHLTDQMModule.h:48
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_create_error_flag_histograms
bool m_param_create_error_flag_histograms
Create error flag histograms?
Definition: SoftwareTriggerHLTDQMModule.h:92
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_create_exp_run_event_histograms
bool m_param_create_exp_run_event_histograms
Create exp/run/event number histograms?
Definition: SoftwareTriggerHLTDQMModule.h:86
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_eventMetaData
StoreObjPtr< EventMetaData > m_eventMetaData
Event Info.
Definition: SoftwareTriggerHLTDQMModule.h:133
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_l1Identifiers
std::vector< std::string > m_param_l1Identifiers
Which L1 cuts should be reported?
Definition: SoftwareTriggerHLTDQMModule.h:77
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_l1TriggerResult
StoreObjPtr< TRGSummary > m_l1TriggerResult
L1 cut results.
Definition: SoftwareTriggerHLTDQMModule.h:127
Belle2::HistoModule
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_triggerVariablesHistograms
std::map< std::string, TH1F * > m_triggerVariablesHistograms
histograms for the software trigger variables in all calculators (although maybe not filled)
Definition: SoftwareTriggerHLTDQMModule.h:114
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_cutResultIdentifiersPerUnit
std::vector< std::string > m_param_cutResultIdentifiersPerUnit
Which cuts should be reported per unit?
Definition: SoftwareTriggerHLTDQMModule.h:74
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::m_param_pathLocation
std::string m_param_pathLocation
Location of the module in the path: before filter or after filter.
Definition: SoftwareTriggerHLTDQMModule.h:101
Belle2::SoftwareTrigger::SoftwareTriggerHLTDQMModule::defineHisto
void defineHisto() override
Histogram definition.
Definition: SoftwareTriggerHLTDQMModule.cc:85