Belle II Software  release-06-02-00
TRGECLQAMModule.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 #ifndef TRCECLQAMMODULE_h
9 #define TRCECLQAMMODULE_h
10 
11 
12 #include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
13 #include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
14 
15 #include <mdst/dataobjects/TRGSummary.h>
16 
17 
18 #include <framework/datastore/StoreObjPtr.h>
19 #include <framework/core/Module.h>
20 #include <framework/datastore/StoreArray.h>
21 #include <vector>
22 
23 #include <TH1.h>
24 
25 
26 //using namespace std;
27 
28 namespace Belle2 {
37  class TRGECLQAMModule : public Module {
38 
39  public:
43  virtual ~TRGECLQAMModule();
44 
45  public:
47  std::string version() const;
49  virtual void initialize() override;
51  virtual void beginRun() override;
53  virtual void event() override;
55  virtual void endRun() override;
57  virtual void terminate() override;
58 
59 
60  private:
62  int m_nRun;
64  int m_nevent;
65 
66  //** ECLTRG TC Hit Map
68  Double_t m_FWD;
70  double m_BAR;
72  double m_BWD;
74  double m_ALL;
75 
77  int TCID[576];
78 
80  std::string m_outputfile;
81 
82  //ECLTRG Data
84  TH1F* h_etot = new TH1F("h_etot", "Energy Total", 4000, 0, 4000);
86  int m_etot;
88  double m_etot_mean;
90  double m_etot_error;
92  double m_etot_sigma;
94  std::vector<int> etot;
95 
97  TH1F* h_caltime = new TH1F("h_caltime", "Caltime", 2000, -1000, 1000);
105  std::vector<int> caltime;
106 
107  // Cluster Energy 2D plot
109  TH1F* h_clusterE = new TH1F("h_clusterE", "ClusterE", 4000, 0, 4000);
111  int clusterE;
113  std::vector<int> cluster;
114 
121 
122  };
123 
124 
126 }
127 
128 #endif
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
TH1F * h_caltime
Caltime Histogram.
double m_ALL
Total proble TC.
double m_etot_sigma
Total Energy sigma.
StoreArray< TRGECLUnpackerEvtStore > m_TRGECLUnpackerEvtStore
ECL Trigger Unpacker Event output.
int TCID[576]
Hit TCID.
std::vector< int > caltime
Caltime check.
double m_BAR
Barrel problem TC.
double m_BWD
BWD problem TC.
TH1F * h_clusterE
Cluster Energy Histogram.
std::string m_outputfile
Output Root File Name.
double m_etot_mean
Total Energy mean.
std::vector< int > etot
tcenergy check
double m_caltime_mean
Caltime mean.
TH1F * h_etot
Total Energy Histogram.
StoreArray< TRGECLUnpackerStore > m_TRGECLUnpackerStore
ECL Trigger Unpacker TC output.
std::vector< int > cluster
Cluster Energy Vector.
double m_etot_error
Total Energy error.
double m_caltime_error
Caltime error.
int m_nevent
The # of Events.
Double_t m_FWD
FWD problem TC.
StoreObjPtr< TRGSummary > m_TRGSummary
Trigger Summary.
int clusterE
Cluster Energy.
double m_caltime_sigma
Caltime sigma.
int m_etot
Total Energy.
virtual ~TRGECLQAMModule()
Destrunctor.
virtual void initialize() override
initialize
virtual void event() override
Event.
virtual void endRun() override
End Run.
virtual void terminate() override
terminate
virtual void beginRun() override
begin Run
std::string version() const
version
Abstract base class for different kinds of events.