23 if(subjet_name.empty() || subjet_container_name.empty()) {
34 if(subjet_container ==
nullptr) {
38 sc =
evtStore()->record(subjet_container, subjet_container_name);
40 ATH_MSG_ERROR(
"Error recording subjet container (" << subjet_container_name <<
")");
45 ATH_MSG_ERROR(
"Error recording subjet aux container (" << subjet_container_name <<
"Aux.)");
51 std::vector<const xAOD::Jet *> subj_ptrs_const;
52 std::vector<xAOD::Jet *> subj_ptrs;
53 for(
auto it = subjets.begin(); it != subjets.end(); it++) {
56 subj_ptrs.push_back(subj);
57 subj_ptrs_const.push_back(subj);
68 double radius = it->associated_cluster_sequence()->jet_def().R();
80 jet.setAssociatedObjects(subjet_name, subj_ptrs_const);
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
value_type push_back(value_type pElem)
Add an element to the end of the collection.
ElementLink implementation for ROOT usage.
int extractConstituents(xAOD::Jet &jet, const NameList *pghostlabs, const fastjet::PseudoJet *ppj=0)
Build and fill constituents of jet from its PseudoJet (or from ppj) Returns the number of pseudojet c...
void setAlgorithmType(JetAlgorithmType::ID a)
void setAttribute(const std::string &name, const T &v)
void setJetP4(const JetFourMom_t &p4)
void setSizeParameter(float p)
JetFourMom_t jetP4() const
The full 4-momentum of the particle : internal jet type.
ID algId(const std::string &n)
Converts a string into a JetAlgorithmType::ID.
ID
//////////////////////////////////////// JetAlgorithmType::ID defines most common physics jet finding...
Jet_v1 Jet
Definition of the current "jet version".
JetAuxContainer_v1 JetAuxContainer
Definition of the current jet auxiliary container.
@ JetConstitScaleMomentum
JetContainer_v1 JetContainer
Definition of the current "jet container version".
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.