Belle II Software  release-06-02-00
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 //STL
12 #include <string>
13 
14 //Framework
15 #include <framework/core/Module.h>
16 #include <framework/datastore/StoreArray.h>
17 
18 class TTree;
19 class TFile;
20 
21 namespace Belle2 {
27  class ECLDsp;
28  class ECLDigit;
29  class ECLTrig;
30 
33 
34  public:
35 
41 
44 
46  virtual void initialize() override;
47 
49  virtual void terminate() override;
50 
52  virtual void event() override;
53 
54  protected:
56  std::string m_dataOutFileName;
57 
59  std:: string m_dspArrayName;
60 
62  std::string m_digiArrayName;
63 
65  TTree* m_tree{nullptr};
67  TFile* m_rootFile{nullptr};
68 
70  double m_energy{ -1};
72  int m_nevt{ -1};
74  int m_nhits{ -1};
75 
77  int m_cellID[8736] = {};
79  int m_theta[8736] = {};
81  int m_phi[8736] = {};
83  int m_DspHit[8736][31] = {};
85  double m_hitE[8736] = {};
87  double m_hitTime[8736] = {};
89  int m_DigiTime[8736] = {};
91  double m_DeltaT[8736] = {};
92 
93  private:
96 
99 
102  };
103 
105 } // end namespace Belle2
a module to write ECL waveform and fitted time and amplitude information in a root ntuple
StoreArray< ECLDsp > m_eclDspArray
Store array: ECLDsp.
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.
TFile * m_rootFile
Root file for saving the output.
virtual void terminate() override
Terminates the module.
std::string m_digiArrayName
eclDigit array name
StoreArray< ECLTrig > m_eclTrigArray
Store array: ECLTrig.
int m_DspHit[8736][31]
eclDsp sample Array
std::string m_dspArrayName
eclDSPs array name
StoreArray< ECLDigit > m_eclDigiArray
Store array: ECLDigit.
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.