15 const float GeV = 1000.;
29 "Input label for the OverlapRemovalTool");
31 "Output label for the OverlapRemovalTool");
33 "Input label for b-tagged jets");
46 return StatusCode::SUCCESS;
86 return StatusCode::SUCCESS;
92template<
class ContainerType>
101template<
class ObjType>
104 if(obj.pt() < 10.*
GeV)
return false;
105 if(std::abs(obj.eta()) > 2.5)
return false;
117 if(btag && btag->MVx_discriminant(
"MV2c10", mv2c10)){
121 if(
jet.pt() < 20.*
GeV)
return false;
122 if(std::abs(
jet.eta()) > 2.5)
return false;
129 if(obj.pt() < 20.*
GeV)
return false;
130 if(std::abs(obj.eta()) > 2.5)
return false;
139 const std::string&
type)
147 <<
" eta " << obj->eta() <<
" phi " << obj->phi()
148 <<
" overlaps " << overlaps);
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
const ort::inputDecorator_t bJetDec(bJetLabel)
const ort::outputAccessor_t overlapAcc(outputLabel)
const ort::inputAccessor_t selectAcc(inputLabel)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode execute()
Execute the algorithm.
virtual StatusCode initialize()
Initialize the algorithm.
std::string m_selectionLabel
Configuration.
void applySelection(const ContainerType &container)
Simple object selection.
OverlapRemovalTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
ToolHandle< ORUtils::IOverlapRemovalTool > m_orTool
Handle to the tool.
std::string m_overlapLabel
bool selectObject(const ObjType &obj)
Simple object selection.
void printObjects(const xAOD::IParticleContainer &container, const std::string &type)
Print object info.
SG::AuxElement::ConstAccessor< inputFlag_t > inputAccessor_t
Input object accessor.
SG::AuxElement::Decorator< inputFlag_t > inputDecorator_t
Input object decorator (for convenience if users want it)
SG::AuxElement::ConstAccessor< outputFlag_t > outputAccessor_t
Output object accessor (for convenience)
const BTagging * getBTagging(const SG::AuxElement &part)
Access the default xAOD::BTagging object associated to an object.
Jet_v1 Jet
Definition of the current "jet version".
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
TauJet_v3 TauJet
Definition of the current "tau version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.