58 return StatusCode::SUCCESS;
65 const EventContext& ctx = Gaudi::Hive::currentContext();
67 auto pDataEvent = std::make_unique<ALFA_CLinkEvent>();
73 pDataEvent->SetDCSFolderIDs(&DCSIds);
79 return StatusCode::SUCCESS;
86 return StatusCode::SUCCESS;
130 if(!locRecODEvColl.
isValid()) {
138 if(!locRecCorrEvColl.
isValid()) {
146 if(!locRecCorrODEvColl.
isValid()) {
152 return StatusCode::SUCCESS;
160 unsigned long long ullID;
165 if (!
h.range (
range))
return 0;
169 if(
time.isRunLumi()){
170 ullID=
static_cast<unsigned long long>(((
time.run_number()&0xffff)<<16)|(
time.lumi_block()&0xffff));
172 else if(
time.isTimeStamp()){
173 ullID =
time.time_stamp();
175 ullID |=
time.time_stamp_ns_offset();
197 return bRes? StatusCode::SUCCESS:StatusCode::FAILURE;
202 auto pxAODContainer = std::make_unique<xAOD::ALFADataContainer>();
203 auto pxAODAuxContainer = std::make_unique<xAOD::ALFADataAuxContainer>();
204 pxAODContainer->setStore(pxAODAuxContainer.get());
211 std::move(pxAODAuxContainer)) );
213 return StatusCode::SUCCESS;
220 int nPotID, nSideID, nODSign;
222 vector<int> vecFiberSel;
232 memset(&arrTrackCntPerRPot[0],0,
sizeof(arrTrackCntPerRPot));
235 nPotID=locRecEvent->getPotNum();
236 arrTrackCntPerRPot[nPotID]++;
240 nPotID=locRecODEvent->getPotNum();
241 arrTrackCntPerRPot[nPotID]++;
247 memset(&arrTrackCntPerRPot[0],0,
sizeof(arrTrackCntPerRPot));
254 nPotID=locRecEvent->getPotNum();
265 vecFiberSel=locRecEvent->getFibSel();
266 for(
i=0;
i<vecFiberSel.size();
i++)
271 arrTrackCntPerRPot[nPotID]++;
278 nPotID=locRecODEvent->getPotNum();
279 nSideID=locRecODEvent->getSide();
281 nODSign=(nSideID==0)? -1:1;
288 vecFiberSel=locRecODEvent->getFibSel();
289 for(
i=0;
i<vecFiberSel.size();
i++)
294 arrTrackCntPerRPot[nPotID]++;
310 memset(&arrTrackCntPerRPot[0],0,
sizeof(arrTrackCntPerRPot));
316 nPotID=locRecCorrEvent->getPotNum();
331 arrTrackCntPerRPot[nPotID]++;
337 nPotID=locRecCorrODEvent->getPotNum();
338 nSideID=locRecCorrODEvent->getSide();
340 nODSign=(nSideID==0)? -1:1;
354 arrTrackCntPerRPot[nPotID]++;
364 xAODContainer.
push_back(std::make_unique<xAOD::ALFAData>());
391 return StatusCode::SUCCESS;
398 int nPotID, nPlateID, nFiberID, nSideID;
422 vector<bool> vecRPPattern;
425 nPotID=rawDataColl->GetMBId_POT();
426 (
m_vecScaler)[nPotID-1]=rawDataColl->Get_scaler_POT();
428 vecRPPattern=rawDataColl->Get_pattern_POT();
429 for(
i=0;
i<vecRPPattern.size();
i++){
447 nPotID=
digit->getStation();
448 nPlateID=
digit->getPlate();
449 nFiberID=
digit->getFiber();
458 ATH_MSG_ERROR(
"Index exceed array size for [RPotID, nPlateID, nFiberID]= ["<<nPotID<<
", "<<nPlateID<<
", "<<nFiberID<<
"]" );
474 nPotID=oddigit->getStation();
475 nPlateID=oddigit->getPlate();
476 nSideID=oddigit->getSide();
477 nFiberID=oddigit->getFiber();
492 ATH_MSG_ERROR(
"Index exceed array size for [RPotID, nPlateID, nFiberID, nSideID]= ["<<nPotID<<
", "<<nPlateID<<
", "<<nFiberID<<
", "<<nSideID<<
"]" );
504 xAODContainer.
push_back(std::make_unique<xAOD::ALFAData>());
523 return StatusCode::SUCCESS;