JetPtAssociationTool Class Reference

#include <JetPtAssociationTool.h>

Inheritance diagram for JetPtAssociationTool:
JetModifierBase asg::AsgTool IJetModifier ISingleJetModifier asg::IAsgTool asg::IAsgTool asg::IAsgTool

List of all members.

Public Types

typedef std::vector< const
xAOD::IParticle * > 
APVector
typedef std::vector< unsigned > IndexVector
typedef std::vector< float > FloatVector

Public Member Functions

 JetPtAssociationTool (std::string myname)
 Constructor from tool name.
StatusCode initialize ()
 Initialization.
int modifyJet (xAOD::Jet &jet) const
int ptfrac (const APVector &aps, const xAOD::JetContainer &jets, FloatVector &ptsums) const
int match (const APVector &aps, const xAOD::Jet &jet, APVector &apvs) const

Detailed Description

David Adams
April 2014

Tool to associate jets using the fraction of AP (associated particle) pT shared with the constituents of jets in a matching container. Properties: AssociationName - Name of the association InputContainer - Name of the matching jet container


Member Function Documentation

int JetPtAssociationTool::match ( const APVector &  aps,
const xAOD::Jet jet,
APVector &  apvs 
) const

Return the vector of AP's that appear as constituents of the given jet. aps - input AP vector jet - Jet to be matched apvs - output vector of matched AP indices

int JetPtAssociationTool::modifyJet ( xAOD::Jet jet  )  const [virtual]

Inherited method to modify a jet. Extract and record the element link and pT fraction for the jet with the highest such fraction.

Implements ISingleJetModifier.

int JetPtAssociationTool::ptfrac ( const APVector &  aps,
const xAOD::JetContainer jets,
FloatVector &  ptsums 
) const

Return the matched pT sum for each jet in a collection. The matching is done with match(). aps - input AP vector jet - Jet to be matched ptsums - output vector with matched pT fraction for each jet


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