|
ATLAS Offline Software
|
Go to the documentation of this file.
15 const float GeV = 1000.;
25 m_orTool(
"OverlapRemovalTool", this)
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;
92 template<
class ContainerType>
96 for(
auto obj : container){
101 template<
class ObjType>
104 if(
obj.pt() < 10.*
GeV)
return false;
105 if(std::abs(
obj.eta()) > 2.5)
return false;
110 bool OverlapRemovalTestAlg::selectObject<xAOD::Jet>(
const xAOD::Jet&
jet)
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)
143 for(
auto obj : container){
147 <<
" eta " <<
obj->eta() <<
" phi " <<
obj->phi()
148 <<
" overlaps " << overlaps);
def retrieve(aClass, aKey=None)
bool selectObject(const ObjType &obj)
Simple object selection.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void applySelection(const ContainerType &container)
Simple object selection.
ToolHandle< ORUtils::IOverlapRemovalTool > m_orTool
Handle to the tool.
Helper class to provide constant type-safe access to aux data.
const ort::inputAccessor_t selectAcc(inputLabel)
void printObjects(const xAOD::IParticleContainer &container, const std::string &type)
Print object info.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::string m_overlapLabel
Helper class to provide type-safe access to aux data.
const ort::inputDecorator_t bJetDec(bJetLabel)
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a tau jet.
virtual StatusCode execute()
Execute the algorithm.
virtual StatusCode initialize()
Initialize the algorithm.
const BTagging * getBTagging(const SG::AuxElement &part)
Access the default xAOD::BTagging object associated to an object.
#define ATH_MSG_WARNING(x)
std::string m_selectionLabel
Configuration.
OverlapRemovalTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
const ort::outputAccessor_t overlapAcc(outputLabel)