CMS 3D CMS Logo

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