Belle II Software development
BeamBkgNeutronModule.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
13#include <string>
14
15#include <Math/Vector3D.h>
16#include <TFile.h>
17#include <TTree.h>
18
19namespace Belle2 {
24
29 public:
30
33
39 virtual void initialize() override;
40
46 virtual void beginRun() override;
47
53 virtual void event() override;
54
60 virtual void terminate() override;
61
62 private:
63
64 std::string m_filename;
65
66 std::vector<Float_t> m_trj_x;
67 std::vector<Float_t> m_trj_y;
68 std::vector<Float_t> m_trj_z;
69 std::vector<Float_t> m_trj_px;
70 std::vector<Float_t> m_trj_py;
71 std::vector<Float_t> m_trj_pz;
72 Float_t m_vtxProdX;
73 Float_t m_vtxProdY;
74 Float_t m_vtxProdZ;
75 Float_t m_E_init;
76 Float_t m_mass;
77 Float_t m_lifeTime;
78 Int_t m_PDG;
79 Int_t m_subDet;
80 Int_t m_iden;
81 Int_t m_trackID;
82 Int_t m_iEvent;
83 Int_t m_iEntry;
84 Int_t m_nSimHits[13];
85 Int_t m_hitPDG[13];
86 Int_t m_momPDG[13];
87 Float_t m_E_start;
88 Float_t m_E_end;
89 Float_t m_eDep;
90 Float_t m_trackLength;
91 Float_t m_momentumX;
92 Float_t m_momentumY;
93 Float_t m_momentumZ;
94 Float_t m_positionX;
95 Float_t m_positionY;
96 Float_t m_positionZ;
97 Float_t m_nWeight;
98
99 TFile* m_ff;
100 TTree* m_tree1;
101 TTree* m_tree2;
102 };
103
104} // Belle2 namespace
Float_t m_mass
McParticle mass [GeV].
std::vector< Float_t > m_trj_pz
Z component of trajectory momentum.
Float_t m_lifeTime
McParticle lifetime [ns].
Float_t m_E_init
McParticle energy [GeV].
Float_t m_vtxProdX
McParticle prod.
Int_t m_iEntry
Entry identifier.
std::vector< Float_t > m_trj_py
Y component of trajectory momentum.
Float_t m_momentumY
Y component of momentum.
std::vector< Float_t > m_trj_z
Z component of trajectory position.
std::vector< Float_t > m_trj_y
Y component of trajectory position.
Float_t m_positionY
Y component of position.
Float_t m_positionX
X component of position.
Float_t m_vtxProdZ
McParticle prod.
Float_t m_vtxProdY
McParticle prod.
Float_t m_momentumZ
Z component of momentum.
std::vector< Float_t > m_trj_x
X component of trajectory position.
Float_t m_E_start
Starting energy.
Int_t m_nSimHits[13]
Array with number of SimHits.
std::string m_filename
Output file name.
Int_t m_momPDG[13]
Array with PDG momentum.
Int_t m_hitPDG[13]
Array with PDG hits.
Float_t m_eDep
Deposited energy.
Int_t m_iEvent
Event identifier.
TFile * m_ff
Output root file.
Float_t m_positionZ
Z component of position.
std::vector< Float_t > m_trj_px
X component of trajectory momentum.
Float_t m_momentumX
X component of momentum.
Module()
Constructor.
Definition Module.cc:30
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
Abstract base class for different kinds of events.