Belle II Software prerelease-11-00-00a
EclBackgroundStudyModule.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 <ecl/dataobjects/ECLSimHit.h>
12#include <ecl/dataobjects/ECLHit.h>
13#include <framework/core/Module.h>
14#include <trg/ecl/TrgEclMapping.h>
15#include <framework/datastore/StoreArray.h>
16#include <framework/logging/Logger.h>
17
18#include <string>
19
20#include <Math/Vector3D.h>
21#include <TFile.h>
22#include <TTree.h>
23
24namespace Belle2 {
29
37 public:
38
41
47 virtual void initialize() override;
48
54 virtual void beginRun() override;
55
61 virtual void event() override;
62
68 virtual void terminate() override;
69
73 void printModuleParams() const;
74
75 private:
76
77 std::string m_filename;
78
79 std::vector<int> m_CellId;
80 std::vector<int> m_TcId;
81 std::vector<int> m_Pdg;
82 std::vector<double> m_Edep;
83 std::vector<double> m_TimeAve;
84 std::vector<double> m_FlightTime;
85 std::vector<double> m_Hadronedep;
86
87 Int_t m_iEntry;
88
89 TFile* m_ff;
90 TTree* m_tree1;
91 TTree* m_tree2;
95 };
96
97} // Belle2 namespace
StoreArray< ECLSimHit > m_ECLSimHits
ECL simHits.
std::vector< double > m_FlightTime
Vector of flight times.
std::vector< int > m_CellId
Vector of CellId.
StoreArray< ECLHit > m_ECLHits
ECL hits.
std::vector< int > m_Pdg
Vector of PDG codes.
std::vector< int > m_TcId
Vector of TcId.
std::vector< double > m_Edep
Vector of deposited energies.
std::string m_filename
Output file name.
std::vector< double > m_Hadronedep
Vector of hadronic deposited energies.
TrgEclMapping * m_TCMap
TRGECL mapping.
std::vector< double > m_TimeAve
Vector of average times.
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
A class of TC Mapping.
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.
void printModuleParams() const
Prints module parameters.
Abstract base class for different kinds of events.