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
35 virtual ~BeamBkgNeutronModule();
36
42 virtual void initialize();
43
49 virtual void beginRun();
50
56 virtual void event();
57
63 virtual void endRun();
64
70 virtual void terminate();
71
72 private:
73
74 std::string m_filename;
75
76 std::vector<Float_t> m_trj_x;
77 std::vector<Float_t> m_trj_y;
78 std::vector<Float_t> m_trj_z;
79 std::vector<Float_t> m_trj_px;
80 std::vector<Float_t> m_trj_py;
81 std::vector<Float_t> m_trj_pz;
82 Float_t m_vtxProdX;
83 Float_t m_vtxProdY;
84 Float_t m_vtxProdZ;
85 Float_t m_E_init;
86 Float_t m_mass;
87 Float_t m_lifeTime;
88 Int_t m_PDG;
89 Int_t m_subDet;
90 Int_t m_iden;
91 Int_t m_trackID;
92 Int_t m_iEvent;
93 Int_t m_iEntry;
94 Int_t m_nSimHits[13];
95 Int_t m_hitPDG[13];
96 Int_t m_momPDG[13];
97 Float_t m_E_start;
98 Float_t m_E_end;
99 Float_t m_eDep;
101 Float_t m_momentumX;
102 Float_t m_momentumY;
103 Float_t m_momentumZ;
104 Float_t m_positionX;
105 Float_t m_positionY;
106 Float_t m_positionZ;
107 Float_t m_nWeight;
108
109 TFile* m_ff;
110 TTree* m_tree1;
111 TTree* m_tree2;
112 };
113
114} // 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 event()
Event processor.
virtual void initialize()
Initialize the Module.
virtual void beginRun()
Called when entering a new run.
virtual void terminate()
Termination action.
virtual void endRun()
End-of-run action.
virtual ~BeamBkgNeutronModule()
Destructor.
Abstract base class for different kinds of events.