80 {
82 Gaudi::svcLocator() -> service(
"MessageSvc",
msgSvc);
83 MsgStream log(
msgSvc,
"IniMdcCalib");
84 log << MSG::INFO << "IniMdcCalib::initialize()" << endreq;
85
86 m_hlist = hlist;
87 m_mdcGeomSvc = mdcGeomSvc;
88 m_mdcFunSvc = mdcFunSvc;
89 m_mdcUtilitySvc = mdcUtilitySvc;
90
91 int lay;
92 int cel;
93 int wir;
94 int ncel;
95 char hname[200];
96
97 m_nWire = m_mdcGeomSvc -> getWireSize();
98 m_nLayer = m_mdcGeomSvc -> getLayerSize();
99
100 m_fdcom = new TFolder("Common", "Common");
101 m_hlist->Add(m_fdcom);
102
103 m_fdTmap = new TFolder("Thitmap", "Thitmap");
104 m_hlist->Add(m_fdTmap);
105
106 m_fdTraw = new TFolder("Traw", "Traw");
107 m_hlist->Add(m_fdTraw);
108
109 m_fdTrawCel = new TFolder("TrawCell", "TrawCell");
110 m_hlist->Add(m_fdTrawCel);
111
112 m_fdTrawTes = new TFolder("TrawTes", "TrawTes");
113 m_hlist->Add(m_fdTrawTes);
114
115 m_fdQmap = new TFolder("Qhitmap", "Qhitmap");
116 m_hlist->Add(m_fdQmap);
117
118 m_fdQraw = new TFolder("Qraw", "Qraw");
119 m_hlist->Add(m_fdQraw);
120
121 m_fdQrawCel = new TFolder("QrawCell", "QrawCell");
122 m_hlist->Add(m_fdQrawCel);
123
124 m_hLayerHitmapT = new TH1F("T_Hitmap_Layer", "", 43, -0.5, 42.5);
125 m_fdcom->Add(m_hLayerHitmapT);
126
127 m_hWireHitMapT = new TH1F("T_Hitmap_Wire", "", 6796, -0.5, 6795.5);
128 m_fdcom->Add(m_hWireHitMapT);
129
130 m_hLayerHitmapQ = new TH1F("Q_Hitmap_Layer", "", 43, -0.5, 42.5);
131 m_fdcom->Add(m_hLayerHitmapQ);
132
133 m_hWireHitMapQ = new TH1F("Q_Hitmap_Wire", "", 6796, -0.5, 6795.5);
134 m_fdcom->Add(m_hWireHitMapQ);
135
136 int iEs;
137 for(iEs=0; iEs<m_param.
nEsFlag; iEs++){
138 sprintf(hname,
"Tes_%d", m_param.
esFlag[iEs]);
139 m_hTes[iEs] = new TH1F(hname, "", 750, 0, 1500);
140 m_fdcom->Add(m_hTes[iEs]);
141 }
142
143 m_hTesAllFlag = new TH1F("TesAllFlag", "", 300, -0.5, 299.5);
144 m_fdcom -> Add(m_hTesAllFlag);
145
146 m_hTesAll = new TH1F("TesAll", "", 750, 0, 1500);
147 m_fdcom->Add(m_hTesAll);
148
149 m_hTesCal = new TH1F("TesCal", "", 750, 0, 1500);
150 m_fdcom->Add(m_hTesCal);
151
152 m_hTesFlag = new TH1F("Tes_Flag", "", 300, -0.5, 299.5);
153 m_fdcom->Add(m_hTesFlag);
154
155 for(lay=0; lay<m_nLayer; lay++){
157
158 sprintf(hname, "T_hitmap_Lay%02d", lay);
159 m_hlaymapT[lay] = new TH1F(hname, "", ncel, -0.5, (float)ncel-0.5);
160 m_fdTmap -> Add(m_hlaymapT[lay]);
161
162 sprintf(hname, "TDC_Lay%02d", lay);
163 m_htdc[lay] = new TH1F(hname, "", 800, 0, 20000);
164 m_fdTraw -> Add(m_htdc[lay]);
165
166 sprintf(hname, "Traw_Lay%02d", lay);
167 m_htraw[lay] = new TH1F(hname, "", 500, 0, 1000);
168 m_fdTraw -> Add(m_htraw[lay]);
169
170 for(iEs=0; iEs<m_param.
nEsFlag; iEs++){
171 sprintf(hname,
"TDC_Lay%02d_Tes%d", lay, m_param.
esFlag[iEs]);
172 m_htdcTes[lay][iEs] = new TH1F(hname, "", 800, 0, 20000);
173 m_fdTrawTes -> Add(m_htdcTes[lay][iEs]);
174
175 sprintf(hname,
"Traw_Lay%02d_Tes%d", lay, m_param.
esFlag[iEs]);
176 m_htrawTes[lay][iEs] = new TH1F(hname, "", 300, 0, 600);
177 m_fdTrawTes -> Add(m_htrawTes[lay][iEs]);
178 }
179
180 sprintf(hname, "Q_hitmap_Lay%02d", lay);
181 m_hlaymapQ[lay] = new TH1F(hname, "", ncel, -0.5, (float)ncel-0.5);
182 m_fdQmap -> Add(m_hlaymapQ[lay]);
183
184 sprintf(hname, "Qraw_Lay%02d", lay);
185 m_hqraw[lay] = new TH1F(hname, "", 2000, 0, 4000);
186 m_fdQraw -> Add(m_hqraw[lay]);
187 }
188
190 lay = m_mdcGeomSvc -> Wire(wir) -> Layer();
191 cel = m_mdcGeomSvc -> Wire(wir) -> Cell();
192
193 sprintf(hname, "Traw_%02d_%03d_%04d", lay, cel, wir);
194 m_htrawCel[wir] = new TH1F(hname, "", 300, 0, 600);
195 m_fdTrawCel -> Add(m_htrawCel[wir]);
196
197 sprintf(hname, "Qraw_%02d_%03d_%04d", lay, cel, wir);
198 m_hqrawCel[wir] = new TH1F(hname, "", 2000, 0, 4000);
199 m_fdQrawCel -> Add(m_hqrawCel[wir]);
200 }
201}
virtual const MdcGeoLayer *const Layer(unsigned id)=0