#include <JetPtAssociationTool.h>
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 |
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
| 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
1.6.1