Belle II Software development
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
15namespace Belle2 {
25
26 public:
27
32
37 {}
38
43 virtual void initialize() override;
44
48 virtual void event() override;
49
54 virtual void terminate() override;
55
56 private:
57
58 // steering parameters
60 unsigned m_minHits;
61 double m_minSignal;
62 bool m_applyT0;
64 double m_timeRange;
65 double m_sigma;
68 // database
71 // other
72 int m_num = 0;
76 };
77
79} // Belle2 namespace
80
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.