Belle II Software development
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
26namespace Belle2 {
32 class TRGECLQAMModule : public Module {
33
34 public:
38 virtual ~TRGECLQAMModule();
39
40 public:
42 std::string version() const;
44 virtual void initialize() override;
46 virtual void beginRun() override;
48 virtual void event() override;
50 virtual void endRun() override;
52 virtual void terminate() override;
53
54
55 private:
57 int m_nRun;
60
61 //** ECLTRG TC Hit Map
63 Double_t m_FWD;
65 double m_BAR;
67 double m_BWD;
69 double m_ALL;
70
72 int TCID[576];
73
75 std::string m_outputfile;
76
77 //ECLTRG Data
79 TH1F* h_etot = new TH1F("h_etot", "Energy Total", 4000, 0, 4000);
81 int m_etot;
89 std::vector<int> etot;
90
92 TH1F* h_caltime = new TH1F("h_caltime", "Caltime", 2000, -1000, 1000);
100 std::vector<int> caltime;
101
102 // Cluster Energy 2D plot
104 TH1F* h_clusterE = new TH1F("h_clusterE", "ClusterE", 4000, 0, 4000);
108 std::vector<int> cluster;
109
116
117 };
118
119
121}
122
123#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.