Main Page
Namespaces
Classes
Package Documentation
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/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::EDProducer
{
50
public
:
51
explicit
PF_PU_FirstVertexTracks
(
const
edm::ParameterSet
&);
52
~PF_PU_FirstVertexTracks
()
override
;
53
54
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
55
56
private
:
57
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
58
virtual
bool
TrackMatch
(
const
reco::Track
&,
const
reco::Track
&);
59
60
// ----------member data ---------------------------
61
62
edm::InputTag
input_AssociationType_
;
63
64
edm::EDGetTokenT<TrackToVertexAssMap>
token_TrackToVertexAssMap_
;
65
edm::EDGetTokenT<VertexToTrackAssMap>
token_VertexToTrackAssMap_
;
66
edm::EDGetTokenT<reco::TrackCollection>
token_generalTracksCollection_
;
67
edm::EDGetTokenT<reco::VertexCollection>
token_VertexCollection_
;
68
69
int
input_MinQuality_
;
70
};
71
72
#endif
PF_PU_FirstVertexTracks::PF_PU_FirstVertexTracks
PF_PU_FirstVertexTracks(const edm::ParameterSet &)
Definition:
PF_PU_FirstVertexTracks.cc:52
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:191
Event.h
PF_PU_FirstVertexTracks::token_VertexToTrackAssMap_
edm::EDGetTokenT< VertexToTrackAssMap > token_VertexToTrackAssMap_
Definition:
PF_PU_FirstVertexTracks.h:65
MakerMacros.h
TrackFwd.h
VertexFwd.h
edm::EDGetTokenT
Definition:
EDGetToken.h:33
Frameworkfwd.h
edm::EDProducer
Definition:
EDProducer.h:36
OneToManyWithQuality.h
PF_PU_FirstVertexTracks::input_MinQuality_
int input_MinQuality_
Definition:
PF_PU_FirstVertexTracks.h:69
PF_PU_FirstVertexTracks::token_VertexCollection_
edm::EDGetTokenT< reco::VertexCollection > token_VertexCollection_
Definition:
PF_PU_FirstVertexTracks.h:67
PF_PU_FirstVertexTracks::input_AssociationType_
edm::InputTag input_AssociationType_
Definition:
PF_PU_FirstVertexTracks.h:62
PF_PU_FirstVertexTracks::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
PF_PU_FirstVertexTracks.cc:95
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:57
Run.h
Vertex.h
EDProducer.h
PF_PU_FirstVertexTracks::~PF_PU_FirstVertexTracks
~PF_PU_FirstVertexTracks() override
Definition:
PF_PU_FirstVertexTracks.cc:85
reco::Track
Definition:
Track.h:27
edm::InputTag
Definition:
InputTag.h:15
InputTag.h
PF_PU_FirstVertexTracks::token_TrackToVertexAssMap_
edm::EDGetTokenT< TrackToVertexAssMap > token_TrackToVertexAssMap_
Definition:
PF_PU_FirstVertexTracks.h:64
PF_PU_FirstVertexTracks::token_generalTracksCollection_
edm::EDGetTokenT< reco::TrackCollection > token_generalTracksCollection_
Definition:
PF_PU_FirstVertexTracks.h:66
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::Event
Definition:
Event.h:72
Track.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
PF_PU_FirstVertexTracks::TrackMatch
virtual bool TrackMatch(const reco::Track &, const reco::Track &)
Definition:
PF_PU_FirstVertexTracks.cc:185
PF_PU_FirstVertexTracks
Definition:
PF_PU_FirstVertexTracks.h:49
Generated for CMSSW Reference Manual by
1.8.11