Belle II Software  release-08-01-10
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 
19 namespace Belle2 {
29  class CDCTriggerETFModule : public Module {
30 
31  public:
32 
35 
37  virtual ~CDCTriggerETFModule() {}
38 
40  virtual void initialize() override;
41 
43  virtual void event() override;
44 
45  protected:
49  unsigned m_threshold;
51  std::string m_hitCollectionName;
53  std::string m_EventTimeName;
54 
55  private:
60  };
61 
63 } // namespace Belle2
64 
65 #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
Abstract base class for different kinds of events.