Belle II Software  release-05-02-19
TOPModuleT0LLCollectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - 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 <calibration/CalibrationCollectorModule.h>
14 
15 #include <framework/datastore/StoreArray.h>
16 #include <framework/datastore/StoreObjPtr.h>
17 #include <mdst/dataobjects/Track.h>
18 #include <tracking/dataobjects/ExtHit.h>
19 #include <top/dataobjects/TOPDigit.h>
20 #include <top/dataobjects/TOPRecBunch.h>
21 #include <top/utilities/TrackSelector.h>
22 #include <top/reconstruction/TOPreco.h>
23 
24 #include <framework/database/DBObjPtr.h>
25 #include <top/dbobjects/TOPCalModuleT0.h>
26 
27 #include <string>
28 #include <vector>
29 
30 namespace Belle2 {
43  class TOPModuleT0LLCollectorModule : public CalibrationCollectorModule {
44 
45  public:
50 
51  private:
52 
56  virtual void prepare() final;
57 
61  virtual void collect() final;
62 
63 
65  enum {c_numModules = 16,
66  c_numSets = 4,
67  };
68 
69  // steering parameters
70  int m_numBins;
71  double m_timeRange;
72  double m_minBkgPerBar;
73  double m_scaleN0;
74  double m_sigmaSmear;
75  std::string m_sample;
76  double m_deltaEcms;
77  double m_dr;
78  double m_dz;
79  double m_minZ;
80  double m_maxZ;
81  std::string m_pdfOption;
83  // procedure
85  TOP::TOPreco::PDFoption m_PDFOption = TOP::TOPreco::c_Rough;
86  std::vector<std::string> m_names[c_numSets];
88  // collections
94  // database
97  };
98 
100 } // end namespace Belle2
Belle2::TOPModuleT0LLCollectorModule::m_dz
double m_dz
cut on POCA in z
Definition: TOPModuleT0LLCollectorModule.h:86
Belle2::TOPModuleT0LLCollectorModule::m_dr
double m_dr
cut on POCA in r
Definition: TOPModuleT0LLCollectorModule.h:85
Belle2::TOPModuleT0LLCollectorModule::m_timeRange
double m_timeRange
time range in which to search for the minimum [ns]
Definition: TOPModuleT0LLCollectorModule.h:79
Belle2::TOPModuleT0LLCollectorModule::m_recBunch
StoreObjPtr< TOPRecBunch > m_recBunch
reconstructed bunch
Definition: TOPModuleT0LLCollectorModule.h:100
Belle2::TOPModuleT0LLCollectorModule::prepare
virtual void prepare() final
Replacement for initialize().
Definition: TOPModuleT0LLCollectorModule.cc:81
Belle2::TOPModuleT0LLCollectorModule::TOPModuleT0LLCollectorModule
TOPModuleT0LLCollectorModule()
Constructor.
Definition: TOPModuleT0LLCollectorModule.cc:47
Belle2::TOPModuleT0LLCollectorModule::m_sample
std::string m_sample
sample type
Definition: TOPModuleT0LLCollectorModule.h:83
Belle2::TOPModuleT0LLCollectorModule::m_deltaEcms
double m_deltaEcms
c.m.s energy window
Definition: TOPModuleT0LLCollectorModule.h:84
Belle2::TOPModuleT0LLCollectorModule::m_moduleT0
DBObjPtr< TOPCalModuleT0 > m_moduleT0
module T0 calibration constants
Definition: TOPModuleT0LLCollectorModule.h:103
Belle2::TOPModuleT0LLCollectorModule::m_numBins
int m_numBins
number of bins to which search region is divided
Definition: TOPModuleT0LLCollectorModule.h:78
Belle2::DBObjPtr
Class for accessing objects in the database.
Definition: DBObjPtr.h:31
Belle2::TOPModuleT0LLCollectorModule::m_extHits
StoreArray< ExtHit > m_extHits
collection of extrapolated hits
Definition: TOPModuleT0LLCollectorModule.h:99
Belle2::TOPModuleT0LLCollectorModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition: TOPModuleT0LLCollectorModule.h:97
Belle2::TOPModuleT0LLCollectorModule::m_sigmaSmear
double m_sigmaSmear
additional smearing of PDF in [ns]
Definition: TOPModuleT0LLCollectorModule.h:82
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::TOPModuleT0LLCollectorModule::collect
virtual void collect() final
Replacement for event().
Definition: TOPModuleT0LLCollectorModule.cc:158
Belle2::TOPModuleT0LLCollectorModule::m_scaleN0
double m_scaleN0
scale factor for figure-of-merit N0
Definition: TOPModuleT0LLCollectorModule.h:81
Belle2::TOPModuleT0LLCollectorModule::m_pdfOption
std::string m_pdfOption
PDF option name.
Definition: TOPModuleT0LLCollectorModule.h:89
Belle2::TOP::TrackSelector
Utility for the track selection - used in various calibration modules.
Definition: TrackSelector.h:37
Belle2::TOPModuleT0LLCollectorModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition: TOPModuleT0LLCollectorModule.h:98
Belle2::TOPModuleT0LLCollectorModule::m_names
std::vector< std::string > m_names[c_numSets]
histogram names of chi2 scans
Definition: TOPModuleT0LLCollectorModule.h:94
Belle2::TOP::TOPreco::PDFoption
PDFoption
Options for PDF: rough: no dependence on y fine: y dependent PDF everywhere optimal: y dependent PDF ...
Definition: TOPreco.h:44
Belle2::TOPModuleT0LLCollectorModule::c_numModules
@ c_numModules
number of modules
Definition: TOPModuleT0LLCollectorModule.h:73
Belle2::TOPModuleT0LLCollectorModule::m_selector
TOP::TrackSelector m_selector
track selection utility
Definition: TOPModuleT0LLCollectorModule.h:92
Belle2::TOPModuleT0LLCollectorModule::m_maxZ
double m_maxZ
maximal local z of extrapolated hit
Definition: TOPModuleT0LLCollectorModule.h:88
Belle2::TOPModuleT0LLCollectorModule::c_numSets
@ c_numSets
number of statistically independent subsamples
Definition: TOPModuleT0LLCollectorModule.h:74
Belle2::TOPModuleT0LLCollectorModule::m_minZ
double m_minZ
minimal local z of extrapolated hit
Definition: TOPModuleT0LLCollectorModule.h:87
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TOPModuleT0LLCollectorModule::m_PDFOption
TOP::TOPreco::PDFoption m_PDFOption
PDF option.
Definition: TOPModuleT0LLCollectorModule.h:93
Belle2::TOPModuleT0LLCollectorModule::m_minBkgPerBar
double m_minBkgPerBar
minimal assumed background photons per module
Definition: TOPModuleT0LLCollectorModule.h:80