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
41
47 virtual void initialize();
48
54 virtual void beginRun();
55
61 virtual void event();
62
68 virtual void endRun();
69
75 virtual void terminate();
76
80 void printModuleParams() const;
81
82 private:
83
84 std::string m_filename;
85
86 std::vector<int> m_CellId;
87 std::vector<int> m_TcId;
88 std::vector<int> m_Pdg;
89 std::vector<double> m_Edep;
90 std::vector<double> m_TimeAve;
91 std::vector<double> m_FlightTime;
92 std::vector<double> m_Hadronedep;
93
94 Int_t m_iEntry;
95
96 TFile* m_ff;
97 TTree* m_tree1;
98 TTree* m_tree2;
102 };
103
104} // 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 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.
void printModuleParams() const
Prints module parameters.
Abstract base class for different kinds of events.