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 
50 class TestSmoothHits : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
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 endRun(edm::Run const& run, 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 
89 
90  TFile* file;
91  std::stringstream title;
92  std::map<std::string, TH1F*> hPullGP_X_ts;
93  std::map<std::string, TH1F*> hPullGP_Y_ts;
94  std::map<std::string, TH1F*> hPullGP_Z_ts;
95  std::map<std::string, TH1F*> hPullGM_X_ts;
96  std::map<std::string, TH1F*> hPullGM_Y_ts;
97  std::map<std::string, TH1F*> hPullGM_Z_ts;
98  std::map<std::string, TH1F*> hPullGP_X_rs;
99  std::map<std::string, TH1F*> hPullGP_Y_rs;
100  std::map<std::string, TH1F*> hPullGP_Z_rs;
101  std::map<std::string, TH1F*> hPullGP_X_tr;
102  std::map<std::string, TH1F*> hPullGP_Y_tr;
103  std::map<std::string, TH1F*> hPullGP_Z_tr;
104  std::map<std::string, TH1F*> hChi2Increment;
107 
108  std::map<std::string, TH1F*> hPullGP_X_ts_mono;
109  std::map<std::string, TH1F*> hPullGP_Y_ts_mono;
110  std::map<std::string, TH1F*> hPullGP_Z_ts_mono;
111  std::map<std::string, TH1F*> hPullGM_X_ts_mono;
112  std::map<std::string, TH1F*> hPullGM_Y_ts_mono;
113  std::map<std::string, TH1F*> hPullGM_Z_ts_mono;
114  std::map<std::string, TH1F*> hPullGP_X_rs_mono;
115  std::map<std::string, TH1F*> hPullGP_Y_rs_mono;
116  std::map<std::string, TH1F*> hPullGP_Z_rs_mono;
117  std::map<std::string, TH1F*> hPullGP_X_tr_mono;
118  std::map<std::string, TH1F*> hPullGP_Y_tr_mono;
119  std::map<std::string, TH1F*> hPullGP_Z_tr_mono;
120 
121  std::map<std::string, TH1F*> hPullGP_X_ts_stereo;
122  std::map<std::string, TH1F*> hPullGP_Y_ts_stereo;
123  std::map<std::string, TH1F*> hPullGP_Z_ts_stereo;
124  std::map<std::string, TH1F*> hPullGM_X_ts_stereo;
125  std::map<std::string, TH1F*> hPullGM_Y_ts_stereo;
126  std::map<std::string, TH1F*> hPullGM_Z_ts_stereo;
127  std::map<std::string, TH1F*> hPullGP_X_rs_stereo;
128  std::map<std::string, TH1F*> hPullGP_Y_rs_stereo;
129  std::map<std::string, TH1F*> hPullGP_Z_rs_stereo;
130  std::map<std::string, TH1F*> hPullGP_X_tr_stereo;
131  std::map<std::string, TH1F*> hPullGP_Y_tr_stereo;
132  std::map<std::string, TH1F*> hPullGP_Z_tr_stereo;
133 };
134 
135 #endif
void endRun(edm::Run const &run, const edm::EventSetup &) override
std::string srcName
edm::Handle< TrackCandidateCollection > theTCCollection
edm::ESGetToken< TrajectorySmoother, TrajectoryFitter::Record > smoothToken
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
edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > theBuilderToken
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
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > theGToken
void beginRun(edm::Run const &run, const edm::EventSetup &) override
TH2F * hChi2_vs_Process
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theMFToken
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
edm::EDGetTokenT< TrackCandidateCollection > theTCCollectionToken
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
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken
edm::ESGetToken< TrajectoryFitter, TrajectoryFitter::Record > fitToken
Definition: Run.h:45
edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorToken
std::map< std::string, TH1F * > hPullGP_Z_ts_mono