CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
43 
44  virtual void analyze(const edm::Event&, const edm::EventSetup&);
45 
46  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
47  virtual void endJob();
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: KineExample.cc:71
virtual void endJob()
Definition: KineExample.cc:63
KineExample(const edm::ParameterSet &)
Definition: KineExample.cc:37
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: KineExample.cc:55
edm::ParameterSet theConfig
Definition: KineExample.h:57
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition: KineExample.h:65
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition: KineExample.cc:290
std::string outputFile_
Definition: KineExample.h:62
Definition: Run.h:43