Belle II Software  release-05-02-19
EclCovMatrixNtupleModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Peter Lukin, Alexander Bobrov, Guglielmo De Nardo *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 //STL
14 #include <string>
15 
16 //Framework
17 #include <framework/core/Module.h>
18 #include <framework/datastore/StoreArray.h>
19 
20 class TTree;
21 class TFile;
22 
23 namespace Belle2 {
29  class ECLDsp;
30  class ECLDigit;
31  class ECLTrig;
32 
35 
36  public:
37 
43 
46 
48  virtual void initialize() override;
49 
51  virtual void terminate() override;
52 
54  virtual void event() override;
55 
56  protected:
58  std::string m_dataOutFileName;
59 
61  std:: string m_dspArrayName;
62 
64  std::string m_digiArrayName;
65 
67  TTree* m_tree{nullptr};
69  TFile* m_rootFile{nullptr};
70 
72  double m_energy{ -1};
74  int m_nevt{ -1};
76  int m_nhits{ -1};
77 
79  int m_cellID[8736] = {};
81  int m_theta[8736] = {};
83  int m_phi[8736] = {};
85  int m_DspHit[8736][31] = {};
87  double m_hitE[8736] = {};
89  double m_hitTime[8736] = {};
91  int m_DigiTime[8736] = {};
93  double m_DeltaT[8736] = {};
94 
95  private:
98 
101 
104  };
105 
107 } // end namespace Belle2
Belle2::EclCovMatrixNtupleModule::EclCovMatrixNtupleModule
EclCovMatrixNtupleModule()
Constructor.
Definition: EclCovMatrixNtupleModule.cc:42
Belle2::EclCovMatrixNtupleModule::event
virtual void event() override
Method is called for each event.
Definition: EclCovMatrixNtupleModule.cc:89
Belle2::EclCovMatrixNtupleModule::m_energy
double m_energy
Energy.
Definition: EclCovMatrixNtupleModule.h:72
Belle2::EclCovMatrixNtupleModule::m_DigiTime
int m_DigiTime[8736]
eclDigit Time
Definition: EclCovMatrixNtupleModule.h:91
Belle2::EclCovMatrixNtupleModule::m_eclDigiArray
StoreArray< ECLDigit > m_eclDigiArray
Store array: ECLDigit.
Definition: EclCovMatrixNtupleModule.h:100
Belle2::EclCovMatrixNtupleModule::m_theta
int m_theta[8736]
Crystal Theta ID.
Definition: EclCovMatrixNtupleModule.h:81
Belle2::EclCovMatrixNtupleModule::m_DspHit
int m_DspHit[8736][31]
eclDsp sample Array
Definition: EclCovMatrixNtupleModule.h:85
Belle2::EclCovMatrixNtupleModule::m_tree
TTree * m_tree
Root tree name.
Definition: EclCovMatrixNtupleModule.h:67
Belle2::EclCovMatrixNtupleModule::m_DeltaT
double m_DeltaT[8736]
eclTrig Time
Definition: EclCovMatrixNtupleModule.h:93
Belle2::EclCovMatrixNtupleModule::m_rootFile
TFile * m_rootFile
Root file for saving the output.
Definition: EclCovMatrixNtupleModule.h:69
Belle2::EclCovMatrixNtupleModule::m_eclDspArray
StoreArray< ECLDsp > m_eclDspArray
Store array: ECLDsp.
Definition: EclCovMatrixNtupleModule.h:97
Belle2::EclCovMatrixNtupleModule::m_dspArrayName
std::string m_dspArrayName
eclDSPs array name
Definition: EclCovMatrixNtupleModule.h:61
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::EclCovMatrixNtupleModule::m_digiArrayName
std::string m_digiArrayName
eclDigit array name
Definition: EclCovMatrixNtupleModule.h:64
Belle2::EclCovMatrixNtupleModule::m_nhits
int m_nhits
Number of eclHits.
Definition: EclCovMatrixNtupleModule.h:76
Belle2::EclCovMatrixNtupleModule::m_eclTrigArray
StoreArray< ECLTrig > m_eclTrigArray
Store array: ECLTrig.
Definition: EclCovMatrixNtupleModule.h:103
Belle2::EclCovMatrixNtupleModule::m_nevt
int m_nevt
Event number.
Definition: EclCovMatrixNtupleModule.h:74
Belle2::EclCovMatrixNtupleModule::m_phi
int m_phi[8736]
Crystal Phi ID.
Definition: EclCovMatrixNtupleModule.h:83
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EclCovMatrixNtupleModule::initialize
virtual void initialize() override
Initializes the module.
Definition: EclCovMatrixNtupleModule.cc:54
Belle2::EclCovMatrixNtupleModule::m_hitTime
double m_hitTime[8736]
eclHit Time
Definition: EclCovMatrixNtupleModule.h:89
Belle2::EclCovMatrixNtupleModule
a module to write ECL waveform and fitted time and amplitude information in a root ntuple
Definition: EclCovMatrixNtupleModule.h:34
Belle2::EclCovMatrixNtupleModule::m_hitE
double m_hitE[8736]
eclHit Energy
Definition: EclCovMatrixNtupleModule.h:87
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::EclCovMatrixNtupleModule::m_dataOutFileName
std::string m_dataOutFileName
output root file name (given as Module parameter)
Definition: EclCovMatrixNtupleModule.h:58
Belle2::EclCovMatrixNtupleModule::m_cellID
int m_cellID[8736]
Crystal ID.
Definition: EclCovMatrixNtupleModule.h:79
Belle2::EclCovMatrixNtupleModule::~EclCovMatrixNtupleModule
virtual ~EclCovMatrixNtupleModule()
Destructor.
Definition: EclCovMatrixNtupleModule.h:45
Belle2::EclCovMatrixNtupleModule::terminate
virtual void terminate() override
Terminates the module.
Definition: EclCovMatrixNtupleModule.cc:82