 |
Belle II Software
release-05-02-19
|
1 #include "trg/cdc/modules/trgcdc/CDCTriggerETFModule.h"
15 "The Event Time Finder module of the CDC trigger.\n"
16 "Uses fastest time of CDCTriggerSegmentHits to find the event time.\n"
21 "Name of the input StoreArray of CDCTriggerSegmentHits.",
24 "Name of the output StoreObjPtr.",
28 "If true, always output 0 (assuming this is the true event time for MC).",
32 "Event time is given by first timing bin with more than threshold hits.",
57 TH1* h =
new TH1D(
"h",
"h", 1000, -500, 499);
59 for (
int iClk = 0; iClk < 64; ++iClk) {
60 for (
int iTS = 0; iTS <
m_hits.getEntries(); ++iTS) {
61 int foundT =
m_hits[iTS]->foundTime();
62 if (foundT / 16 + 31 != iClk)
64 int fastestT =
m_hits[iTS]->fastestTime();
65 int whdiff = foundT - fastestT;
68 for (
int iSL = 0; iSL < 9; ++iSL) {
69 if (
m_hits[iTS]->getISuperLayer() != iSL)
72 if (cnt[iSL][iClk] <= 10) {
74 B2DEBUG(100,
"fill fastestT " << fastestT);
84 for (
int i = 450; i < 600; ++i) {
unsigned m_threshold
bin threshold for event time
bool m_trueEventTime
if true, always output 0 (assuming this is the true event time for MC)
void setDescription(const std::string &description)
Sets the description of the module.
StoreArray< CDCTriggerSegmentHit > m_hits
list of input track segment hits
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
StoreObjPtr< BinnedEventT0 > m_eventTime
StoreObjPtr holding the event time.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
std::string m_EventTimeName
name of the output StoreObjPtr holding the event time
virtual void event() override
Run the ETF for an event.
Abstract base class for different kinds of events.
virtual void initialize() override
Initialize the module and register DataStore arrays.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
std::string m_hitCollectionName
name of the input track segment hit StoreArray