Skip to content
Snippets Groups Projects
Commit 7d28fab9 authored by Ewelina Maria Lobodzinska's avatar Ewelina Maria Lobodzinska
Browse files

GeneratorFilters: fix DirectPhotonFilter

parent 1f258045
No related branches found
No related tags found
9 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46514TGC Digitization: Implementation of signal propagation time between the sensor edge and ASD,!46344GeneratorFilters: fix DirectPhotonFilter
......@@ -16,8 +16,6 @@ DirectPhotonFilter::DirectPhotonFilter(const std::string& name, ISvcLocator* pSv
declareProperty("Etacut", m_EtaRange = 2.50);
declareProperty("AllowSUSYDecay",m_AllowSUSYDecay = false);
// Backward compatibility aliases
declareProperty("Ptcut", m_Ptmin);
}
StatusCode DirectPhotonFilter::filterInitialize() {
......@@ -62,7 +60,6 @@ StatusCode DirectPhotonFilter::filterEvent() {
for (McEventCollection::const_iterator itr = events_const()->begin(); itr!=events_const()->end(); ++itr) {
const HepMC::GenEvent* genEvt = (*itr);
ATH_MSG_DEBUG("----->>> Process : " << HepMC::signal_process_id(genEvt));
// Find all prompt photons with within given eta range
for (auto pitr: *genEvt) {
if (pitr->pdg_id() == 22 &&
......@@ -87,7 +84,7 @@ StatusCode DirectPhotonFilter::filterEvent() {
}
phot++;
if (!fromHadron) promptPhotonsInEta.push_back(pitr);
else ATH_MSG_INFO("non-prompt photon ignored");
else ATH_MSG_DEBUG("non-prompt photon ignored");
}
}
}
......@@ -115,7 +112,9 @@ StatusCode DirectPhotonFilter::filterEvent() {
}
}
if (pass) ATH_MSG_DEBUG("Passed!");
if (pass) {
ATH_MSG_DEBUG("Passed!");
}
setFilterPassed(pass);
}
else { // just require NPhotons to pass m_Ptmin/max[0]
......
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