|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "fastjet/Selector.hh"
15 #include "fastjet/PseudoJet.hh"
16 #include "fastjet/JetDefinition.hh"
17 #include "fastjet/ClusterSequenceArea.hh"
18 #include "fastjet/AreaDefinition.hh"
19 #include "fastjet/tools/Filter.hh"
20 #include "fastjet/tools/Pruner.hh"
24 const std::string&
name,
25 const IInterface *
parent) :
30 declareInterface<DiTauToolBase > (
this);
41 return StatusCode::SUCCESS;
46 const EventContext& )
const {
53 if (pDiTau ==
nullptr) {
55 return StatusCode::FAILURE;
61 return StatusCode::FAILURE;
70 ATH_MSG_WARNING(
"cluster constituents could not be retrieved from seed jet");
71 return StatusCode::FAILURE;
74 std::vector<PseudoJet> vpjClusters;
76 for (
const auto *
cl: vConst) {
78 TLorentzVector temp_p4;
79 temp_p4.SetPtEtaPhiM(
cl->pt(),
cl->eta(),
cl->phi(),
cl->m());
80 PseudoJet
c( temp_p4.Px(), temp_p4.Py(), temp_p4.Pz(), temp_p4.E());
82 vpjClusters.push_back(
c);
89 AreaDefinition area_def(active_area_explicit_ghosts,GhostedAreaSpec(SelectorAbsRapMax(4.0)));
90 ClusterSequenceArea cs(vpjClusters, jd, area_def);
93 std::vector<PseudoJet> vSubjets = sorted_by_pt( cs.inclusive_jets(
m_ptmin) );
94 if (vSubjets.size()<=1) {
95 ATH_MSG_DEBUG(
"Found less than 2 subjets. Reject ditau candidate");
96 return StatusCode::FAILURE;
100 for (
const auto&
subjet: vSubjets) {
104 data->subjets = vSubjets;
107 return StatusCode::SUCCESS;
char data[hepevt_bytes_allocation_ATLAS]
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
JetConstituentVector getConstituents() const
Return a vector of consituents. The object behaves like vector<const IParticle*>. See JetConstituentV...
This file defines helper classes to deal with jet constituents.
SubjetBuilder(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
bool empty() const
true if vector is empty()
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute(DiTauCandidateData *data, const EventContext &ctx) const override
Execute - called for each Ditau candidate.
virtual StatusCode initialize() override
Tool initializer.
virtual ~SubjetBuilder()
Destructor.
#define ATH_MSG_WARNING(x)
A vector of jet constituents at the scale used during jet finding.
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]