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 //
21 //
22 #include <memory>
23 #include <vector>
24 #include <string>
44 #include <sstream>
45 #include <TFile.h>
46 #include <TH1F.h>
47 #include <TH2F.h>
48 
49 class TestHits : public edm::EDAnalyzer {
50 public:
51  explicit TestHits(const edm::ParameterSet&);
52  ~TestHits();
53 
54 private:
55  virtual void beginRun(edm::Run & run, const edm::EventSetup&) ;
56  virtual void analyze(const edm::Event&, const edm::EventSetup&);
57  virtual void endJob() ;
58 
59  std::pair<LocalPoint,LocalVector> projectHit(const PSimHit&, const StripGeomDetUnit*, const BoundPlane&);
60 
63 
64  double mineta, maxeta;
65 
70 
77 
78  TFile* file;
79  std::stringstream title;
80  std::map<std::string,TH1F*> hPullGP_X_ts;
81  std::map<std::string,TH1F*> hPullGP_Y_ts;
82  std::map<std::string,TH1F*> hPullGP_Z_ts;
83  std::map<std::string,TH1F*> hPullGM_X_ts;
84  std::map<std::string,TH1F*> hPullGM_Y_ts;
85  std::map<std::string,TH1F*> hPullGM_Z_ts;
86  std::map<std::string,TH1F*> hPullGP_X_rs;
87  std::map<std::string,TH1F*> hPullGP_Y_rs;
88  std::map<std::string,TH1F*> hPullGP_Z_rs;
89  std::map<std::string,TH1F*> hPullGP_X_tr;
90  std::map<std::string,TH1F*> hPullGP_Y_tr;
91  std::map<std::string,TH1F*> hPullGP_Z_tr;
92  std::map<std::string,TH1F*> hChi2Increment;
95 
96  std::map<std::string,TH1F*> hPullGP_X_ts_mono;
97  std::map<std::string,TH1F*> hPullGP_Y_ts_mono;
98  std::map<std::string,TH1F*> hPullGP_Z_ts_mono;
99  std::map<std::string,TH1F*> hPullGM_X_ts_mono;
100  std::map<std::string,TH1F*> hPullGM_Y_ts_mono;
101  std::map<std::string,TH1F*> hPullGM_Z_ts_mono;
102  std::map<std::string,TH1F*> hPullGP_X_rs_mono;
103  std::map<std::string,TH1F*> hPullGP_Y_rs_mono;
104  std::map<std::string,TH1F*> hPullGP_Z_rs_mono;
105  std::map<std::string,TH1F*> hPullGP_X_tr_mono;
106  std::map<std::string,TH1F*> hPullGP_Y_tr_mono;
107  std::map<std::string,TH1F*> hPullGP_Z_tr_mono;
108 
109  std::map<std::string,TH1F*> hPullGP_X_ts_stereo;
110  std::map<std::string,TH1F*> hPullGP_Y_ts_stereo;
111  std::map<std::string,TH1F*> hPullGP_Z_ts_stereo;
112  std::map<std::string,TH1F*> hPullGM_X_ts_stereo;
113  std::map<std::string,TH1F*> hPullGM_Y_ts_stereo;
114  std::map<std::string,TH1F*> hPullGM_Z_ts_stereo;
115  std::map<std::string,TH1F*> hPullGP_X_rs_stereo;
116  std::map<std::string,TH1F*> hPullGP_Y_rs_stereo;
117  std::map<std::string,TH1F*> hPullGP_Z_rs_stereo;
118  std::map<std::string,TH1F*> hPullGP_X_tr_stereo;
119  std::map<std::string,TH1F*> hPullGP_Y_tr_stereo;
120  std::map<std::string,TH1F*> hPullGP_Z_tr_stereo;
121 };
122 
123 #endif
edm::Handle< TrackCandidateCollection > theTCCollection
Definition: TestHits.h:76
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:106
std::map< std::string, TH1F * > hPullGP_X_rs_mono
Definition: TestHits.h:102
std::map< std::string, TH1F * > hPullGP_Z_tr_stereo
Definition: TestHits.h:120
TH1F * hTotChi2Increment
Definition: TestHits.h:93
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
Definition: TestHits.h:74
std::map< std::string, TH1F * > hPullGP_Z_ts_mono
Definition: TestHits.h:98
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
Definition: TestHits.h:112
std::map< std::string, TH1F * > hPullGM_X_ts_mono
Definition: TestHits.h:99
std::string builderName
Definition: TestHits.h:67
double mineta
Definition: TestHits.h:64
std::map< std::string, TH1F * > hPullGP_Y_ts
Definition: TestHits.h:81
std::map< std::string, TH1F * > hChi2Increment
Definition: TestHits.h:92
std::map< std::string, TH1F * > hPullGP_Y_ts_stereo
Definition: TestHits.h:110
std::map< std::string, TH1F * > hPullGP_Z_rs
Definition: TestHits.h:88
edm::ESHandle< Propagator > thePropagator
Definition: TestHits.h:73
std::map< std::string, TH1F * > hPullGP_Y_rs
Definition: TestHits.h:87
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
Definition: TestHits.h:118
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
Definition: TestHits.h:117
TrackerHitAssociator * hitAssociator
Definition: TestHits.h:62
std::map< std::string, TH1F * > hPullGP_Y_tr
Definition: TestHits.h:90
std::string propagatorName
Definition: TestHits.h:66
std::map< std::string, TH1F * > hPullGP_X_rs_stereo
Definition: TestHits.h:115
virtual void endJob()
Definition: TestHits.cc:939
std::map< std::string, TH1F * > hPullGP_Y_tr_stereo
Definition: TestHits.h:119
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
Definition: TestHits.h:103
std::map< std::string, TH1F * > hPullGM_Z_ts
Definition: TestHits.h:85
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
Definition: TestHits.h:100
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
Definition: TestHits.h:104
std::map< std::string, TH1F * > hPullGP_X_ts_stereo
Definition: TestHits.h:109
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
Definition: TestHits.h:116
edm::ESHandle< TrackerGeometry > theG
Definition: TestHits.h:71
edm::ESHandle< TrajectoryFitter > fit
Definition: TestHits.h:75
std::map< std::string, TH1F * > hPullGM_Z_ts_stereo
Definition: TestHits.h:114
~TestHits()
Definition: TestHits.cc:35
TH2F * hProcess_vs_Chi2
Definition: TestHits.h:94
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: TestHits.cc:188
std::map< std::string, TH1F * > hPullGP_Z_tr
Definition: TestHits.h:91
std::map< std::string, TH1F * > hPullGP_Y_ts_mono
Definition: TestHits.h:97
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
Definition: TestHits.h:113
edm::ESHandle< MagneticField > theMF
Definition: TestHits.h:72
const edm::ParameterSet conf_
Definition: TestHits.h:61
std::map< std::string, TH1F * > hPullGP_X_tr_mono
Definition: TestHits.h:105
TH2F * hClsize_vs_Chi2
Definition: TestHits.h:94
TFile * file
Definition: TestHits.h:78
std::map< std::string, TH1F * > hPullGM_X_ts
Definition: TestHits.h:83
std::map< std::string, TH1F * > hPullGP_X_ts
Definition: TestHits.h:80
std::string fname
Definition: TestHits.h:69
std::string srcName
Definition: TestHits.h:68
std::map< std::string, TH1F * > hPullGP_Z_ts
Definition: TestHits.h:82
TestHits(const edm::ParameterSet &)
Definition: TestHits.cc:24
std::map< std::string, TH1F * > hPullGP_Z_tr_mono
Definition: TestHits.h:107
std::map< std::string, TH1F * > hPullGP_X_ts_mono
Definition: TestHits.h:96
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
Definition: TestHits.h:101
std::map< std::string, TH1F * > hPullGM_Y_ts
Definition: TestHits.h:84
std::map< std::string, TH1F * > hPullGP_X_tr
Definition: TestHits.h:89
Definition: Run.h:41
std::stringstream title
Definition: TestHits.h:79
double maxeta
Definition: TestHits.h:64
std::map< std::string, TH1F * > hPullGP_Z_ts_stereo
Definition: TestHits.h:111
std::map< std::string, TH1F * > hPullGP_X_rs
Definition: TestHits.h:86