Belle II Software development
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
34 public:
35
38
44 virtual void initialize() override;
45
51 virtual void beginRun() override;
52
58 virtual void event() override;
59
65 virtual void terminate() override;
66
70 void printModuleParams() const;
71
72 private:
73
74 std::string m_filename;
75
76 std::vector<int> m_CellId;
77 std::vector<int> m_TcId;
78 std::vector<int> m_Pdg;
79 std::vector<double> m_Edep;
80 std::vector<double> m_TimeAve;
81 std::vector<double> m_FlightTime;
82 std::vector<double> m_Hadronedep;
83
84 Int_t m_iEntry;
85
86 TFile* m_ff;
87 TTree* m_tree1;
88 TTree* m_tree2;
92 };
93
94} // 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.