CMS 3D CMS Logo

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