17 const std::string& name,
18 const IInterface* parent )
22 declareInterface< IJetCnvTool >(
this );
37 bool constitSearch)
const
44 std::vector< std::string > momentKeys ;
47 momentKeys= (*it)->getMomentKeys();
50 (*it)->begin() != (*it)->end() )
62 if( !xaodConstitCont )
ATH_MSG_DEBUG(
"Could not retrieve xaod constiuents with key "<< proxy->name() );
68 for( ; it!= itE; ++it){
82 for( ; cit!= citE; ++cit){
84 double min_dr2 = 0.1 * 0.1;
88 double deta = p->eta() - (*cit)->eta();
89 double dphi = TVector2::Phi_mpi_pi (p->phi() - (*cit)->phi());
90 double dr2 = deta*deta + dphi*dphi;
110 for(
size_t i=0;i<momentKeys.size(); i++){
111 xjet->
setAttribute<
float>( momentKeys[i],
jet->getMoment( momentKeys[i]) );
138 return StatusCode::SUCCESS;
ServiceHandle< StoreGateSvc > & evtStore()
bool isDefault() const
Test to see if we're in the default state.
Object reference supporting deferred reading from StoreGate.
sgkey_t key() const
Get the key that we reference, as a hash.
void toIdentifiedObject(const ID_type &dataID, IProxyDict *sg=0)
Set the link to an object given by a string key.
DataModel_detail::const_iterator< DataVector > const_iterator
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ElementLink implementation for ROOT usage.
navigable_t::object_iter const_iterator
Class providing the definition of the 4-vector interface.
void setAttribute(const std::string &name, const T &v)
void addConstituent(const ElementLink< IParticleContainer > &link, float weight=1.0)
Add a constituent directly in the ElementLink format.
size_t numConstituents() const
Number of constituents in this jets (this is valid even when reading a file where the constituents ha...
void setJetP4(const JetFourMom_t &p4)
void setConstituentsSignalState(JetConstitScale t)
Set the state at which constituents were when this jet was found. This function is called by jet buil...
virtual double pt() const
The transverse momentum ( ) of the particle.
Jet_v1 Jet
Definition of the current "jet version".
@ 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.