CMS 3D CMS Logo

KineExample.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: KineExample
4 // Class: KineExample
5 //
15 // system include files
16 #include <memory>
17 
18 // user include files
21 
24 
28 // #include "RecoVertex/KalmanVertexFit/test/SimpleVertexTree.h"
32 // #include "RecoVertex/KinematicFitPrimitives/interface/"
33 #include <TFile.h>
34 
39 class KineExample : public edm::EDAnalyzer {
40 public:
41  explicit KineExample(const edm::ParameterSet&);
42  ~KineExample() override;
43 
44  void analyze(const edm::Event&, const edm::EventSetup&) override;
45 
46  void beginRun(edm::Run const&, edm::EventSetup const&) override;
47  void endJob() override;
48 
49 private:
50 
51  void printout(const RefCountedKinematicVertex& myVertex) const;
52  void printout(const RefCountedKinematicParticle& myParticle) const;
53  void printout(const RefCountedKinematicTree& myTree) const;
54 
56 
59 // std::unique_ptr<SimpleVertexTree> tree;
60 // TFile* rootFile_;
61 
62  std::string outputFile_; // output file
64 // edm::EDGetTokenT<TrackingParticleCollection> token_TrackTruth;
66 };
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition: KineExample.h:63
void printout(const RefCountedKinematicVertex &myVertex) const
Definition: KineExample.cc:234
edm::ParameterSet kvfPSet
Definition: KineExample.h:58
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: KineExample.cc:71
KineExample(const edm::ParameterSet &)
Definition: KineExample.cc:37
void endJob() override
Definition: KineExample.cc:63
edm::ParameterSet theConfig
Definition: KineExample.h:57
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition: KineExample.h:65
~KineExample() override
Definition: KineExample.cc:51
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition: KineExample.cc:290
std::string outputFile_
Definition: KineExample.h:62
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: KineExample.cc:55
Definition: Run.h:44