 |
Belle II Software
release-05-01-25
|
13 #include <trg/cdc/modules/trgcdct2dDQM/TRGCDCT2DDQMModule.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <framework/datastore/StoreArray.h>
18 #include <framework/datastore/DataStore.h>
20 #include <TDirectory.h>
22 #include <TPostScript.h>
28 #include <framework/logging/Logger.h>
29 #include <boost/algorithm/string.hpp>
44 "Genarete postscript file or not",
47 "postscript file name",
63 h_tsfhit =
new TH1I(
"hCDCT2D_tsfhit",
"hCDCT2D_tsfhit", 2500, 0, 2500);
64 h_tsfhit->SetTitle(
"TSF hit in 2D module");
65 h_tsfhit->GetXaxis()->SetTitle(
"TSF ID");
68 h_phi =
new TH1D(
"hCDCT2D_phi",
"hCDCT2D_phi", 80, -1, 7);
69 h_phi->SetTitle(
"2D track phi");
70 h_phi->GetXaxis()->SetTitle(
"rad");
73 h_pt =
new TH1D(
"hCDCT2D_pt",
"hCDCT2D_pt", 30, 0, 3);
74 h_pt->SetTitle(
"2D track pt");
75 h_pt->GetXaxis()->SetTitle(
"GeV");
78 h_omega =
new TH1D(
"hCDCT2D_omega",
"hCDCT2D_omega", 80, -0.02, 0.02);
79 h_omega->SetTitle(
"2D track omega");
80 h_omega->GetXaxis()->SetTitle(
"");
84 h_time =
new TH1D(
"hCDCT2D_time",
"hCDCT2D_time", 100, -50, 50);
85 h_time->SetTitle(
"2D track foundtime");
86 h_time->GetXaxis()->SetTitle(
"CLK 32ns");
109 _exp = bevt->getExperiment();
110 _run = bevt->getRun();
115 char c_name_tsf[100];
116 sprintf(c_name_tsf,
"CDCTriggerSegmentHits");
119 char c_name_t2d[100];
120 sprintf(c_name_t2d,
"CDCTrigger2DFinderTracks");
132 gStyle->SetOptStat(0);
133 TCanvas c1(
"c1",
"", 0, 0, 500, 300);
136 TPostScript* ps_tsfhit =
new TPostScript((
m_postScriptName +
".tsfhit" +
".ps").c_str(), 112);
141 TPostScript* ps_phi =
new TPostScript((
m_postScriptName +
".phi" +
".ps").c_str(), 112);
146 TPostScript* ps_pt =
new TPostScript((
m_postScriptName +
".pt" +
".ps").c_str(), 112);
151 TPostScript* ps_omega =
new TPostScript((
m_postScriptName +
".omega" +
".ps").c_str(), 112);
156 TPostScript* ps_time =
new TPostScript((
m_postScriptName +
".time" +
".ps").c_str(), 112);
172 for (
int ii = 0; ii <
entAry_tsf.getEntries(); ii++) {
176 for (
int ii = 0; ii <
entAry_t2d.getEntries(); ii++) {
StoreArray< CDCTriggerSegmentHit > entAry_tsf
TSF data store.
TH1D * h_time
2D foundtime distribution
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
bool m_generatePostscript
flag to save ps file
TH1D * h_omega
2D omega distribution
unsigned _exp
experiment number
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
TDirectory * dirDQM
TDirectories.
TH1I * h_tsfhit
TSF hit distribution as a function of tsfid.
TDirectory * oldDir
TDirectories.
StoreArray< CDCTriggerTrack > entAry_t2d
T2D data store.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
std::string m_postScriptName
name of ps file
virtual void endRun() override
End Run.
virtual void initialize() override
initialize
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
TH1D * h_pt
2D pt distribution
virtual void beginRun() override
begin Run
TH1D * h_phi
2D phi distribution
virtual void event() override
Event.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
virtual void defineHisto() override
Define Histogram.