 |
Belle II Software
release-05-01-25
|
1 #include "trg/gdl/modules/trggdl/TRGGDLCosmicRunModule.h"
13 "Module that returns true, if the trigger condition "
14 "for the 2017 cosmic runs is fulfilled.\n"
15 "trigger conditions:\n"
16 " with back-to-back: two back-to-back track segments in superlayer 2 "
18 " without back-to-back: on track segment in superlayer 2 "
23 "Name of the input StoreArray of CDCTriggerSegmentHits.",
26 "Switch to turn back-to-back requirement on or off.",
29 "Switch to turn off the ECL part of the cosmic trigger.",
43 bool TSinMerger[12] = {
false};
49 unsigned mergerID = (
m_segmentHits[its]->getSegmentID() - 320) / 16;
50 TSinMerger[mergerID] =
true;
54 bool BackToBack =
false;
55 for (
unsigned i = 0; i < 6; ++i) {
56 BackToBack |= (TSinMerger[i] && TSinMerger[i + 6]);
61 for (
int itchit = 0; itchit <
m_tchit.getEntries(); itchit++) {
62 if ((
m_tchit[itchit] -> getNofTCHit()) > 0) {
virtual void event() override
Check the trigger condition and set return value.
void setDescription(const std::string &description)
Sets the description of the module.
bool m_skipECL
switch for turning off the ECL part
virtual void initialize() override
Initialize the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
std::string m_tsHitCollectionName
name of track segment hit list
StoreArray< TRGECLTrg > m_tchit
list of ECL trigger hits
Abstract base class for different kinds of events.
void setReturnValue(int value)
Sets the return value for this module as integer.
bool m_backToBack
switch for back-to-back condition
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
StoreArray< CDCTriggerSegmentHit > m_segmentHits
list of track segment hits