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
edm::RefProd
Definition: EDProductfwd.h:25
reco::JetExtendedAssociation::setValue
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated
Definition: JetExtendedAssociation.cc:44
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
fwlite
Definition: TFileDirectory.h:16
reco::JetExtendedAssociation::hasJet
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
Definition: JetExtendedAssociation.cc:64
reco::JetExtendedAssociation::JetExtendedData::~JetExtendedData
~JetExtendedData()
Definition: JetExtendedAssociation.h:70
reco::JetExtendedAssociation::tracksAtCaloNumber
int tracksAtCaloNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated at calo face.
Definition: JetExtendedAssociation.cc:22
JetExtendedAssociation
Association between jets and extended Jet information.
reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloP4
LorentzVector mTracksAtCaloP4
Definition: JetExtendedAssociation.h:74
edm::RefVector
Definition: EDProductfwd.h:27
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloNumber
int mTracksAtCaloNumber
Definition: JetExtendedAssociation.h:73
reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexNumber
int mTracksAtVertexNumber
Definition: JetExtendedAssociation.h:71
reco::JetExtendedAssociation::Container
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Definition: JetExtendedAssociation.h:29
edm::Ref
Definition: AssociativeIterator.h:58
reco::JetExtendedAssociation::RefVector
edm::RefVector< Container > RefVector
Definition: JetExtendedAssociation.h:34
reco::JetExtendedAssociation::transient_vector_type
Container::transient_vector_type transient_vector_type
Definition: JetExtendedAssociation.h:31
reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexP4
LorentzVector mTracksAtVertexP4
Definition: JetExtendedAssociation.h:72
Event
reco::JetExtendedAssociation::JetExtendedData
Definition: JetExtendedAssociation.h:67
JetCollection.h
edm::AssociationVector::transient_vector_type
std::vector< value_type > transient_vector_type
Definition: AssociationVector.h:78
RefToBase.h
edm::AssociationVector
Definition: AssociationVector.h:67
reco::JetExtendedAssociation::Values
std::vector< Value > Values
Definition: JetExtendedAssociation.h:28
RefVector.h
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
LorentzVector.h
reco::JetExtendedAssociation::allJets
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Definition: JetExtendedAssociation.cc:60
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
reco::JetExtendedAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition: JetExtendedAssociation.h:25
Ref.h
reco::JetExtendedAssociation::Ref
edm::Ref< Container > Ref
Definition: JetExtendedAssociation.h:32
edm::RefToBase< Jet >
reco::JetExtendedAssociation::JetExtendedData::JetExtendedData
JetExtendedData()
Definition: JetExtendedAssociation.cc:72
AssociationVector.h
reco::JetExtendedAssociation::Value
reco::JetExtendedAssociation::JetExtendedData Value
Definition: JetExtendedAssociation.h:27
edm::AssociationVector::value_type
std::pair< KeyRef, typename CVal::value_type > value_type
Definition: AssociationVector.h:77
math::PtEtaPhiELorentzVectorF
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiE4D< float > > PtEtaPhiELorentzVectorF
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:20
reco::JetExtendedAssociation::tracksAtVertexNumber
int tracksAtVertexNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated in the vertex.
Definition: JetExtendedAssociation.cc:6
reco::JetExtendedAssociation::tracksAtCaloP4
const LorentzVector & tracksAtCaloP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated at calo face
Definition: JetExtendedAssociation.cc:29
reco::JetExtendedAssociation::RefProd
edm::RefProd< Container > RefProd
Definition: JetExtendedAssociation.h:33
reco::JetExtendedAssociation::tracksAtVertexP4
const LorentzVector & tracksAtVertexP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated in the vertex
Definition: JetExtendedAssociation.cc:13