42 {
44 Gaudi::svcLocator() -> service(
"MessageSvc",
msgSvc);
45 MsgStream log(
msgSvc,
"T0MdcCalib");
46 log << MSG::INFO << "T0MdcCalib::initialize()" << endreq;
47
48 m_hlist = hlist;
49 m_mdcGeomSvc = mdcGeomSvc;
50 m_mdcFunSvc = mdcFunSvc;
51 m_mdcUtilitySvc = mdcUtilitySvc;
52
53 m_vdr = 0.03;
54
56
57 int i;
58 int nwire;
59 int lay;
60 int cel;
61 char hname[200];
62
63 m_fdT0 = new TFolder("fdT0", "fdT0");
64 m_hlist ->
Add(m_fdT0);
65
66 m_fdResiWire = new TFolder("ResiWire", "ResiWire");
67 m_hlist->Add(m_fdResiWire);
68
69 nwire = m_mdcGeomSvc -> getWireSize();
70 for(i=0; i<nwire; i++){
71 lay = m_mdcGeomSvc -> Wire(i) -> Layer();
72 cel = m_mdcGeomSvc -> Wire(i) -> Cell();
73
74 sprintf(hname,
"Resi%04d_Lay%02d_Cell%03d_L", i, lay, cel);
75 m_hleft[i] = new TH1F(hname, "", 400, -2.0, 2.0);
76 m_fdT0 ->
Add(m_hleft[i]);
77
78 sprintf(hname,
"Resi%04d_Lay%02d_Cell%03d_R", i, lay, cel);
79 m_hright[i] = new TH1F(hname, "", 400, -2.0, 2.0);
80 m_fdT0 ->
Add(m_hright[i]);
81 }
82
83 m_hLrResiSum = new TH1F("LrResiSum", "", 200, -0.5, 0.5);
84 m_fdResiWire->Add(m_hLrResiSum);
85
86 m_hLrResiSub = new TH1F("LrResiSub", "", 200, -0.5, 0.5);
87 m_fdResiWire->Add(m_hLrResiSub);
88}
virtual void initialize(TObjArray *hlist, IMdcGeomSvc *mdcGeomSvc, IMdcCalibFunSvc *mdcFunSvc, IMdcUtilitySvc *mdcUtilitySvc)=0
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)