12#include "EventInfo/EventInfo.h"
18 const std::string& name,
19 const IInterface* parent) :
42 return StatusCode::SUCCESS;
54 ATH_MSG_INFO (
"Filling n of hists " << hists.size() <<
" ");
55 for (
const auto& hist : hists) {
59 return StatusCode::SUCCESS;
68 if (!ditauJetsReadHandle.
isValid()) {
69 ATH_MSG_ERROR (
"Could not retrieve DiTauJetContainer with key " << ditauJetsReadHandle.
key());
70 return StatusCode::FAILURE;
83 for (
auto ditau : *ditaus) {
101 if ( (
bool) isTruthHadronic(*ditau) ) {
115 return StatusCode::SUCCESS;
121 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helper class to provide constant type-safe access to aux data.
size_type size() const noexcept
Returns the number of elements in the collection.
SG::ReadHandleKey< xAOD::DiTauJetContainer > m_ditauContainerKey
SG::ReadDecorHandleKey< xAOD::DiTauJetContainer > m_IsTruthHadronicKey
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
ToolHandle< TauAnalysisTools::IDiTauSelectionTool > m_nomiDiTauSel
std::unique_ptr< DiTauValidationPlots > m_oDiTauValidationPlots
Gaudi::Property< bool > m_isMC
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
ToolHandle< TauAnalysisTools::IDiTauTruthMatchingTool > m_truthTool
PhysValDiTau(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
virtual StatusCode fillHistograms(const EventContext &ctx)
An inheriting class should either override this function or fillHists().
virtual StatusCode initialize()
Handle class for reading a decoration on an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
float beamSpotWeight() const
Weight for beam spot size reweighting.
EventInfo_v1 EventInfo
Definition of the latest event info version.
DiTauJetContainer_v1 DiTauJetContainer
Definition of the current DiTauJet container version.