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 
18 
19 namespace fwlite {
20  class Event;
21 }
22 
23 namespace reco {
28  typedef std::vector<Value> Values;
35 
36 
38  int tracksAtVertexNumber (const Container&, const reco::JetBaseRef&);
40  int tracksAtVertexNumber (const Container&, const reco::Jet&);
43  const LorentzVector& tracksAtVertexP4 (const Container&, const reco::Jet&);
45  int tracksAtCaloNumber (const Container&, const reco::JetBaseRef&);
47  int tracksAtCaloNumber (const Container&, const reco::Jet&);
51  const LorentzVector& tracksAtCaloP4 (const Container&, const reco::Jet&);
52 
54  bool setValue (Container&, const reco::JetBaseRef&, const JetExtendedData&);
56  bool setValue (Container*, const reco::JetBaseRef&, const JetExtendedData&);
58  const JetExtendedData& getValue (const Container&, const reco::JetBaseRef&);
60  const JetExtendedData& getValue (const Container&, const reco::Jet&);
62  std::vector<reco::JetBaseRef > allJets (const Container&);
64  bool hasJet (const Container&, const reco::JetBaseRef&);
66  bool hasJet (const Container&, const reco::Jet&);
67 
69  public:
70  JetExtendedData ();
76  };
77  }
78 }
79 
80 #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
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 ...
Definition: Event.h:16
std::pair< typename helper::RefFromRefProdTrait< reco::JetRefBaseProd >::ref_type, typename Values::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
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