CMS 3D CMS Logo

TestSmoothHits.h
Go to the documentation of this file.
1 #ifndef TESTSMOOTHHITS_H
2 #define TESTSMOOTHHITS_H
3 
4 
5 // -*- C++ -*-
6 //
7 // Package: TestSmoothHits
8 // Class: TestSmoothHits
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>
46 #include <sstream>
47 #include <TFile.h>
48 #include <TH1F.h>
49 #include <TH2F.h>
50 
52 public:
53  explicit TestSmoothHits(const edm::ParameterSet&);
54  ~TestSmoothHits() override;
55 
56 private:
57  void beginRun(edm::Run const& run, const edm::EventSetup&) override;
58  void analyze(const edm::Event&, const edm::EventSetup&) override;
59  void endJob() override;
60 
61  std::pair<LocalPoint,LocalVector> projectHit(const PSimHit&, const StripGeomDetUnit*, const BoundPlane&);
62 
64 
65  double mineta, maxeta;
66 
72 
80 
81  TFile* file;
82  std::stringstream title;
83  std::map<std::string,TH1F*> hPullGP_X_ts;
84  std::map<std::string,TH1F*> hPullGP_Y_ts;
85  std::map<std::string,TH1F*> hPullGP_Z_ts;
86  std::map<std::string,TH1F*> hPullGM_X_ts;
87  std::map<std::string,TH1F*> hPullGM_Y_ts;
88  std::map<std::string,TH1F*> hPullGM_Z_ts;
89  std::map<std::string,TH1F*> hPullGP_X_rs;
90  std::map<std::string,TH1F*> hPullGP_Y_rs;
91  std::map<std::string,TH1F*> hPullGP_Z_rs;
92  std::map<std::string,TH1F*> hPullGP_X_tr;
93  std::map<std::string,TH1F*> hPullGP_Y_tr;
94  std::map<std::string,TH1F*> hPullGP_Z_tr;
95  std::map<std::string,TH1F*> hChi2Increment;
98 
99  std::map<std::string,TH1F*> hPullGP_X_ts_mono;
100  std::map<std::string,TH1F*> hPullGP_Y_ts_mono;
101  std::map<std::string,TH1F*> hPullGP_Z_ts_mono;
102  std::map<std::string,TH1F*> hPullGM_X_ts_mono;
103  std::map<std::string,TH1F*> hPullGM_Y_ts_mono;
104  std::map<std::string,TH1F*> hPullGM_Z_ts_mono;
105  std::map<std::string,TH1F*> hPullGP_X_rs_mono;
106  std::map<std::string,TH1F*> hPullGP_Y_rs_mono;
107  std::map<std::string,TH1F*> hPullGP_Z_rs_mono;
108  std::map<std::string,TH1F*> hPullGP_X_tr_mono;
109  std::map<std::string,TH1F*> hPullGP_Y_tr_mono;
110  std::map<std::string,TH1F*> hPullGP_Z_tr_mono;
111 
112  std::map<std::string,TH1F*> hPullGP_X_ts_stereo;
113  std::map<std::string,TH1F*> hPullGP_Y_ts_stereo;
114  std::map<std::string,TH1F*> hPullGP_Z_ts_stereo;
115  std::map<std::string,TH1F*> hPullGM_X_ts_stereo;
116  std::map<std::string,TH1F*> hPullGM_Y_ts_stereo;
117  std::map<std::string,TH1F*> hPullGM_Z_ts_stereo;
118  std::map<std::string,TH1F*> hPullGP_X_rs_stereo;
119  std::map<std::string,TH1F*> hPullGP_Y_rs_stereo;
120  std::map<std::string,TH1F*> hPullGP_Z_rs_stereo;
121  std::map<std::string,TH1F*> hPullGP_X_tr_stereo;
122  std::map<std::string,TH1F*> hPullGP_Y_tr_stereo;
123  std::map<std::string,TH1F*> hPullGP_Z_tr_stereo;
124 };
125 
126 #endif
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
std::string srcName
std::map< std::string, TH1F * > hPullGP_X_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
edm::Handle< TrackCandidateCollection > theTCCollection
std::stringstream title
TestSmoothHits(const edm::ParameterSet &)
std::map< std::string, TH1F * > hChi2Increment
std::map< std::string, TH1F * > hPullGP_X_rs_mono
std::string propagatorName
std::map< std::string, TH1F * > hPullGM_Z_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_rs
std::map< std::string, TH1F * > hPullGM_X_ts_mono
std::map< std::string, TH1F * > hPullGP_Z_tr
std::map< std::string, TH1F * > hPullGP_X_ts
std::string fname
std::map< std::string, TH1F * > hPullGP_Y_tr_stereo
std::map< std::string, TH1F * > hPullGP_Z_ts
std::map< std::string, TH1F * > hPullGP_X_rs_stereo
edm::ESHandle< TrajectorySmoother > smooth
void endJob() override
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
edm::ESHandle< TrajectoryFitter > fit
void beginRun(edm::Run const &run, const edm::EventSetup &) override
TH2F * hChi2_vs_Process
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
edm::ESHandle< MagneticField > theMF
TH2F * hChi2_vs_clsize
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::map< std::string, TH1F * > hPullGP_Y_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts
std::map< std::string, TH1F * > hPullGP_Z_tr_mono
std::map< std::string, TH1F * > hPullGM_Z_ts
std::map< std::string, TH1F * > hPullGP_X_tr
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
std::string sname
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
std::map< std::string, TH1F * > hPullGP_Y_tr_mono
std::map< std::string, TH1F * > hPullGP_X_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_ts
std::map< std::string, TH1F * > hPullGP_Z_ts_stereo
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
~TestSmoothHits() override
std::map< std::string, TH1F * > hPullGP_X_rs
TH1F * hTotChi2Increment
edm::ESHandle< Propagator > thePropagator
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string builderName
edm::ESHandle< TrackerGeometry > theG
std::map< std::string, TH1F * > hPullGP_X_tr_mono
std::pair< LocalPoint, LocalVector > projectHit(const PSimHit &, const StripGeomDetUnit *, const BoundPlane &)
std::map< std::string, TH1F * > hPullGP_Z_tr_stereo
std::map< std::string, TH1F * > hPullGP_Z_rs
std::map< std::string, TH1F * > hPullGP_Y_ts_stereo
std::map< std::string, TH1F * > hPullGP_Z_ts_mono
std::map< std::string, TH1F * > hPullGM_X_ts
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_tr
Definition: Run.h:44