RecoVertex
KinematicFit
plugins
KineExample.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: KineExample
4
// Class: KineExample
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 "RecoVertex/KalmanVertexFit/test/SimpleVertexTree.h"
28
#include "
RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicVertex.h
"
29
#include "
RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicParticle.h
"
30
#include "
RecoVertex/KinematicFitPrimitives/interface/RefCountedKinematicTree.h
"
31
// #include "RecoVertex/KinematicFitPrimitives/interface/"
32
#include <TFile.h>
33
38
class
KineExample
:
public
edm::EDAnalyzer
{
39
public
:
40
explicit
KineExample
(
const
edm::ParameterSet
&);
41
~KineExample
()
override
;
42
43
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
44
45
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
46
void
endJob
()
override
;
47
48
private
:
49
void
printout
(
const
RefCountedKinematicVertex
& myVertex)
const
;
50
void
printout
(
const
RefCountedKinematicParticle
& myParticle)
const
;
51
void
printout
(
const
RefCountedKinematicTree
& myTree)
const
;
52
53
TrackingVertex
getSimVertex
(
const
edm::Event
&
iEvent
)
const
;
54
55
edm::ParameterSet
theConfig
;
56
edm::ParameterSet
kvfPSet
;
57
// std::unique_ptr<SimpleVertexTree> tree;
58
// TFile* rootFile_;
59
60
std::string
outputFile_
;
// output file
61
edm::EDGetTokenT<reco::TrackCollection>
token_tracks
;
62
// edm::EDGetTokenT<TrackingParticleCollection> token_TrackTruth;
63
edm::EDGetTokenT<TrackingVertexCollection>
token_VertexTruth
;
64
};
KineExample::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
KineExample.cc:62
KineExample::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
KineExample.cc:50
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< reco::TrackCollection >
EDAnalyzer.h
ReferenceCountingPointer< KinematicVertex >
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
KineExample
Definition:
KineExample.h:38
TrackingVertexContainer.h
SimVertex.h
KineExample::kvfPSet
edm::ParameterSet kvfPSet
Definition:
KineExample.h:56
KineExample::KineExample
KineExample(const edm::ParameterSet &)
Definition:
KineExample.cc:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
KineExample::getSimVertex
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition:
KineExample.cc:274
KineExample::endJob
void endJob() override
Definition:
KineExample.cc:56
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
TrackingVertex
Definition:
TrackingVertex.h:22
KineExample::token_VertexTruth
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition:
KineExample.h:63
KineExample::printout
void printout(const RefCountedKinematicVertex &myVertex) const
Definition:
KineExample.cc:218
iEvent
int iEvent
Definition:
GenABIO.cc:224
KineExample::theConfig
edm::ParameterSet theConfig
Definition:
KineExample.h:55
edm::EventSetup
Definition:
EventSetup.h:58
RefCountedKinematicVertex.h
Frameworkfwd.h
KineExample::~KineExample
~KineExample() override
Definition:
KineExample.cc:46
RefCountedKinematicTree.h
EventSetup.h
KineExample::token_tracks
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition:
KineExample.h:61
ParameterSet.h
RefCountedKinematicParticle.h
edm::Event
Definition:
Event.h:73
KineExample::outputFile_
std::string outputFile_
Definition:
KineExample.h:60
Generated for CMSSW Reference Manual by
1.8.16