Belle II Software development
CDCTriggerETFModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef CDCTRIGGERETFModule_H
9#define CDCTRIGGERETFModule_H
10
11#include "framework/core/Module.h"
12#include <string>
13
14#include <framework/datastore/StoreArray.h>
15#include <framework/datastore/StoreObjPtr.h>
16#include <trg/cdc/dataobjects/CDCTriggerSegmentHit.h>
17#include <framework/dataobjects/BinnedEventT0.h>
18
19namespace Belle2 {
26 class CDCTriggerETFModule : public Module {
27
28 public:
29
32
35
37 virtual void initialize() override;
38
40 virtual void event() override;
41
42 protected:
46 unsigned m_threshold;
50 std::string m_EventTimeName;
51
52 private:
57 };
58
60} // namespace Belle2
61
62#endif // CDCTriggerETFModule_H
Module for the Event Time Finder of the CDC trigger.
std::string m_EventTimeName
name of the output StoreObjPtr holding the event time
virtual ~CDCTriggerETFModule()
Destructor.
virtual void initialize() override
Initialize the module and register DataStore arrays.
virtual void event() override
Run the ETF for an event.
unsigned m_threshold
bin threshold for event time
CDCTriggerETFModule()
Constructor, for setting module description and parameters.
StoreArray< CDCTriggerSegmentHit > m_hits
list of input track segment hits
bool m_trueEventTime
if true, always output 0 (assuming this is the true event time for MC)
StoreObjPtr< BinnedEventT0 > m_eventTime
StoreObjPtr holding the event time.
std::string m_hitCollectionName
name of the input track segment hit StoreArray
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.