Belle II Software prerelease-10-00-00a
EclCovMatrixNtupleModule.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/* ECL headers. */
12#include <ecl/dataobjects/ECLElementNumbers.h>
13
14/* Basf2 headers. */
15#include <framework/core/Module.h>
16#include <framework/datastore/StoreArray.h>
17
18/* C++ headers. */
19#include <string>
20
21class TTree;
22class TFile;
23
24namespace Belle2 {
29
30 class ECLDsp;
31 class ECLDigit;
32 class ECLTrig;
33
39
40 public:
41
47
50
52 virtual void initialize() override;
53
55 virtual void terminate() override;
56
58 virtual void event() override;
59
60 protected:
62 std::string m_dataOutFileName;
63
65 std:: string m_dspArrayName;
66
68 std::string m_digiArrayName;
69
71 TTree* m_tree{nullptr};
73 TFile* m_rootFile{nullptr};
74
76 double m_energy{ -1};
78 int m_nevt{ -1};
80 int m_nhits{ -1};
81
98
99 private:
102
105
108 };
109
111} // end namespace Belle2
Class to store ECL digitized hits (output of ECLDigi) relation to ECLHit filled in ecl/modules/eclDig...
Definition ECLDigit.h:24
Class to store ECL ShaperDSP waveform ADC data.
Definition ECLDsp.h:25
Class to store ECLTrig, still need to be study relation to ECLHit filled in ecl/modules/eclDigitizer/...
Definition ECLTrig.h:25
StoreArray< ECLDsp > m_eclDspArray
Store array: ECLDsp.
double m_hitTime[ECLElementNumbers::c_NCrystals]
eclHit Time
int m_theta[ECLElementNumbers::c_NCrystals]
Crystal Theta ID.
std::string m_dataOutFileName
output root file name (given as Module parameter)
virtual void initialize() override
Initializes the module.
virtual void event() override
Method is called for each event.
double m_hitE[ECLElementNumbers::c_NCrystals]
eclHit Energy
TFile * m_rootFile
Root file for saving the output.
double m_DeltaT[ECLElementNumbers::c_NCrystals]
eclTrig Time
virtual void terminate() override
Terminates the module.
std::string m_digiArrayName
eclDigit array name
StoreArray< ECLTrig > m_eclTrigArray
Store array: ECLTrig.
int m_cellID[ECLElementNumbers::c_NCrystals]
Crystal ID.
std::string m_dspArrayName
eclDSPs array name
int m_DspHit[ECLElementNumbers::c_NCrystals][31]
eclDsp sample Array
int m_phi[ECLElementNumbers::c_NCrystals]
Crystal Phi ID.
StoreArray< ECLDigit > m_eclDigiArray
Store array: ECLDigit.
int m_DigiTime[ECLElementNumbers::c_NCrystals]
eclDigit Time
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
const int c_NCrystals
Number of crystals.
Abstract base class for different kinds of events.