CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TestHits.h
Go to the documentation of this file.
1 #ifndef TESTHITS_H
2 #define TESTHITS_H
3 
4 
5 // -*- C++ -*-
6 //
7 // Package: TestHits
8 // Class: TestHits
9 //
17 //
18 // Original Author: Giuseppe Cerati
19 // Created: Tue Feb 13 17:29:10 CET 2007
20 // $Id: TestHits.h,v 1.6 2010/02/11 00:14:35 wmtan Exp $
21 //
22 //
23 #include <memory>
24 #include <vector>
25 #include <string>
45 #include <sstream>
46 #include <TFile.h>
47 #include <TH1F.h>
48 #include <TH2F.h>
49 
50 class TestHits : public edm::EDAnalyzer {
51 public:
52  explicit TestHits(const edm::ParameterSet&);
53  ~TestHits();
54 
55 private:
56  virtual void beginRun(edm::Run & run, const edm::EventSetup&) ;
57  virtual void analyze(const edm::Event&, const edm::EventSetup&);
58  virtual void endJob() ;
59 
60  std::pair<LocalPoint,LocalVector> projectHit(const PSimHit&, const StripGeomDetUnit*, const BoundPlane&);
61 
64 
65  double mineta, maxeta;
66 
71 
78 
79  TFile* file;
80  std::stringstream title;
81  std::map<std::string,TH1F*> hPullGP_X_ts;
82  std::map<std::string,TH1F*> hPullGP_Y_ts;
83  std::map<std::string,TH1F*> hPullGP_Z_ts;
84  std::map<std::string,TH1F*> hPullGM_X_ts;
85  std::map<std::string,TH1F*> hPullGM_Y_ts;
86  std::map<std::string,TH1F*> hPullGM_Z_ts;
87  std::map<std::string,TH1F*> hPullGP_X_rs;
88  std::map<std::string,TH1F*> hPullGP_Y_rs;
89  std::map<std::string,TH1F*> hPullGP_Z_rs;
90  std::map<std::string,TH1F*> hPullGP_X_tr;
91  std::map<std::string,TH1F*> hPullGP_Y_tr;
92  std::map<std::string,TH1F*> hPullGP_Z_tr;
93  std::map<std::string,TH1F*> hChi2Increment;
96 
97  std::map<std::string,TH1F*> hPullGP_X_ts_mono;
98  std::map<std::string,TH1F*> hPullGP_Y_ts_mono;
99  std::map<std::string,TH1F*> hPullGP_Z_ts_mono;
100  std::map<std::string,TH1F*> hPullGM_X_ts_mono;
101  std::map<std::string,TH1F*> hPullGM_Y_ts_mono;
102  std::map<std::string,TH1F*> hPullGM_Z_ts_mono;
103  std::map<std::string,TH1F*> hPullGP_X_rs_mono;
104  std::map<std::string,TH1F*> hPullGP_Y_rs_mono;
105  std::map<std::string,TH1F*> hPullGP_Z_rs_mono;
106  std::map<std::string,TH1F*> hPullGP_X_tr_mono;
107  std::map<std::string,TH1F*> hPullGP_Y_tr_mono;
108  std::map<std::string,TH1F*> hPullGP_Z_tr_mono;
109 
110  std::map<std::string,TH1F*> hPullGP_X_ts_stereo;
111  std::map<std::string,TH1F*> hPullGP_Y_ts_stereo;
112  std::map<std::string,TH1F*> hPullGP_Z_ts_stereo;
113  std::map<std::string,TH1F*> hPullGM_X_ts_stereo;
114  std::map<std::string,TH1F*> hPullGM_Y_ts_stereo;
115  std::map<std::string,TH1F*> hPullGM_Z_ts_stereo;
116  std::map<std::string,TH1F*> hPullGP_X_rs_stereo;
117  std::map<std::string,TH1F*> hPullGP_Y_rs_stereo;
118  std::map<std::string,TH1F*> hPullGP_Z_rs_stereo;
119  std::map<std::string,TH1F*> hPullGP_X_tr_stereo;
120  std::map<std::string,TH1F*> hPullGP_Y_tr_stereo;
121  std::map<std::string,TH1F*> hPullGP_Z_tr_stereo;
122 };
123 
124 #endif
edm::Handle< TrackCandidateCollection > theTCCollection
Definition: TestHits.h:77
std::pair< LocalPoint, LocalVector > projectHit(const PSimHit &, const StripGeomDetUnit *, const BoundPlane &)
Definition: TestHits.cc:1183
virtual void beginRun(edm::Run &run, const edm::EventSetup &)
Definition: TestHits.cc:37
std::map< std::string, TH1F * > hPullGP_Y_tr_mono
Definition: TestHits.h:107
std::map< std::string, TH1F * > hPullGP_X_rs_mono
Definition: TestHits.h:103
std::map< std::string, TH1F * > hPullGP_Z_tr_stereo
Definition: TestHits.h:121
TH1F * hTotChi2Increment
Definition: TestHits.h:94
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
Definition: TestHits.h:75
std::map< std::string, TH1F * > hPullGP_Z_ts_mono
Definition: TestHits.h:99
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
Definition: TestHits.h:113
std::map< std::string, TH1F * > hPullGM_X_ts_mono
Definition: TestHits.h:100
std::string builderName
Definition: TestHits.h:68
double mineta
Definition: TestHits.h:65
std::map< std::string, TH1F * > hPullGP_Y_ts
Definition: TestHits.h:82
std::map< std::string, TH1F * > hChi2Increment
Definition: TestHits.h:93
std::map< std::string, TH1F * > hPullGP_Y_ts_stereo
Definition: TestHits.h:111
std::map< std::string, TH1F * > hPullGP_Z_rs
Definition: TestHits.h:89
edm::ESHandle< Propagator > thePropagator
Definition: TestHits.h:74
std::map< std::string, TH1F * > hPullGP_Y_rs
Definition: TestHits.h:88
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
Definition: TestHits.h:119
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
Definition: TestHits.h:118
TrackerHitAssociator * hitAssociator
Definition: TestHits.h:63
std::map< std::string, TH1F * > hPullGP_Y_tr
Definition: TestHits.h:91
std::string propagatorName
Definition: TestHits.h:67
std::map< std::string, TH1F * > hPullGP_X_rs_stereo
Definition: TestHits.h:116
virtual void endJob()
Definition: TestHits.cc:939
std::map< std::string, TH1F * > hPullGP_Y_tr_stereo
Definition: TestHits.h:120
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
Definition: TestHits.h:104
std::map< std::string, TH1F * > hPullGM_Z_ts
Definition: TestHits.h:86
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
Definition: TestHits.h:101
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
Definition: TestHits.h:105
std::map< std::string, TH1F * > hPullGP_X_ts_stereo
Definition: TestHits.h:110
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
Definition: TestHits.h:117
edm::ESHandle< TrackerGeometry > theG
Definition: TestHits.h:72
edm::ESHandle< TrajectoryFitter > fit
Definition: TestHits.h:76
std::map< std::string, TH1F * > hPullGM_Z_ts_stereo
Definition: TestHits.h:115
~TestHits()
Definition: TestHits.cc:35
TH2F * hProcess_vs_Chi2
Definition: TestHits.h:95
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: TestHits.cc:188
std::map< std::string, TH1F * > hPullGP_Z_tr
Definition: TestHits.h:92
std::map< std::string, TH1F * > hPullGP_Y_ts_mono
Definition: TestHits.h:98
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
Definition: TestHits.h:114
edm::ESHandle< MagneticField > theMF
Definition: TestHits.h:73
const edm::ParameterSet conf_
Definition: TestHits.h:62
std::map< std::string, TH1F * > hPullGP_X_tr_mono
Definition: TestHits.h:106
TH2F * hClsize_vs_Chi2
Definition: TestHits.h:95
TFile * file
Definition: TestHits.h:79
std::map< std::string, TH1F * > hPullGM_X_ts
Definition: TestHits.h:84
std::map< std::string, TH1F * > hPullGP_X_ts
Definition: TestHits.h:81
std::string fname
Definition: TestHits.h:70
std::string srcName
Definition: TestHits.h:69
std::map< std::string, TH1F * > hPullGP_Z_ts
Definition: TestHits.h:83
TestHits(const edm::ParameterSet &)
Definition: TestHits.cc:24
std::map< std::string, TH1F * > hPullGP_Z_tr_mono
Definition: TestHits.h:108
std::map< std::string, TH1F * > hPullGP_X_ts_mono
Definition: TestHits.h:97
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
Definition: TestHits.h:102
std::map< std::string, TH1F * > hPullGM_Y_ts
Definition: TestHits.h:85
std::map< std::string, TH1F * > hPullGP_X_tr
Definition: TestHits.h:90
Definition: Run.h:36
std::stringstream title
Definition: TestHits.h:80
double maxeta
Definition: TestHits.h:65
std::map< std::string, TH1F * > hPullGP_Z_ts_stereo
Definition: TestHits.h:112
std::map< std::string, TH1F * > hPullGP_X_rs
Definition: TestHits.h:87