10 const std::string& name,
11 const IInterface * parent) :
14 declareInterface<DiTauToolBase > (
this);
24 return StatusCode::SUCCESS;
29 const EventContext& ctx)
const {
35 if (pDiTau ==
nullptr) {
37 return StatusCode::FAILURE;
43 return StatusCode::FAILURE;
48 ATH_MSG_DEBUG(
"ditau candidate: pt: "<<pSeed->
pt()<<
" eta: "<<pSeed->
eta()<<
" phi: "<<pSeed->
phi()<<
" m: "<<pSeed->
m());
49 pDiTau->
setP4(pSeed->
pt(), pSeed->
eta(), pSeed->
phi(), pSeed->
m());
58 <<
" pt:" << (*pDiTau->
jetLink())->pt()
59 <<
" eta:" << (*pDiTau->
jetLink())->eta()
60 <<
" phi:" << (*pDiTau->
jetLink())->phi() );
65 if (
data->Rjet == 0 ||
data->Rsubjet == 0 ||
data->Rcore == 0 ||
68 " R_jet: " <<
data->Rjet <<
69 " R_subjet: " <<
data->Rsubjet <<
70 " R_core: " <<
data->Rcore);
77 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
Handle class for reading from StoreGate.
bool isValid() const
Test to see if the link can be dereferenced.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
SeedJetBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerName
virtual ~SeedJetBuilder()
Destructor.
virtual StatusCode execute(DiTauCandidateData *data, const EventContext &ctx) const override
Execute - called for each Ditau candidate.
virtual StatusCode initialize() override
Tool initializer.
void setP4(double pt, double eta, double phi, double m)
Set methods for IParticle values.
const JetLink_t & jetLink() const
void setDetail(DiTauJetParameters::Detail detail, int value)
void setJet(const xAOD::JetContainer *cont, const xAOD::Jet *jet)
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double pt() const
The transverse momentum ( ) of the particle.
virtual double m() const
The invariant mass of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
Jet_v1 Jet
Definition of the current "jet version".
DiTauJet_v1 DiTauJet
Definition of the current version.