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"
33 // #include "RecoVertex/KinematicFitPrimitives/interface/"
34 #include <TFile.h>
35 
40 class KineExample : public edm::EDAnalyzer {
41 public:
42  explicit KineExample(const edm::ParameterSet&);
43  ~KineExample();
44 
45  virtual void analyze(const edm::Event&, const edm::EventSetup&);
46 
47  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
48  virtual void endJob();
49 
50 private:
51 
52  void printout(const RefCountedKinematicVertex& myVertex) const;
53  void printout(const RefCountedKinematicParticle& myParticle) const;
54  void printout(const RefCountedKinematicTree& myTree) const;
55 
57 
61 // SimpleVertexTree *tree;
62 // TFile* rootFile_;
63 
64  std::string outputFile_; // output file
66 // edm::EDGetTokenT<TrackingParticleCollection> token_TrackTruth;
68 };
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition: KineExample.h:65
TrackAssociatorByChi2 * associatorForParamAtPca
Definition: KineExample.h:60
void printout(const RefCountedKinematicVertex &myVertex) const
Definition: KineExample.cc:233
edm::ParameterSet kvfPSet
Definition: KineExample.h:59
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: KineExample.cc:71
virtual void endJob()
Definition: KineExample.cc:62
KineExample(const edm::ParameterSet &)
Definition: KineExample.cc:35
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: KineExample.cc:53
edm::ParameterSet theConfig
Definition: KineExample.h:58
int iEvent
Definition: GenABIO.cc:243
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition: KineExample.h:67
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition: KineExample.cc:289
std::string outputFile_
Definition: KineExample.h:64
Definition: Run.h:41