CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetExtendedAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetExtendedAssociation_h
2 #define JetReco_JetExtendedAssociation_h
3 
19 
20 namespace fwlite {
21  class Event;
22 }
23 
24 namespace reco {
29  typedef std::vector<Value> Values;
36 
37 
39  int tracksAtVertexNumber (const Container&, const reco::JetBaseRef&);
41  int tracksAtVertexNumber (const Container&, const reco::Jet&);
44  const LorentzVector& tracksAtVertexP4 (const Container&, const reco::Jet&);
46  int tracksAtCaloNumber (const Container&, const reco::JetBaseRef&);
48  int tracksAtCaloNumber (const Container&, const reco::Jet&);
52  const LorentzVector& tracksAtCaloP4 (const Container&, const reco::Jet&);
53 
55  bool setValue (Container&, const reco::JetBaseRef&, const JetExtendedData&);
57  bool setValue (Container*, const reco::JetBaseRef&, const JetExtendedData&);
59  const JetExtendedData& getValue (const Container&, const reco::JetBaseRef&);
61  const JetExtendedData& getValue (const Container&, const reco::Jet&);
63  std::vector<reco::JetBaseRef > allJets (const Container&);
65  bool hasJet (const Container&, const reco::JetBaseRef&);
67  bool hasJet (const Container&, const reco::Jet&);
68 
70  public:
71  JetExtendedData ();
77  };
78  }
79 }
80 
81 #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:21
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:21
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
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