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
22namespace Belle2 {
27
32
33 public:
34
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;
75
76 TH2F* m_hits = 0;
77 TH2F* m_pdf = 0;
78 TH2F* m_hitsCol = 0;
79 TH2F* m_pdfCol = 0;
80
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
HistoModule()
Constructor.
Definition HistoModule.h:32
A Class to store the Monte Carlo particle information.
Definition MCParticle.h:32
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHi...
Definition TOPDigit.h:24
TH2F * m_pdfCol
histogram of PDF projected to pixel columns
TH2F * m_hits
histogram of photon hits
double m_maxTime
histogram upper bound in time [ns]
double m_minTime
histogram lower bound in time [ns]
TH2F * m_hitsCol
histogram of photon hits projected to pixel columns
ROOT::Math::XYZPoint m_avrgPosition
average particle position at bar entrance (bar frame)
int m_numBins
number of bins in time
StoreArray< Track > m_tracks
collection of tracks
std::set< int > m_PDGCodes
particle PDG codes
TH2F * m_pdf
histogram of PDF
StoreArray< TOPDigit > m_digits
collection of digits
std::set< int > m_slotIDs
slot ID's that are hit by particle
ROOT::Math::XYZVector m_avrgMomentum
average particle momentum at bar entrance (bar frame)
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
bool isFromThisParticle(const TOPDigit &digit, const MCParticle *particle)
Checks if digit comes from given MC particle.
virtual void defineHisto() override
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
Abstract base class for different kinds of events.