Belle II Software prerelease-11-00-00a
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
32 public:
33
36
42 virtual void initialize() override;
43
49 virtual void beginRun() override;
50
56 virtual void event() override;
57
63 virtual void terminate() override;
64
65 private:
66
67 std::string m_filename;
68
69 std::vector<Float_t> m_trj_x;
70 std::vector<Float_t> m_trj_y;
71 std::vector<Float_t> m_trj_z;
72 std::vector<Float_t> m_trj_px;
73 std::vector<Float_t> m_trj_py;
74 std::vector<Float_t> m_trj_pz;
75 Float_t m_vtxProdX;
76 Float_t m_vtxProdY;
77 Float_t m_vtxProdZ;
78 Float_t m_E_init;
79 Float_t m_mass;
80 Float_t m_lifeTime;
81 Int_t m_PDG;
82 Int_t m_subDet;
83 Int_t m_iden;
84 Int_t m_trackID;
85 Int_t m_iEvent;
86 Int_t m_iEntry;
87 Int_t m_nSimHits[13];
88 Int_t m_hitPDG[13];
89 Int_t m_momPDG[13];
90 Float_t m_E_start;
91 Float_t m_E_end;
92 Float_t m_eDep;
93 Float_t m_trackLength;
94 Float_t m_momentumX;
95 Float_t m_momentumY;
96 Float_t m_momentumZ;
97 Float_t m_positionX;
98 Float_t m_positionY;
99 Float_t m_positionZ;
100 Float_t m_nWeight;
101
102 TFile* m_ff;
103 TTree* m_tree1;
104 TTree* m_tree2;
105 };
106
107} // 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.