CMS 3D CMS Logo

JetExtendedAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetExtendedAssociation_h
2 #define JetReco_JetExtendedAssociation_h
3 
18 
19 namespace fwlite {
20  class Event;
21 }
22 
23 namespace reco {
28  typedef std::vector<Value> Values;
35 
39  int tracksAtVertexNumber(const Container&, const reco::Jet&);
42  const LorentzVector& tracksAtVertexP4(const Container&, const reco::Jet&);
44  int tracksAtCaloNumber(const Container&, const reco::JetBaseRef&);
46  int tracksAtCaloNumber(const Container&, const reco::Jet&);
50  const LorentzVector& tracksAtCaloP4(const Container&, const reco::Jet&);
51 
53  bool setValue(Container&, const reco::JetBaseRef&, const JetExtendedData&);
55  bool setValue(Container*, const reco::JetBaseRef&, const JetExtendedData&);
57  const JetExtendedData& getValue(const Container&, const reco::JetBaseRef&);
59  const JetExtendedData& getValue(const Container&, const reco::Jet&);
61  std::vector<reco::JetBaseRef> allJets(const Container&);
63  bool hasJet(const Container&, const reco::JetBaseRef&);
65  bool hasJet(const Container&, const reco::Jet&);
66 
68  public:
75  };
76  } // namespace JetExtendedAssociation
77 } // namespace reco
78 
79 #endif
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Base class for all types of Jets.
Definition: Jet.h:20
const LorentzVector & tracksAtCaloP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated at calo face
const LorentzVector & tracksAtVertexP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated in the vertex
std::vector< value_type > transient_vector_type
int tracksAtVertexNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated in the vertex.
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...
std::pair< KeyRef, typename CVal::value_type > value_type
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiE4D< float > > PtEtaPhiELorentzVectorF
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:20
int tracksAtCaloNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated at calo face.
reco::JetExtendedAssociation::JetExtendedData Value
Association between jets and extended Jet information.
Container::transient_vector_type transient_vector_type
edm::RefProd< Container > RefProd
fixed size matrix
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
edm::RefVector< Container > RefVector
math::PtEtaPhiELorentzVectorF LorentzVector