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 //
13 //
14 // Original Author: Pascal Vanlaer
15 // Created: Tue Feb 28 11:06:34 CET 2006
16 // $Id: KineExample.h,v 1.4 2012/10/23 02:24:13 slava77 Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
30 
34 // #include "RecoVertex/KalmanVertexFit/test/SimpleVertexTree.h"
39 // #include "RecoVertex/KinematicFitPrimitives/interface/"
40 #include <TFile.h>
41 
46 class KineExample : public edm::EDAnalyzer {
47 public:
48  explicit KineExample(const edm::ParameterSet&);
49  ~KineExample();
50 
51  virtual void analyze(const edm::Event&, const edm::EventSetup&);
52 
53  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
54  virtual void endJob();
55 
56 private:
57 
58  void printout(const RefCountedKinematicVertex& myVertex) const;
59  void printout(const RefCountedKinematicParticle& myParticle) const;
60  void printout(const RefCountedKinematicTree& myTree) const;
61 
63 
67 // SimpleVertexTree *tree;
68 // TFile* rootFile_;
69 
70  std::string outputFile_; // output file
71  std::string trackLabel_; // label of track producer
72 };
TrackAssociatorByChi2 * associatorForParamAtPca
Definition: KineExample.h:66
void printout(const RefCountedKinematicVertex &myVertex) const
Definition: KineExample.cc:231
edm::ParameterSet kvfPSet
Definition: KineExample.h:65
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: KineExample.cc:69
std::string trackLabel_
Definition: KineExample.h:71
virtual void endJob()
Definition: KineExample.cc:60
KineExample(const edm::ParameterSet &)
Definition: KineExample.cc:35
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: KineExample.cc:51
edm::ParameterSet theConfig
Definition: KineExample.h:64
int iEvent
Definition: GenABIO.cc:243
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition: KineExample.cc:287
std::string outputFile_
Definition: KineExample.h:70
Definition: Run.h:33