Belle II Software
development
TOPPDFCheckerModule.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/HistoModule.h>
12
#include <framework/datastore/StoreArray.h>
13
#include <mdst/dataobjects/Track.h>
14
#include <top/dataobjects/TOPDigit.h>
15
#include <mdst/dataobjects/MCParticle.h>
16
#include <set>
17
#include <TH2F.h>
18
#include <Math/Vector3D.h>
19
#include <Math/Point3D.h>
20
21
22
namespace
Belle2
{
27
31
class
TOPPDFCheckerModule
:
public
HistoModule
{
32
33
public
:
34
38
TOPPDFCheckerModule
();
39
44
virtual
void
defineHisto
()
override
;
45
50
virtual
void
initialize
()
override
;
51
55
virtual
void
event
()
override
;
56
61
virtual
void
terminate
()
override
;
62
63
private
:
64
70
bool
isFromThisParticle
(
const
TOPDigit
& digit,
const
MCParticle
* particle);
71
72
double
m_minTime
;
73
double
m_maxTime
;
74
int
m_numBins
;
75
76
TH2F*
m_hits
= 0;
77
TH2F*
m_pdf
= 0;
78
TH2F*
m_hitsCol
= 0;
79
TH2F*
m_pdfCol
= 0;
80
81
StoreArray<Track>
m_tracks
;
82
StoreArray<TOPDigit>
m_digits
;
83
84
ROOT::Math::XYZVector
m_avrgMomentum
;
85
ROOT::Math::XYZPoint
m_avrgPosition
;
86
int
m_numTracks
= 0;
87
std::set<int>
m_slotIDs
;
88
std::set<int>
m_PDGCodes
;
89
90
};
91
93
}
// Belle2 namespace
94
Belle2::HistoModule::HistoModule
HistoModule()
Constructor.
Definition
HistoModule.h:32
Belle2::MCParticle
A Class to store the Monte Carlo particle information.
Definition
MCParticle.h:32
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition
StoreArray.h:113
Belle2::TOPDigit
Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHi...
Definition
TOPDigit.h:24
Belle2::TOPPDFCheckerModule::m_pdfCol
TH2F * m_pdfCol
histogram of PDF projected to pixel columns
Definition
TOPPDFCheckerModule.h:79
Belle2::TOPPDFCheckerModule::m_hits
TH2F * m_hits
histogram of photon hits
Definition
TOPPDFCheckerModule.h:76
Belle2::TOPPDFCheckerModule::m_maxTime
double m_maxTime
histogram upper bound in time [ns]
Definition
TOPPDFCheckerModule.h:73
Belle2::TOPPDFCheckerModule::m_minTime
double m_minTime
histogram lower bound in time [ns]
Definition
TOPPDFCheckerModule.h:72
Belle2::TOPPDFCheckerModule::m_hitsCol
TH2F * m_hitsCol
histogram of photon hits projected to pixel columns
Definition
TOPPDFCheckerModule.h:78
Belle2::TOPPDFCheckerModule::m_avrgPosition
ROOT::Math::XYZPoint m_avrgPosition
average particle position at bar entrance (bar frame)
Definition
TOPPDFCheckerModule.h:85
Belle2::TOPPDFCheckerModule::m_numBins
int m_numBins
number of bins in time
Definition
TOPPDFCheckerModule.h:74
Belle2::TOPPDFCheckerModule::m_numTracks
int m_numTracks
number of tracks
Definition
TOPPDFCheckerModule.h:86
Belle2::TOPPDFCheckerModule::m_tracks
StoreArray< Track > m_tracks
collection of tracks
Definition
TOPPDFCheckerModule.h:81
Belle2::TOPPDFCheckerModule::m_PDGCodes
std::set< int > m_PDGCodes
particle PDG codes
Definition
TOPPDFCheckerModule.h:88
Belle2::TOPPDFCheckerModule::m_pdf
TH2F * m_pdf
histogram of PDF
Definition
TOPPDFCheckerModule.h:77
Belle2::TOPPDFCheckerModule::m_digits
StoreArray< TOPDigit > m_digits
collection of digits
Definition
TOPPDFCheckerModule.h:82
Belle2::TOPPDFCheckerModule::m_slotIDs
std::set< int > m_slotIDs
slot ID's that are hit by particle
Definition
TOPPDFCheckerModule.h:87
Belle2::TOPPDFCheckerModule::m_avrgMomentum
ROOT::Math::XYZVector m_avrgMomentum
average particle momentum at bar entrance (bar frame)
Definition
TOPPDFCheckerModule.h:84
Belle2::TOPPDFCheckerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition
TOPPDFCheckerModule.cc:96
Belle2::TOPPDFCheckerModule::event
virtual void event() override
Event processor.
Definition
TOPPDFCheckerModule.cc:118
Belle2::TOPPDFCheckerModule::terminate
virtual void terminate() override
Termination action.
Definition
TOPPDFCheckerModule.cc:182
Belle2::TOPPDFCheckerModule::isFromThisParticle
bool isFromThisParticle(const TOPDigit &digit, const MCParticle *particle)
Checks if digit comes from given MC particle.
Definition
TOPPDFCheckerModule.cc:207
Belle2::TOPPDFCheckerModule::TOPPDFCheckerModule
TOPPDFCheckerModule()
Constructor.
Definition
TOPPDFCheckerModule.cc:52
Belle2::TOPPDFCheckerModule::defineHisto
virtual void defineHisto() override
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
Definition
TOPPDFCheckerModule.cc:69
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
top
modules
TOPPDFChecker
include
TOPPDFCheckerModule.h
Generated on Mon Apr 27 2026 03:35:49 for Belle II Software by
1.13.2