Skip to content
Snippets Groups Projects
Commit dba70600 authored by Melissa Yexley's avatar Melissa Yexley
Browse files

adding changes so can be seen in a draft MR for hackathon

parent 4f06e42c
No related branches found
No related tags found
2 merge requests!707402024-04-19: merge of 24.0 into main,!67647Online Event Displays to CA
......@@ -38,7 +38,11 @@ namespace JiveXML {
ATH_MSG_VERBOSE("Retrieving " << dataTypeName());
SG::ReadHandle<Muon::CscPrepDataContainer> cscContainer(m_sgKey);
if (!cscContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
Muon::CscPrepDataContainer::const_iterator containerIt;
......
......@@ -46,6 +46,11 @@ namespace JiveXML {
SG::ReadHandle<Muon::MMPrepDataContainer> mmContainer(m_sgKey);
if (!mmContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
for (const auto mmCollection : *mmContainer){
ndata += mmCollection->size();
......
......@@ -40,7 +40,10 @@ namespace JiveXML {
ATH_MSG_VERBOSE("Retrieving " << dataTypeName());
SG::ReadHandle<Muon::MdtPrepDataContainer> mdtContainer(m_sgKey);
if (!mdtContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
Muon::MdtPrepDataContainer::const_iterator containerIt;
......
......@@ -40,6 +40,11 @@ namespace JiveXML {
SG::ReadHandle<Muon::RpcPrepDataContainer> rpcContainer(m_sgKey);
if (!rpcContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
Muon::RpcPrepDataContainer::const_iterator containerIt;
for (containerIt=rpcContainer->begin(); containerIt!=rpcContainer->end(); ++containerIt) {
......
......@@ -38,6 +38,11 @@ namespace JiveXML {
SG::ReadHandle<Muon::TgcPrepDataContainer> tgcContainer(m_sgKey);
if (!tgcContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
Muon::TgcPrepDataContainer::const_iterator containerIt;
for (containerIt=tgcContainer->begin(); containerIt!=tgcContainer->end(); ++containerIt) {
......
......@@ -28,7 +28,11 @@ namespace JiveXML {
if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Retrieving " << dataTypeName() << endmsg;
SG::ReadHandle<LVL1_ROI> roi(m_sgKey);
if (!roi.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int nRoIs = roi->getMuonROIs().size();
DataVect phi; phi.reserve(nRoIs);
......
......@@ -42,6 +42,11 @@ namespace JiveXML {
// retrieve the collection of RDO
SG::ReadHandle<RpcPadContainer> rdoContainer(m_sgKey);
if (!rdoContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata=0;
for (auto containerIt=rdoContainer->begin(); containerIt!=rdoContainer->end(); ++containerIt) {
ndata += (*containerIt)->size();
......
......@@ -45,6 +45,11 @@ namespace JiveXML {
SG::ReadHandle<Muon::sTgcPrepDataContainer> stgcContainer(m_sgKey);
if (!stgcContainer.isValid()) {
ATH_MSG_WARNING("Unable to retrieve: " << m_sgKey);
return(StatusCode::SUCCESS);
}
int ndata = 0;
for (const auto stgcCollection : *stgcContainer){
ndata += stgcCollection->size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment