31 ATH_MSG_INFO(
"Additional decorators that will be attached to jet :");
43 return StatusCode::SUCCESS;
63 int truth_label = truth_label_acc(*
jet);
66 bool pass_taggerWP = accTagged(*
jet);
78 if(truth_label >= 1 && truth_label <= 5)
80 else if(truth_label == 21)
84 if(truth_label >= 1 && truth_label <= 5)
86 else if(truth_label == 21)
95 decInefficiency(*
jet) = inefficiency;
99 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate jet container with tagging info.
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_eff
SG::ReadDecorHandleKey< xAOD::JetContainer > m_accTaggedKey
virtual StatusCode initialize() override
Run once at the start of the job to setup everything.
Gaudi::Property< float > m_jetPtMin
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_eff
helper histogram tool ToDo: once W and top available should make this more generic and configurable
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_ineff
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_ineff
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
WriteDecorHandle keys.
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
ReadDecorHandle keys.
Gaudi::Property< float > m_jetPtMax
ScaleFactors(const std::string &name)
Constructor.
Gaudi::Property< std::string > m_truthLabelName
input parameters
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decInefficiencyKey
Gaudi::Property< float > m_jetEtaMax
Class JetContext Designed to read AOD information related to the event, N vertices,...
SG::ConstAccessor< T, ALLOC > ConstAccessor
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".