Skip to content
Snippets Groups Projects
Commit 7e5cc31a authored by Matthew Thomas Anthony's avatar Matthew Thomas Anthony :speech_balloon:
Browse files

Made sure Gaudi Bool works for neutral flowelems works properly

parent 4646fe16
No related branches found
No related tags found
7 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!38094Fix muon link to charged flow element,!36273Connect Flow Elements to Muon container
...@@ -114,6 +114,7 @@ StatusCode PFMuonFlowElementAssoc::execute() { ...@@ -114,6 +114,7 @@ StatusCode PFMuonFlowElementAssoc::execute() {
// Loop over Neutral FlowElements // Loop over Neutral FlowElements
////////////////////////////////////////////////// //////////////////////////////////////////////////
if(m_LinkNeutralFEClusters){ if(m_LinkNeutralFEClusters){
ATH_MSG_DEBUG("Experimental: Cluster Linkers between neutral FEs and Muons are used");
for (const xAOD::FlowElement* FE: *NeutralFEmuonWriteDecorHandle){ for (const xAOD::FlowElement* FE: *NeutralFEmuonWriteDecorHandle){
//get the index of the cluster corresponding to the Neutral FlowElements //get the index of the cluster corresponding to the Neutral FlowElements
size_t FEclusterindex=FE->otherObjects().at(0)->index(); size_t FEclusterindex=FE->otherObjects().at(0)->index();
...@@ -146,11 +147,14 @@ StatusCode PFMuonFlowElementAssoc::execute() { ...@@ -146,11 +147,14 @@ StatusCode PFMuonFlowElementAssoc::execute() {
////////////////////////////////////////////////// //////////////////////////////////////////////////
// Add the vectors of the Flow Element Links as decoations to the muon container // Add the vectors of the Flow Element Links as decoations to the muon container
for(const xAOD::Muon* muon: *muonChargedFEWriteDecorHandle){ for(const xAOD::Muon* muon: *muonChargedFEWriteDecorHandle){
muonChargedFEWriteDecorHandle(*muon)=muonChargedFEVec.at(muon->index()); muonChargedFEWriteDecorHandle(*muon)=muonChargedFEVec.at(muon->index());
} // end of muon loop } // end of muon loop
for(const xAOD::Muon* muon: *muonNeutralFEWriteDecorHandle){ if(m_LinkNeutralFEClusters){
muonNeutralFEWriteDecorHandle(*muon)=muonNeutralFEVec.at(muon->index()); for(const xAOD::Muon* muon: *muonNeutralFEWriteDecorHandle){
if(muonNeutralFEVec.size()>0){
muonNeutralFEWriteDecorHandle(*muon)=muonNeutralFEVec.at(muon->index());
}
}
} }
ATH_MSG_DEBUG("Execute completed successfully"); ATH_MSG_DEBUG("Execute completed successfully");
......
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