Belle II Software  release-08-01-10
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 namespace Belle2 {
35  class TRGECLQAMModule : public Module {
36 
37  public:
41  virtual ~TRGECLQAMModule();
42 
43  public:
45  std::string version() const;
47  virtual void initialize() override;
49  virtual void beginRun() override;
51  virtual void event() override;
53  virtual void endRun() override;
55  virtual void terminate() override;
56 
57 
58  private:
60  int m_nRun;
62  int m_nevent;
63 
64  //** ECLTRG TC Hit Map
66  Double_t m_FWD;
68  double m_BAR;
70  double m_BWD;
72  double m_ALL;
73 
75  int TCID[576];
76 
78  std::string m_outputfile;
79 
80  //ECLTRG Data
82  TH1F* h_etot = new TH1F("h_etot", "Energy Total", 4000, 0, 4000);
84  int m_etot;
86  double m_etot_mean;
88  double m_etot_error;
90  double m_etot_sigma;
92  std::vector<int> etot;
93 
95  TH1F* h_caltime = new TH1F("h_caltime", "Caltime", 2000, -1000, 1000);
103  std::vector<int> caltime;
104 
105  // Cluster Energy 2D plot
107  TH1F* h_clusterE = new TH1F("h_clusterE", "ClusterE", 4000, 0, 4000);
109  int clusterE;
111  std::vector<int> cluster;
112 
119 
120  };
121 
122 
124 }
125 
126 #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:96
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.