Belle II Software  release-05-02-19
TOPCosmicT0FinderModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 
15 namespace Belle2 {
24  class TOPCosmicT0FinderModule : public Module {
25 
26  public:
27 
32 
36  virtual ~TOPCosmicT0FinderModule();
37 
42  virtual void initialize() override;
43 
48  virtual void beginRun() override;
49 
53  virtual void event() override;
54 
59  virtual void endRun() override;
60 
65  virtual void terminate() override;
66 
67  private:
68 
69  bool m_useIncomingTrack;
70  unsigned m_minHits;
71  double m_minSignal;
72  bool m_applyT0;
73  int m_numBins;
74  double m_timeRange;
75  double m_sigma;
76  bool m_saveHistograms;
78  int m_num = 0;
79  int m_acceptedCount = 0;
80  int m_successCount = 0;
82  };
83 
85 } // Belle2 namespace
86 
Belle2::TOPCosmicT0FinderModule::m_sigma
double m_sigma
additional time spread added to PDF [ns]
Definition: TOPCosmicT0FinderModule.h:83
Belle2::TOPCosmicT0FinderModule::m_successCount
int m_successCount
counter for successfully determined T0
Definition: TOPCosmicT0FinderModule.h:88
Belle2::TOPCosmicT0FinderModule::m_num
int m_num
histogram number
Definition: TOPCosmicT0FinderModule.h:86
Belle2::TOPCosmicT0FinderModule::m_useIncomingTrack
bool m_useIncomingTrack
if true use incoming track, otherwise use outcoming
Definition: TOPCosmicT0FinderModule.h:77
Belle2::TOPCosmicT0FinderModule::event
virtual void event() override
Event processor.
Definition: TOPCosmicT0FinderModule.cc:117
Belle2::TOPCosmicT0FinderModule::terminate
virtual void terminate() override
Termination action.
Definition: TOPCosmicT0FinderModule.cc:286
Belle2::TOPCosmicT0FinderModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: TOPCosmicT0FinderModule.cc:113
Belle2::TOPCosmicT0FinderModule::endRun
virtual void endRun() override
End-of-run action.
Definition: TOPCosmicT0FinderModule.cc:282
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPCosmicT0FinderModule::m_applyT0
bool m_applyT0
if true, subtract T0 in TOPDigits
Definition: TOPCosmicT0FinderModule.h:80
Belle2::TOPCosmicT0FinderModule::m_acceptedCount
int m_acceptedCount
counter for accepted events
Definition: TOPCosmicT0FinderModule.h:87
Belle2::TOPCosmicT0FinderModule::m_saveHistograms
bool m_saveHistograms
flag to save histograms
Definition: TOPCosmicT0FinderModule.h:84
Belle2::TOPCosmicT0FinderModule::TOPCosmicT0FinderModule
TOPCosmicT0FinderModule()
Constructor.
Definition: TOPCosmicT0FinderModule.cc:56
Belle2::TOPCosmicT0FinderModule::m_minSignal
double m_minSignal
minimal number of expected signal photons
Definition: TOPCosmicT0FinderModule.h:79
Belle2::TOPCosmicT0FinderModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: TOPCosmicT0FinderModule.cc:82
Belle2::TOPCosmicT0FinderModule::m_minHits
unsigned m_minHits
minimal number of hits on TOP module
Definition: TOPCosmicT0FinderModule.h:78
Belle2::TOPCosmicT0FinderModule::m_timeRange
double m_timeRange
time range in which to search [ns]
Definition: TOPCosmicT0FinderModule.h:82
Belle2::TOPCosmicT0FinderModule::~TOPCosmicT0FinderModule
virtual ~TOPCosmicT0FinderModule()
Destructor.
Definition: TOPCosmicT0FinderModule.cc:78
Belle2::TOPCosmicT0FinderModule::m_numBins
int m_numBins
number of bins to which time range is divided
Definition: TOPCosmicT0FinderModule.h:81