 |
Belle II Software
release-05-01-25
|
13 #include <trg/cdc/modules/trgcdct3dDQM/TRGCDCT3DDQMModule.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <framework/datastore/StoreArray.h>
18 #include <TDirectory.h>
19 #include <TPostScript.h>
39 "Genarete postscript file or not",
42 "postscript file name",
43 string(
"cdct3ddqm.ps"));
59 h_dz->GetXaxis()->SetTitle(
"dz");
63 h_phi->GetXaxis()->SetTitle(
"phi");
71 h_pt->GetXaxis()->SetTitle(
"pt");
76 h_phi_2D->GetXaxis()->SetTitle(
"phi_2D");
80 h_pt_2D->GetXaxis()->SetTitle(
"pt_2D");
84 h_ID_TSF1->GetXaxis()->SetTitle(
"ID_TSF1");
88 h_ID_TSF3->GetXaxis()->SetTitle(
"ID_TSF3");
92 h_ID_TSF5->GetXaxis()->SetTitle(
"ID_TSF5");
96 h_ID_TSF7->GetXaxis()->SetTitle(
"ID_TSF7");
100 h_rt_TSF1->GetXaxis()->SetTitle(
"rt_TSF1");
104 h_rt_TSF3->GetXaxis()->SetTitle(
"rt_TSF3");
108 h_rt_TSF5->GetXaxis()->SetTitle(
"rt_TSF5");
112 h_rt_TSF7->GetXaxis()->SetTitle(
"rt_TSF7");
153 _exp = bevt->getExperiment();
154 _run = bevt->getRun();
160 sprintf(c_name_3D,
"FirmTRGCDC3DFitterTracks%d",
m_T3DMOD);
162 sprintf(c_name_2D,
"FirmTRGCDC2DFinderTracks%d",
m_T3DMOD);
163 entAry.isRequired(c_name_3D);
165 char c_name_TSF[100];
166 sprintf(c_name_TSF,
"FirmCDCTriggerSegmentHits%d",
m_T3DMOD);
181 TCanvas c1(
"c1",
"", 0, 0, 500, 300);
184 TPostScript* ps_dz =
new TPostScript((
m_postScriptName +
".dz_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
189 TPostScript* ps_phi =
new TPostScript((
m_postScriptName +
".phi_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
194 TPostScript* ps_tanlambda =
new TPostScript((
m_postScriptName +
".tanlambda_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
197 ps_tanlambda->Close();
199 TPostScript* ps_pt =
new TPostScript((
m_postScriptName +
".pt_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
204 TPostScript* ps_phi_2D =
new TPostScript((
m_postScriptName +
".phi_2D_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
209 TPostScript* ps_pt_2D =
new TPostScript((
m_postScriptName +
".pt_2D_T3DModule" + to_string(
m_T3DMOD) +
".ps").c_str(), 112);
225 for (
int i = 0; i <
entAry.getEntries(); i++) {
229 if (
entAry[i]->getOmega() != 0)
230 h_pt->Fill(fabs(1. /
entAry[i]->getOmega() * 0.3 * 1.5 * 0.01));
235 for (
int i = 0; i <
entAry_2D.getEntries(); i++) {
243 for (
int i = 0; i <
entAry_TSF.getEntries(); i++) {
246 int pr =
entAry_TSF[i]->getPriorityPosition();
249 int validity = lr * 4 + pr;
250 if (lr == 0 || pr == 0)
continue;
255 }
else if (sl == 3) {
259 }
else if (sl == 5) {
263 }
else if (sl == 7) {
StoreArray< CDCTriggerTrack > entAry_2D
2D data store
TH1D * h_ID_TSF1
TSF1 ID of T3D in each module.
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...
TH1D * h_dz
dz of T3D in each module
TH1D * h_pt_2D
pt (from 2D) of T3D in each module
TH1D * h_ID_TSF3
TSF3 ID of T3D in each module.
TH1D * h_ID_TSF7
TSF7 ID of T3D in each module.
TH1D * h_rt_TSF7
TSF7 priority time of T3D in each module.
bool m_generatePostscript
flag to save ps file
TH1D * h_validity_TSF3
TSF3 validity of T3D in each module.
TH1D * h_validity_TSF5
TSF5 validity of T3D in each module.
TH1D * h_rt_TSF1
TSF1 priority time of T3D in each module.
unsigned _exp
experiment number
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
TDirectory * dirDQM
TDirectories for DQM histograms.
int m_T3DMOD
T3D module number.
TDirectory * oldDir
TDirectories for DQM histograms.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
TH1D * h_phi_2D
phi (from 2D) of T3D in each module
TH1D * h_validity_TSF7
TSF7 validity of T3D in each module.
StoreArray< CDCTriggerSegmentHit > entAry_TSF
Stereo TSF 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_ID_TSF5
TSF5 ID of T3D in each module.
StoreArray< CDCTriggerTrack > entAry
3D data store
TH1D * h_rt_TSF5
TSF5 priority time of T3D in each module.
TH1D * h_pt
pt of T3D in each module
virtual void beginRun() override
begin Run
TH1D * h_phi
phi of T3D in each module
virtual void event() override
Event.
TH1D * h_rt_TSF3
TSF3 priority time of T3D in each module.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
virtual void defineHisto() override
Define Histogram.
TH1D * h_tanlambda
tanlambda of T3D in each module
TH1D * h_validity_TSF1
TSF1 validity of T3D in each module.