Skip to content
Snippets Groups Projects
Commit 0b30bab2 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'mhodgkin_fixPFlowMuonTreatment' into 'master'

Bug fix to treatment toggle of muons in eflowRec

See merge request atlas/athena!37754
parents 31fd7825 22422219
No related branches found
No related tags found
6 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,!37754Bug fix to treatment toggle of muons in eflowRec
...@@ -68,8 +68,16 @@ private: ...@@ -68,8 +68,16 @@ private:
Gaudi::Property<std::string> m_electronID{this,"electronID","LHMedium","Select electron ID"}; Gaudi::Property<std::string> m_electronID{this,"electronID","LHMedium","Select electron ID"};
/** Toggle to determine whether we select any electrons or not - if selected then tracks matched to those electrons
* in PFTrackSelector are not used in particle flow. If not selected then an empty electron container is created,
* and hence PFTrackSelector won't find any electrons to match its selected tracks to.
*/
Gaudi::Property<bool> m_selectElectrons{this,"selectElectrons",true,"Toggle usage of electron ID"}; Gaudi::Property<bool> m_selectElectrons{this,"selectElectrons",true,"Toggle usage of electron ID"};
/** Toggle to determine whether we select any muons or not - if selected then tracks matched to those muons
* in PFTrackSelector are not used in particle flow. If not selected then an empty muon container is created,
* and hence PFTrackSelector won't find any muons to match its selected tracks to.
*/
Gaudi::Property<bool> m_selectMuons{this,"selectMuons",true,"Toggle usage of muon ID"};
}; };
#endif #endif
...@@ -38,9 +38,11 @@ StatusCode PFLeptonSelector::execute(){ ...@@ -38,9 +38,11 @@ StatusCode PFLeptonSelector::execute(){
} }
/* Select muons */ /* Select muons */
StatusCode sc = this->selectMuons(selectedMuonsWriteHandle,leptonCaloCellsWriteHandle); if (m_selectMuons){
//if fail to select muons issue warning, but carry on processing event StatusCode sc = this->selectMuons(selectedMuonsWriteHandle,leptonCaloCellsWriteHandle);
if (sc.isFailure()) ATH_MSG_WARNING("Problem selecting muons "); //if fail to select muons issue warning, but carry on processing event
if (sc.isFailure()) ATH_MSG_WARNING("Problem selecting muons ");
}
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
......
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