50 {
52 Gaudi::svcLocator() -> service(
"MessageSvc",
msgSvc);
53 MsgStream log(
msgSvc,
"QtMdcCalib");
54 log << MSG::INFO << "QtMdcCalib::initialize()" << endreq;
55
56 m_hlist = hlist;
57 m_mdcGeomSvc = mdcGeomSvc;
58 m_mdcFunSvc = mdcFunSvc;
59 m_mdcUtilitySvc = mdcUtilitySvc;
60
62
64 int lay;
65 double qbinw;
66 char hname[200];
67
68 for(lay=0; lay<m_nlayer; lay++){
69 m_qmin[lay] = m_param.
qmin[lay];
70 m_qmax[lay] = m_param.
qmax[lay];
71 m_qbinw[lay] = (m_qmax[lay] - m_qmin[lay]) / (double)m_nbin;
72 }
73
74 m_fdQt = new TFolder("fdQt", "fdQt");
75 m_fdQ_T = new TFolder("QtPlot", "QtPlot");
76 m_hlist -> Add(m_fdQt);
77 m_hlist -> Add(m_fdQ_T);
78
79 for(lay=0; lay<m_nlayer; lay++){
80 sprintf(hname, "HQ_Layer%02d", lay);
81 m_hqhit[lay] = new TH1F(hname, "", 1500, 0, 3000);
82 m_fdQt -> Add(m_hqhit[lay]);
83
84 sprintf(hname, "HQT_Plot_lay%02d", lay);
85 m_grqt[lay] = new TGraphErrors();
86 m_grqt[lay]->SetName(hname);
87 m_grqt[lay]->SetMarkerStyle(20);
88 m_grqt[lay]->SetMarkerColor(1);
89 m_fdQ_T->Add(m_grqt[lay]);
90
91 sprintf(hname, "HQdelT_Plot_lay%02d", lay);
92 m_grqdt[lay] = new TGraphErrors();
93 m_grqdt[lay]->SetName(hname);
94 m_grqdt[lay]->SetMarkerStyle(10);
95 m_grqdt[lay]->SetMarkerColor(1);
96 m_fdQ_T->Add(m_grqdt[lay]);
97
99 sprintf(hname,
"HQT_Lay%02d_Bin%02d", lay,
bin);
100 m_hqt[lay][
bin] =
new TH1F(hname,
"", 200, -1, 1);
101 m_fdQt -> Add(m_hqt[lay][
bin]);
102 }
103 }
104}
double qmax[MdcCalNLayer]
double qmin[MdcCalNLayer]
virtual void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)=0