157 MsgStream log(
msgSvc(), name());
161 ISvcLocator* svcLocator = Gaudi::svcLocator();
162 StatusCode sc=svcLocator->service(
"EventDataSvc", m_evtSvc);
164 cout<<
"Could not accesss EventDataSvc!"<<endl;
185 SmartDataPtr<CgemDigiCol> aDigiCol(m_evtSvc,
"/Event/Digi/CgemDigiCol");
187 cout<<
"Could not retrieve CGEM digi collection"<<endl;
189 nhit = aDigiCol->size();
190 CgemDigiCol::iterator iDigiCol;
196 for(iDigiCol=aDigiCol->begin(); iDigiCol!=aDigiCol->end(); iDigiCol++)
198 const Identifier ident = (*iDigiCol)->identify();
205 if(is_xstrip ==
true) view = 0;
206 double charge = (*iDigiCol)->getCharge_fc();
207 double time = (*iDigiCol)->getTime_ns();
209 hit_strip[ihit] = strip;
210 hit_layer[ihit] = layer;
211 hit_sheet[ihit] = sheet;
212 hit_view[ihit] = view;
216 else hit_length[ihit] = anode->
getLength();
218 hit_channel[ihit] = lutreader->
GetChannel(layer, sheet, view, strip);
219 hit_roc[ihit] = lutreader->
GetROC(layer, sheet, view, strip);
220 hit_feb[ihit] = lutreader->
GetFEB(layer, sheet, view, strip);
221 hit_tiger[ihit] = lutreader->
GetTIGER(layer, sheet, view, strip);
222 hit_chip[ihit] = lutreader->
GetChip(layer, sheet, view, strip);
223 hit_quality[ihit] = lutreader->
GetQuality(layer, sheet, view, strip);
228 hit_q[ihit] = charge;
229 hit_saturated[ihit] = 0;
231 if(is_xstrip ==
true) {
232 if(layer==0 && sheet==0) nhit_L1_S1_x++;
233 else if(layer==1 && sheet==0) nhit_L2_S1_x++;
234 else if(layer==1 && sheet==1) nhit_L2_S2_x++;
237 if(layer==0 && sheet==0) nhit_L1_S1_v++;
238 else if(layer==1 && sheet==0) nhit_L2_S1_v++;
239 else if(layer==1 && sheet==1) nhit_L2_S2_v++;
243 if(
time > timemin &&
time < timemax) {
244 if(is_xstrip ==
true) {
245 if(layer==0 && sheet==0) ntwin_L1_S1_x++;
246 else if(layer==1 && sheet==0) ntwin_L2_S1_x++;
247 else if(layer==1 && sheet==1) ntwin_L2_S2_x++;
250 if(layer==0 && sheet==0) ntwin_L1_S1_v++;
251 else if(layer==1 && sheet==0) ntwin_L2_S1_v++;
252 else if(layer==1 && sheet==1) ntwin_L2_S2_v++;
262 return StatusCode::SUCCESS;