Belle II Software  release-08-01-10
TOPCosmicT0FinderModule.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 
9 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <framework/database/DBObjPtr.h>
13 #include <top/dbobjects/TOPFrontEndSetting.h>
14 
15 namespace Belle2 {
28 
29  public:
30 
35 
40  {}
41 
46  virtual void initialize() override;
47 
51  virtual void event() override;
52 
57  virtual void terminate() override;
58 
59  private:
60 
61  // steering parameters
63  unsigned m_minHits;
64  double m_minSignal;
65  bool m_applyT0;
66  int m_numBins;
67  double m_timeRange;
68  double m_sigma;
71  // database
74  // other
75  int m_num = 0;
76  int m_acceptedCount = 0;
77  int m_successCount = 0;
79  };
80 
82 } // Belle2 namespace
83 
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
Event T0 finder for global cosmic runs.
bool m_applyT0
if true, subtract T0 in TOPDigits
DBObjPtr< TOPFrontEndSetting > m_feSetting
front-end settings
bool m_saveHistograms
flag to save histograms
double m_minSignal
minimal number of expected signal photons
int m_numBins
number of bins to which time range is divided
bool m_useIncomingTrack
if true use incoming track, otherwise use outcoming
int m_successCount
counter for successfully determined T0
int m_acceptedCount
counter for accepted events
unsigned m_minHits
minimal number of hits on TOP module
double m_timeRange
time range in which to search [ns]
double m_sigma
additional time spread added to PDF [ns]
virtual ~TOPCosmicT0FinderModule()
Destructor.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
Abstract base class for different kinds of events.