CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackParameterAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TrackParameterAnalyzer
4 // Class: TrackParameterAnalyzer
5 //
13 //
14 // Original Author: Wolfram Erdmann
15 // Created: Fri Jun 2 10:54:05 CEST 2006
16 // $Id: TrackParameterAnalyzer.h,v 1.13 2010/05/11 19:23:31 wmtan Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <string>
24 #include <vector>
25 
26 // user include files
29 
32 
37 
38 // Hep MC stuff from CLHEP, add <use name=clhep> to the buildfile
39 #include "HepMC/GenEvent.h"
40 #include "HepMC/GenVertex.h"
41 #include "HepMC/GenParticle.h"
43 #include "CLHEP/Vector/LorentzVector.h"
44 
45 // simulated vertices,..., add <use name=SimDataFormats/Vertex> and <../Track>
50 
51 // vertex stuff
54 // perigee
56 //#include <TrackingTools/TrajectoryState/interface/TrajectoryStateClosestToPoint.h>
57 
58 // Root
59 #include <TH1.h>
60 #include <TH2.h>
61 #include <TFile.h>
62 
63 
64 // class declaration
65 //
67 
69  public:
72 
73  virtual void analyze(const edm::Event&, const edm::EventSetup&);
74  virtual void beginJob();
75  virtual void endJob();
76 
77  private:
78  bool match(const ParameterVector &a, const ParameterVector &b);
79  // ----------member data ---------------------------
80  std::string recoTrackProducer_;
81  // root file to store histograms
82  std::string outputFile_; // output file
83  TFile* rootFile_;
84  TH1* h1_pull0_;
85  TH1* h1_pull1_;
86  TH1* h1_pull2_;
87  TH1* h1_pull3_;
88  TH1* h1_pull4_;
89  TH1* h1_res0_;
90  TH1* h1_res1_;
91  TH1* h1_res2_;
92  TH1* h1_res3_;
93  TH1* h1_res4_;
94  TH1* h1_Beff_;
95  TH2* h2_dvsphi_;
96  TH1* h1_par0_;
97  TH1* h1_par1_;
98  TH1* h1_par2_;
99  TH1* h1_par3_;
100  TH1* h1_par4_;
101 
103  bool verbose_;
104  double simUnit_;
105 };
TrackParameterAnalyzer(const edm::ParameterSet &)
math::Vector< dimension >::type ParameterVector
parameter vector
Definition: TrackBase.h:70
bool match(const ParameterVector &a, const ParameterVector &b)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double b
Definition: hdecay.h:120
reco::TrackBase::ParameterVector ParameterVector
double a
Definition: hdecay.h:121