Belle II Software  release-05-02-19
TRGECLQAMModule.h
1 #ifndef TRCECLQAMMODULE_h
2 #define TRCECLQAMMODULE_h
3 
4 
5 #include "trg/ecl/dataobjects/TRGECLUnpackerStore.h"
6 #include "trg/ecl/dataobjects/TRGECLUnpackerEvtStore.h"
7 
8 #include <mdst/dataobjects/TRGSummary.h>
9 
10 
11 #include <framework/datastore/StoreObjPtr.h>
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <vector>
15 
16 #include <TH1.h>
17 
18 
19 //using namespace std;
20 
21 namespace Belle2 {
30  class TRGECLQAMModule : public Module {
31 
32  public:
36  virtual ~TRGECLQAMModule();
37 
38  public:
40  std::string version() const;
42  virtual void initialize() override;
44  virtual void beginRun() override;
46  virtual void event() override;
48  virtual void endRun() override;
50  virtual void terminate() override;
51 
52 
53  private:
55  int m_nRun;
57  int m_nevent;
58 
59  //** ECLTRG TC Hit Map
61  Double_t m_FWD;
63  double m_BAR;
65  double m_BWD;
67  double m_ALL;
68 
70  int TCID[576];
71 
73  std::string m_outputfile;
74 
75  //ECLTRG Data
77  TH1F* h_etot = new TH1F("h_etot", "Energy Total", 4000, 0, 4000);
79  int m_etot;
81  double m_etot_mean;
83  double m_etot_error;
85  double m_etot_sigma;
87  std::vector<int> etot;
88 
90  TH1F* h_caltime = new TH1F("h_caltime", "Caltime", 2000, -1000, 1000);
98  std::vector<int> caltime;
99 
100  // Cluster Energy 2D plot
102  TH1F* h_clusterE = new TH1F("h_clusterE", "ClusterE", 4000, 0, 4000);
104  int clusterE;
106  std::vector<int> cluster;
107 
114 
115  };
116 
117 
119 }
120 
121 #endif
Belle2::TRGECLQAMModule::m_BWD
double m_BWD
BWD problem TC.
Definition: TRGECLQAMModule.h:65
Belle2::TRGECLQAMModule::m_TRGECLUnpackerEvtStore
StoreArray< TRGECLUnpackerEvtStore > m_TRGECLUnpackerEvtStore
ECL Trigger Unpacker Event output.
Definition: TRGECLQAMModule.h:111
Belle2::TRGECLQAMModule::clusterE
int clusterE
Cluster Energy.
Definition: TRGECLQAMModule.h:104
Belle2::TRGECLQAMModule::m_etot
int m_etot
Total Energy.
Definition: TRGECLQAMModule.h:79
Belle2::TRGECLQAMModule::m_nevent
int m_nevent
The # of Events.
Definition: TRGECLQAMModule.h:57
Belle2::TRGECLQAMModule::m_caltime_sigma
double m_caltime_sigma
Caltime sigma.
Definition: TRGECLQAMModule.h:96
Belle2::TRGECLQAMModule
Definition: TRGECLQAMModule.h:30
Belle2::TRGECLQAMModule::TCID
int TCID[576]
Hit TCID.
Definition: TRGECLQAMModule.h:70
Belle2::TRGECLQAMModule::m_etot_mean
double m_etot_mean
Total Energy mean.
Definition: TRGECLQAMModule.h:81
Belle2::TRGECLQAMModule::m_BAR
double m_BAR
Barrel problem TC.
Definition: TRGECLQAMModule.h:63
Belle2::TRGECLQAMModule::m_outputfile
std::string m_outputfile
Output Root File Name.
Definition: TRGECLQAMModule.h:73
Belle2::TRGECLQAMModule::h_caltime
TH1F * h_caltime
Caltime Histogram.
Definition: TRGECLQAMModule.h:90
Belle2::TRGECLQAMModule::m_FWD
Double_t m_FWD
FWD problem TC.
Definition: TRGECLQAMModule.h:61
Belle2::TRGECLQAMModule::etot
std::vector< int > etot
tcenergy check
Definition: TRGECLQAMModule.h:87
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::TRGECLQAMModule::m_TRGSummary
StoreObjPtr< TRGSummary > m_TRGSummary
Trigger Summary.
Definition: TRGECLQAMModule.h:113
Belle2::TRGECLQAMModule::m_caltime_error
double m_caltime_error
Caltime error.
Definition: TRGECLQAMModule.h:94
Belle2::TRGECLQAMModule::caltime
std::vector< int > caltime
Caltime check.
Definition: TRGECLQAMModule.h:98
Belle2::TRGECLQAMModule::initialize
virtual void initialize() override
initialize
Definition: TRGECLQAMModule.cc:129
Belle2::TRGECLQAMModule::cluster
std::vector< int > cluster
Cluster Energy Vector.
Definition: TRGECLQAMModule.h:106
Belle2::TRGECLQAMModule::terminate
virtual void terminate() override
terminate
Definition: TRGECLQAMModule.cc:425
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::TRGECLQAMModule::m_caltime_mean
double m_caltime_mean
Caltime mean.
Definition: TRGECLQAMModule.h:92
Belle2::TRGECLQAMModule::endRun
virtual void endRun() override
End Run.
Definition: TRGECLQAMModule.cc:216
Belle2::TRGECLQAMModule::m_TRGECLUnpackerStore
StoreArray< TRGECLUnpackerStore > m_TRGECLUnpackerStore
ECL Trigger Unpacker TC output.
Definition: TRGECLQAMModule.h:109
Belle2::TRGECLQAMModule::TRGECLQAMModule
TRGECLQAMModule()
Costructor.
Definition: TRGECLQAMModule.cc:71
Belle2::TRGECLQAMModule::m_etot_sigma
double m_etot_sigma
Total Energy sigma.
Definition: TRGECLQAMModule.h:85
Belle2::TRGECLQAMModule::~TRGECLQAMModule
virtual ~TRGECLQAMModule()
Destrunctor.
Definition: TRGECLQAMModule.cc:120
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TRGECLQAMModule::beginRun
virtual void beginRun() override
begin Run
Definition: TRGECLQAMModule.cc:147
Belle2::TRGECLQAMModule::h_etot
TH1F * h_etot
Total Energy Histogram.
Definition: TRGECLQAMModule.h:77
Belle2::TRGECLQAMModule::m_etot_error
double m_etot_error
Total Energy error.
Definition: TRGECLQAMModule.h:83
Belle2::TRGECLQAMModule::version
std::string version() const
version
Definition: TRGECLQAMModule.cc:64
Belle2::TRGECLQAMModule::m_nRun
int m_nRun
The run #.
Definition: TRGECLQAMModule.h:55
Belle2::TRGECLQAMModule::m_ALL
double m_ALL
Total proble TC.
Definition: TRGECLQAMModule.h:67
Belle2::TRGECLQAMModule::h_clusterE
TH1F * h_clusterE
Cluster Energy Histogram.
Definition: TRGECLQAMModule.h:102
Belle2::TRGECLQAMModule::event
virtual void event() override
Event.
Definition: TRGECLQAMModule.cc:157