RecoVertex
KalmanVertexFit
plugins
KVFTest.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: KVFTest
4
// Class: KVFTest
5
//
14
// system include files
15
#include <memory>
16
17
// user include files
18
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
19
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
20
21
#include "
FWCore/Framework/interface/Event.h
"
22
#include "
FWCore/Framework/interface/EventSetup.h
"
23
24
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
25
#include "
SimDataFormats/Vertex/interface/SimVertex.h
"
26
#include "
SimDataFormats/TrackingAnalysis/interface/TrackingVertexContainer.h
"
27
#include "
SimDataFormats/Associations/interface/TrackToTrackingParticleAssociator.h
"
28
#include "
RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h
"
29
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
30
#include <TFile.h>
31
36
class
KVFTest
:
public
edm::EDAnalyzer
{
37
public
:
38
explicit
KVFTest
(
const
edm::ParameterSet
&);
39
~KVFTest
()
override
;
40
41
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
42
43
void
beginJob
()
override
;
44
void
endJob
()
override
;
45
46
private
:
47
TrackingVertex
getSimVertex
(
const
edm::Event
&
iEvent
)
const
;
48
49
edm::ParameterSet
theConfig
;
50
edm::ParameterSet
kvfPSet
;
51
std::unique_ptr<SimpleVertexTree>
tree
;
52
TFile*
rootFile_
;
53
54
std::string
outputFile_
;
// output file
55
edm::EDGetTokenT<reco::TrackCollection>
token_tracks
;
56
edm::EDGetTokenT<TrackingParticleCollection>
token_TrackTruth
;
57
edm::EDGetTokenT<TrackingVertexCollection>
token_VertexTruth
;
58
edm::EDGetTokenT<reco::TrackToTrackingParticleAssociator>
token_associatorForParamAtPca
;
59
};
KVFTest::KVFTest
KVFTest(const edm::ParameterSet &)
Definition:
KVFTest.cc:26
KVFTest::rootFile_
TFile * rootFile_
Definition:
KVFTest.h:52
edm::EDGetTokenT< reco::TrackCollection >
KVFTest::theConfig
edm::ParameterSet theConfig
Definition:
KVFTest.h:49
KVFTest::tree
std::unique_ptr< SimpleVertexTree > tree
Definition:
KVFTest.h:51
KVFTest::~KVFTest
~KVFTest() override
Definition:
KVFTest.cc:39
EDAnalyzer.h
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
SimpleVertexTree.h
KVFTest::token_associatorForParamAtPca
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > token_associatorForParamAtPca
Definition:
KVFTest.h:58
TrackFwd.h
TrackingVertexContainer.h
KVFTest::token_tracks
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition:
KVFTest.h:55
SimVertex.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
TrackToTrackingParticleAssociator.h
KVFTest::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
KVFTest.cc:49
KVFTest::beginJob
void beginJob() override
Definition:
KVFTest.cc:41
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
KVFTest::endJob
void endJob() override
Definition:
KVFTest.cc:43
TrackingVertex
Definition:
TrackingVertex.h:22
KVFTest
Definition:
KVFTest.h:36
iEvent
int iEvent
Definition:
GenABIO.cc:224
KVFTest::kvfPSet
edm::ParameterSet kvfPSet
Definition:
KVFTest.h:50
edm::EventSetup
Definition:
EventSetup.h:57
KVFTest::token_TrackTruth
edm::EDGetTokenT< TrackingParticleCollection > token_TrackTruth
Definition:
KVFTest.h:56
Frameworkfwd.h
KVFTest::getSimVertex
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition:
KVFTest.cc:108
EventSetup.h
KVFTest::token_VertexTruth
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition:
KVFTest.h:57
ParameterSet.h
edm::Event
Definition:
Event.h:73
KVFTest::outputFile_
std::string outputFile_
Definition:
KVFTest.h:54
Generated for CMSSW Reference Manual by
1.8.16