CMS 3D CMS Logo

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
20 
23 
27 // #include "RecoVertex/KalmanVertexFit/test/SimpleVertexTree.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 
54 
57  // std::unique_ptr<SimpleVertexTree> tree;
58  // TFile* rootFile_;
59 
60  std::string outputFile_; // output file
62  // edm::EDGetTokenT<TrackingParticleCollection> token_TrackTruth;
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:29
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:36
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:57
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