xAOD::JetConstituentVector Class Reference

A vector of jet constituents at the scale used during jet finding. More...

#include <JetConstituentVector.h>

List of all members.

Classes

class  iterator

Public Types

typedef iterator const_iterator
typedef std::vector
< ElementLink
< IParticleContainer > > 
ELvector

Public Member Functions

 JetConstituentVector (const ELvector *elv, JetConstitScale s)
bool isValid () const
 Check if element links are valid.
bool empty () const
 true if vector is empty()
size_t size () const
 number of constituents
iterator begin () const
 iterator on the first constituent
iterator end () const
 iterator after the last constituent
iterator begin (JetConstitScale s) const
 iterator at scale
iterator end (JetConstitScale s) const
 iterator at scale
JetConstituent operator[] (size_t i) const
 Constituent proxy at position i.
JetConstituent at (size_t i) const
 Constituent proxy at position i.
JetConstituent front () const
 first constituent proxy
JetConstituent back () const
 last constituent proxy
std::vector< const IParticle * > asIParticleVector () const
std::vector< JetConstituentasSTLVector ()

Protected Attributes

const std::vector< ElementLink
< IParticleContainer > > * 
m_elVector
JetConstitScale m_sigState

Detailed Description

A vector of jet constituents at the scale used during jet finding.

This class can be used as a vector<const IParticle*>. It provides iterators and the usual function of vector<>


Member Function Documentation

std::vector< const IParticle * > xAOD::JetConstituentVector::asIParticleVector (  )  const

vector of pointer to the underlying IParticles. WARNING !! these raw IParticle constituents might have a scale incompatible with the jet they're coming from.

std::vector< JetConstituent > xAOD::JetConstituentVector::asSTLVector (  ) 

Returns this vector as a std::vector Provided for convenience when dealing with the JetConstituentVector::iterator is not possible. This method is slighly under-performant since it will create and fill a new std::vector.

iterator xAOD::JetConstituentVector::begin ( JetConstitScale  s  )  const

iterator at scale

Parameters:
s on the first constituent
iterator xAOD::JetConstituentVector::end ( JetConstitScale  s  )  const

iterator at scale

Parameters:
s after the last constituent

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1