CMS 3D CMS Logo

JetTracksAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetTracksAssociation_h
2 #define JetReco_JetTracksAssociation_h
3 
18 
19 namespace fwlite {
20  class Event;
21 }
22 
23 namespace reco {
27  typedef std::vector<Value> Values;
34 
36  int tracksNumber(const Container&, const reco::JetBaseRef);
38  int tracksNumber(const Container&, const reco::Jet&);
42  LorentzVector tracksP4(const Container&, const reco::Jet&);
43 
51  const reco::TrackRefVector& getValue(const Container&, const reco::Jet&);
53  std::vector<reco::JetBaseRef> allJets(const Container&);
55  bool hasJet(const Container&, const reco::JetBaseRef&);
57  bool hasJet(const Container&, const reco::Jet&);
58  } // namespace JetTracksAssociation
64 } // namespace reco
65 
66 #endif
edm::RefProd
Definition: EDProductfwd.h:25
reco::JetTracksAssociation::Container
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Definition: JetTracksAssociation.h:28
reco::JetTracksAssociation::Ref
edm::Ref< Container > Ref
Definition: JetTracksAssociation.h:31
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
fwlite
Definition: TFileDirectory.h:16
reco::JetTracksAssociationRefProd
JetTracksAssociation::RefProd JetTracksAssociationRefProd
Definition: JetTracksAssociation.h:62
reco::JetTracksAssociation::Values
std::vector< Value > Values
Definition: JetTracksAssociation.h:27
reco::JetTracksAssociation::RefProd
edm::RefProd< Container > RefProd
Definition: JetTracksAssociation.h:32
reco::JetTracksAssociation::tracksP4
LorentzVector tracksP4(const Container &, const reco::JetBaseRef)
Get LorentzVector as sum of all tracks associated with jet.
Definition: JetTracksAssociation.cc:14
reco::JetTracksAssociationRef
JetTracksAssociation::Ref JetTracksAssociationRef
Definition: JetTracksAssociation.h:61
JetTracksAssociation
Association between jets and float value.
edm::RefVector
Definition: EDProductfwd.h:27
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::JetTracksAssociation::allJets
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Definition: JetTracksAssociation.cc:56
edm::Ref
Definition: AssociativeIterator.h:58
TrackFwd.h
reco::JetTracksAssociationRefVector
JetTracksAssociation::RefVector JetTracksAssociationRefVector
Definition: JetTracksAssociation.h:63
reco::JetTracksAssociation::setValue
bool setValue(Container &, const reco::JetBaseRef &, reco::TrackRefVector)
associate jet with value. Returns false and associate nothing if jet is already associated
Definition: JetTracksAssociation.cc:41
reco::JetTracksAssociation::RefVector
edm::RefVector< Container > RefVector
Definition: JetTracksAssociation.h:33
Event
JetCollection.h
edm::AssociationVector::transient_vector_type
std::vector< value_type > transient_vector_type
Definition: AssociationVector.h:78
edm::AssociationVector
Definition: AssociationVector.h:67
reco::JetTracksAssociationCollection
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
Definition: JetTracksAssociation.h:60
RefVector.h
LorentzVector.h
reco::JetTracksAssociation::hasJet
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
Definition: JetTracksAssociation.cc:60
reco::JetTracksAssociation::getValue
const reco::TrackRefVector & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetTracksAssociation.cc:47
Ref.h
reco::JetTracksAssociation::Value
reco::TrackRefVector Value
Definition: JetTracksAssociation.h:26
reco::JetTracksAssociation::transient_vector_type
Container::transient_vector_type transient_vector_type
Definition: JetTracksAssociation.h:30
reco::JetTracksAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition: JetTracksAssociation.h:25
reco::JetTracksAssociation::value_type
Container::value_type value_type
Definition: JetTracksAssociation.h:29
edm::RefToBase
Definition: AssociativeIterator.h:54
AssociationVector.h
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::JetTracksAssociation::tracksNumber
int tracksNumber(const Container &, const reco::JetBaseRef)
Get number of tracks associated with jet.
Definition: JetTracksAssociation.cc:7