src
CommonTools
RecoUtils
interface
PF_PU_FirstVertexTracks.h
Go to the documentation of this file.
1
#ifndef PF_PU_FirstVertexTracks_h
2
#define PF_PU_FirstVertexTracks_h
3
4
// -*- C++ -*-
5
//
6
// Package: PF_PU_AssoMap
7
// Class: PF_PU_FirstVertexTracks
8
//
13
//
14
15
// Original Author: Matthias Geisler
16
// Created: Wed Apr 18 14:48:37 CEST 2012
17
//
18
//
19
20
// system include files
21
#include <memory>
22
23
// user include files
24
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
25
#include "
FWCore/Framework/interface/global/EDProducer.h
"
26
27
#include "
FWCore/Framework/interface/Event.h
"
28
#include "
FWCore/Framework/interface/Run.h
"
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
31
#include "
FWCore/Utilities/interface/InputTag.h
"
32
33
#include "
DataFormats/Common/interface/AssociationMap.h
"
34
#include "
DataFormats/Common/interface/OneToManyWithQuality.h
"
35
#include "
DataFormats/TrackReco/interface/Track.h
"
36
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
37
#include "
DataFormats/VertexReco/interface/Vertex.h
"
38
#include "
DataFormats/VertexReco/interface/VertexFwd.h
"
39
40
typedef
edm::AssociationMap<edm::OneToManyWithQuality<reco::VertexCollection, reco::TrackCollection, int>
>
41
TrackToVertexAssMap
;
42
typedef
edm::AssociationMap<edm::OneToManyWithQuality<reco::TrackCollection, reco::VertexCollection, int>
>
43
VertexToTrackAssMap
;
44
45
//
46
// class declaration
47
//
48
49
class
PF_PU_FirstVertexTracks
:
public
edm::global::EDProducer
<> {
50
public
:
51
explicit
PF_PU_FirstVertexTracks
(
const
edm::ParameterSet
&);
52
53
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
54
55
private
:
56
void
produce
(
edm::StreamID
,
edm::Event
&,
const
edm::EventSetup
&)
const override
;
57
bool
trackMatch
(
const
reco::Track
&,
const
reco::Track
&)
const
;
58
59
// ----------member data ---------------------------
60
61
edm::InputTag
input_AssociationType_
;
62
63
edm::EDGetTokenT<TrackToVertexAssMap>
token_TrackToVertexAssMap_
;
64
edm::EDGetTokenT<VertexToTrackAssMap>
token_VertexToTrackAssMap_
;
65
edm::EDGetTokenT<reco::TrackCollection>
token_generalTracksCollection_
;
66
edm::EDGetTokenT<reco::VertexCollection>
token_VertexCollection_
;
67
68
int
input_MinQuality_
;
69
};
70
71
#endif
PF_PU_FirstVertexTracks::PF_PU_FirstVertexTracks
PF_PU_FirstVertexTracks(const edm::ParameterSet &)
Definition:
PF_PU_FirstVertexTracks.cc:52
Vertex.h
TrackToVertexAssMap
edm::AssociationMap< edm::OneToManyWithQuality< reco::VertexCollection, reco::TrackCollection, int > > TrackToVertexAssMap
Definition:
PF_PU_FirstVertexTracks.h:41
AssociationMap.h
PF_PU_FirstVertexTracks::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
PF_PU_FirstVertexTracks.cc:186
edm::StreamID
Definition:
StreamID.h:30
Event.h
PF_PU_FirstVertexTracks::token_VertexToTrackAssMap_
edm::EDGetTokenT< VertexToTrackAssMap > token_VertexToTrackAssMap_
Definition:
PF_PU_FirstVertexTracks.h:64
PF_PU_FirstVertexTracks::trackMatch
bool trackMatch(const reco::Track &, const reco::Track &) const
Definition:
PF_PU_FirstVertexTracks.cc:180
TrackFwd.h
VertexFwd.h
edm::EDGetTokenT
Definition:
EDGetToken.h:37
Frameworkfwd.h
OneToManyWithQuality.h
PF_PU_FirstVertexTracks::input_MinQuality_
int input_MinQuality_
Definition:
PF_PU_FirstVertexTracks.h:68
PF_PU_FirstVertexTracks::token_VertexCollection_
edm::EDGetTokenT< reco::VertexCollection > token_VertexCollection_
Definition:
PF_PU_FirstVertexTracks.h:66
PF_PU_FirstVertexTracks::produce
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Definition:
PF_PU_FirstVertexTracks.cc:90
PF_PU_FirstVertexTracks::input_AssociationType_
edm::InputTag input_AssociationType_
Definition:
PF_PU_FirstVertexTracks.h:61
edm::AssociationMap
Definition:
AssociationMap.h:48
VertexToTrackAssMap
edm::AssociationMap< edm::OneToManyWithQuality< reco::TrackCollection, reco::VertexCollection, int > > VertexToTrackAssMap
Definition:
PF_PU_FirstVertexTracks.h:43
edm::EventSetup
Definition:
EventSetup.h:56
Run.h
edm::global::EDProducer
Definition:
EDProducer.h:32
reco::Track
Definition:
Track.h:27
EDProducer.h
edm::InputTag
Definition:
InputTag.h:15
InputTag.h
PF_PU_FirstVertexTracks::token_TrackToVertexAssMap_
edm::EDGetTokenT< TrackToVertexAssMap > token_TrackToVertexAssMap_
Definition:
PF_PU_FirstVertexTracks.h:63
PF_PU_FirstVertexTracks::token_generalTracksCollection_
edm::EDGetTokenT< reco::TrackCollection > token_generalTracksCollection_
Definition:
PF_PU_FirstVertexTracks.h:65
Track.h
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::Event
Definition:
Event.h:73
MakerMacros.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
PF_PU_FirstVertexTracks
Definition:
PF_PU_FirstVertexTracks.h:49
Generated for CMSSW Reference Manual by
1.8.14