CMS 3D CMS Logo

RecoTauVertexAssociator.h
Go to the documentation of this file.
1 #ifndef RecoTauTag_RecoTau_RecoTauVertexAssociator_h
2 #define RecoTauTag_RecoTau_RecoTauVertexAssociator_h
3 
4 /* RecoTauVertexAssociator
5  *
6  * Authors: Evan K. Friis, Christian Veelken, UC Davis
7  * Michalis Bachtis, UW Madison
8  *
9  * The associatedVertex member function retrieves the vertex from the event
10  * associated to a given tau. This class is configured using a cms.PSet.
11  *
12  * The required arguments are:
13  * o primaryVertexSrc - InputTag with the vertex collection
14  * o useClosestPV - Use the "closest to lead track in z" to find the vertex.
15  *
16  * The setEvent method must be called at least once per event.
17  *
18  */
19 
26 
29 
31 
33 
34 #include <map>
35 
36 // Forward declarations
37 namespace edm {
38  class ParameterSet;
39  class Event;
40 } // namespace edm
41 
42 namespace reco {
43  class PFTau;
44  class Jet;
45 } // namespace reco
46 
47 namespace reco {
48  namespace tau {
49 
51  public:
53 
55  virtual ~RecoTauVertexAssociator();
62  reco::VertexRef associatedVertex(const PFTau& tau, bool useJet = false) const;
65 
67  void setEvent(const edm::Event& evt);
68  const Track* getLeadTrack(const Jet&) const;
69  const TrackBaseRef getLeadTrackRef(const Jet&) const;
70  const CandidatePtr getLeadCand(const Jet&) const;
71 
72  private:
76  std::vector<reco::VertexRef> selectedVertices_;
79  //PJ adding quality cuts
85  // containers for holding vertices associated to jets
86  std::map<const reco::Jet*, reco::VertexRef>* jetToVertexAssociation_;
89  };
90 
91  } // namespace tau
92 } // namespace reco
93 
94 #endif /* end of include guard: RecoTauTag_RecoTau_RecoTauVertexAssociator_h */
Handle.h
reco::tau::RecoTauVertexAssociator::getLeadTrack
const Track * getLeadTrack(const Jet &) const
Definition: RecoTauVertexAssociator.cc:122
reco::tau::RecoTauVertexAssociator::verbosity_
int verbosity_
Definition: RecoTauVertexAssociator.h:88
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
reco::tau::RecoTauVertexAssociator::getLeadCand
const CandidatePtr getLeadCand(const Jet &) const
Definition: RecoTauVertexAssociator.cc:54
reco::tau::RecoTauVertexAssociator::kHighestPtInEvent
Definition: RecoTauVertexAssociator.h:52
reco::tau::RecoTauQualityCuts
Definition: RecoTauQualityCuts.h:35
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::RecoTauVertexAssociator::recoverLeadingTrk_
bool recoverLeadingTrk_
Definition: RecoTauVertexAssociator.h:81
edm::EDGetTokenT< reco::VertexCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
AssociationMap.h
RunLumiEventNumber.h
reco::tau::RecoTauVertexAssociator::lastEvent_
edm::EventNumber_t lastEvent_
Definition: RecoTauVertexAssociator.h:87
reco::PFTau
Definition: PFTau.h:36
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::tau::RecoTauVertexAssociator::kLeadTrack
Definition: RecoTauVertexAssociator.h:82
reco::tau::RecoTauVertexAssociator::algo_
Algorithm algo_
Definition: RecoTauVertexAssociator.h:78
edm::Ref< VertexCollection >
reco::tau::RecoTauVertexAssociator
Definition: RecoTauVertexAssociator.h:50
reco::tau::RecoTauVertexAssociator::vxTrkFiltering_
bool vxTrkFiltering_
Definition: RecoTauVertexAssociator.h:74
Jet
Definition: Jet.py:1
reco::tau::RecoTauVertexAssociator::kClosestDeltaZ
Definition: RecoTauVertexAssociator.h:52
reco::tau::RecoTauVertexAssociator::jetToVertexAssociation_
std::map< const reco::Jet *, reco::VertexRef > * jetToVertexAssociation_
Definition: RecoTauVertexAssociator.h:86
reco::Track
Definition: Track.h:27
reco::tau::RecoTauVertexAssociator::kFirstTrack
Definition: RecoTauVertexAssociator.h:82
reco::tau::RecoTauVertexAssociator::Algorithm
Algorithm
Definition: RecoTauVertexAssociator.h:52
Event
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
JetCollection.h
reco::tau::RecoTauVertexAssociator::qcuts_
RecoTauQualityCuts * qcuts_
Definition: RecoTauVertexAssociator.h:80
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
reco::tau::RecoTauVertexAssociator::getLeadTrackRef
const TrackBaseRef getLeadTrackRef(const Jet &) const
Definition: RecoTauVertexAssociator.cc:130
RecoTauQualityCuts.h
reco::tau::RecoTauVertexAssociator::associatedVertex
reco::VertexRef associatedVertex(const Jet &jet) const
Definition: RecoTauVertexAssociator.cc:377
edm::ParameterSet
Definition: ParameterSet.h:47
EDConsumerBase.h
ParameterSet
Definition: Functions.h:16
reco::tau::RecoTauVertexAssociator::RecoTauVertexAssociator
RecoTauVertexAssociator(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauVertexAssociator.cc:155
reco::tau::RecoTauVertexAssociator::leadingTrkOrPFCandOption_
int leadingTrkOrPFCandOption_
Definition: RecoTauVertexAssociator.h:83
reco::tau::RecoTauVertexAssociator::vertexTag_
edm::InputTag vertexTag_
Definition: RecoTauVertexAssociator.h:73
reco::tau::RecoTauVertexAssociator::setEvent
void setEvent(const edm::Event &evt)
Load the vertices from the event.
Definition: RecoTauVertexAssociator.cc:241
reco::tau::RecoTauVertexAssociator::kMinLeadTrackOrPFCand
Definition: RecoTauVertexAssociator.h:82
InputTag.h
reco::tau::RecoTauVertexAssociator::vertexSelector_
StringCutObjectSelector< reco::Vertex > * vertexSelector_
Definition: RecoTauVertexAssociator.h:75
edm::Ptr< Candidate >
VertexFwd.h
reco::tau::RecoTauVertexAssociator::kHighestWeigtForLeadTrack
Definition: RecoTauVertexAssociator.h:52
reco::tau::RecoTauVertexAssociator::kCombined
Definition: RecoTauVertexAssociator.h:52
reco::tau::RecoTauVertexAssociator::kLeadPFCand
Definition: RecoTauVertexAssociator.h:82
StringCutObjectSelector.h
metsig::jet
Definition: SignAlgoResolutions.h:47
StringCutObjectSelector< reco::Vertex >
reco::tau::RecoTauVertexAssociator::vxToken_
edm::EDGetTokenT< reco::VertexCollection > vxToken_
Definition: RecoTauVertexAssociator.h:84
reco::tau::RecoTauVertexAssociator::selectedVertices_
std::vector< reco::VertexRef > selectedVertices_
Definition: RecoTauVertexAssociator.h:76
edm::RefToBase< reco::Track >
reco::tau::RecoTauVertexAssociator::~RecoTauVertexAssociator
virtual ~RecoTauVertexAssociator()
Definition: RecoTauVertexAssociator.cc:235
RecoPFTauTag_cff.PFTau
PFTau
Definition: RecoPFTauTag_cff.py:121
ConsumesCollector.h
reco::tau::RecoTauVertexAssociator::algorithm_
std::string algorithm_
Definition: RecoTauVertexAssociator.h:77
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27