Belle II Software development
ECLDigiStudyModule.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 TFile;
22class TTree;
23
24namespace Belle2 {
30 class ECLDsp;
31 class ECLDigit;
32 class ECLTrig;
33 class ECLHit;
34
36 class ECLDigiStudyModule : public Module {
37
38 public:
39
45
48
50 virtual void initialize() override;
51
53 virtual void terminate() override;
54
56 virtual void event() override;
57
58 protected:
60 std::string m_dataOutFileName,
66 TTree* m_tree{nullptr};
67 TFile* m_rootFile{nullptr};
70 int m_neclhits{ -1};
92 double m_trig1{ -1};
93 double m_trig2{ -1};
94 private:
97
100
103
106
109
112
113 };
114
116} // end namespace Belle2
A module to analyse digit level information.
virtual ~ECLDigiStudyModule()
Destructor.
int m_theta[ECLElementNumbers::c_NCrystals]
Array oh ThetaID.
TTree * m_tree
Root tree for saving the output.
int m_digiQual2[ECLElementNumbers::c_NCrystals]
Digit quality for second digit array.
double m_trig2
Trigger time for array 2.
std::string m_dataOutFileName
output root file name (given as Module parameter)
StoreArray< ECLDigit > m_eclDigiArray2
Store array: ECLDigit.
virtual void initialize() override
Initializes the module.
int m_DspHit1[ECLElementNumbers::c_NCrystals][31]
WF sampling points for first digit array.
virtual void event() override
Method is called for each event.
double m_time[ECLElementNumbers::c_NCrystals]
Array of digit time.
TFile * m_rootFile
Root file for saving the output.
int m_neclhits
Actual number of hits.
virtual void terminate() override
terminate
int m_digiQual1[ECLElementNumbers::c_NCrystals]
Digit quality for first digit array.
std::string m_dspArrayName1
Name of first DSP array.
int m_maxVal1[ECLElementNumbers::c_NCrystals]
WF maximum for first digit array.
std::string m_digiArrayName2
Name of second digit array.
int m_cellId[ECLElementNumbers::c_NCrystals]
Array of cellIDs.
std::string m_digiArrayName1
Name of first digit array.
double m_digiTime2[ECLElementNumbers::c_NCrystals]
Digit time for second digit array.
int m_nhits
Maximum number of hits.
StoreArray< ECLTrig > m_eclTrigArray
Store array: ECLTrig.
std::string m_dspArrayName2
Name of second DSP array.
double m_energy[ECLElementNumbers::c_NCrystals]
Array of deposited MC energy.
double m_digiTime1[ECLElementNumbers::c_NCrystals]
Digit time for first digit array.
StoreArray< ECLDigit > m_eclDigiArray1
Store array: ECLDigit.
double m_digiE2[ECLElementNumbers::c_NCrystals]
Deposited energy for second digit array.
double m_baselineAvg1[ECLElementNumbers::c_NCrystals]
Baseline energy for first digit array.
int m_maxVal2[ECLElementNumbers::c_NCrystals]
WF maximum for second digit array.
int m_baseline2[ECLElementNumbers::c_NCrystals][16]
Baseline sampling points for second digit array.
StoreArray< ECLHit > m_eclHitsArray
Store array: ECLHit.
int m_baseline1[ECLElementNumbers::c_NCrystals][16]
Baseline sampling points for first digit array.
double m_digiE1[ECLElementNumbers::c_NCrystals]
Deposited energy for first digit array.
StoreArray< ECLDsp > m_eclDspArray1
Store array: ECLDsp.
double m_trig1
Trigger time for array 1.
double m_allenergy[ECLElementNumbers::c_NCrystals]
Array of deposited energy.
StoreArray< ECLDsp > m_eclDspArray2
Store array: ECLDsp.
int m_phi[ECLElementNumbers::c_NCrystals]
Array of PhiID.
int m_DspHit2[ECLElementNumbers::c_NCrystals][31]
WF sampling points for second digit array.
double m_baselineAvg2[ECLElementNumbers::c_NCrystals]
Baseline energy for second digit array.
Base class for Modules.
Definition: Module.h:72
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.