CMS 3D CMS Logo

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
Propagator.h
TestSmoothHits::hPullGP_Z_ts_stereo
std::map< std::string, TH1F * > hPullGP_Z_ts_stereo
Definition: TestSmoothHits.h:113
TestSmoothHits::title
std::stringstream title
Definition: TestSmoothHits.h:81
TestSmoothHits::hPullGP_Y_tr_stereo
std::map< std::string, TH1F * > hPullGP_Y_tr_stereo
Definition: TestSmoothHits.h:121
TestSmoothHits::hPullGP_Y_tr
std::map< std::string, TH1F * > hPullGP_Y_tr
Definition: TestSmoothHits.h:92
TestSmoothHits::hPullGP_Y_rs_stereo
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
Definition: TestSmoothHits.h:118
TestSmoothHits::thePropagator
edm::ESHandle< Propagator > thePropagator
Definition: TestSmoothHits.h:74
StripGeomDetUnit.h
TrackerGeometry.h
TestSmoothHits::maxeta
double maxeta
Definition: TestSmoothHits.h:64
TestSmoothHits::hPullGP_Z_tr_mono
std::map< std::string, TH1F * > hPullGP_Z_tr_mono
Definition: TestSmoothHits.h:109
TrackCandidateCollection.h
TestSmoothHits::hPullGM_Y_ts_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_mono
Definition: TestSmoothHits.h:102
TestSmoothHits::hPullGP_Z_ts_mono
std::map< std::string, TH1F * > hPullGP_Z_ts_mono
Definition: TestSmoothHits.h:100
TestSmoothHits::propagatorName
std::string propagatorName
Definition: TestSmoothHits.h:66
TestSmoothHits::hPullGP_Y_ts_stereo
std::map< std::string, TH1F * > hPullGP_Y_ts_stereo
Definition: TestSmoothHits.h:112
edm::Run
Definition: Run.h:45
MeasurementExtractor.h
TransientRecHitRecord.h
TestSmoothHits::hPullGP_Y_rs
std::map< std::string, TH1F * > hPullGP_Y_rs
Definition: TestSmoothHits.h:89
TestSmoothHits::~TestSmoothHits
~TestSmoothHits() override
Definition: TestSmoothHits.cc:34
TestSmoothHits::hPullGP_Y_rs_mono
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
Definition: TestSmoothHits.h:105
TrackingGeometry.h
TestSmoothHits::hPullGP_Y_ts
std::map< std::string, TH1F * > hPullGP_Y_ts
Definition: TestSmoothHits.h:83
TestSmoothHits::hPullGP_X_tr
std::map< std::string, TH1F * > hPullGP_X_tr
Definition: TestSmoothHits.h:91
TrackerHitAssociator.h
KFTrajectorySmoother.h
EDAnalyzer.h
TestSmoothHits::beginRun
void beginRun(edm::Run const &run, const edm::EventSetup &) override
Definition: TestSmoothHits.cc:36
TrackerHitAssociator::Config
Definition: TrackerHitAssociator.h:57
edm::Handle< TrackCandidateCollection >
TestSmoothHits::hChi2_vs_Process
TH2F * hChi2_vs_Process
Definition: TestSmoothHits.h:96
TestSmoothHits::hPullGP_Y_ts_mono
std::map< std::string, TH1F * > hPullGP_Y_ts_mono
Definition: TestSmoothHits.h:99
TestSmoothHits::mineta
double mineta
Definition: TestSmoothHits.h:64
TkTransientTrackingRecHitBuilder.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
TestSmoothHits::hPullGP_Z_rs_mono
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
Definition: TestSmoothHits.h:106
TestSmoothHits::hPullGM_X_ts
std::map< std::string, TH1F * > hPullGM_X_ts
Definition: TestSmoothHits.h:85
TestSmoothHits::sname
std::string sname
Definition: TestSmoothHits.h:70
TestSmoothHits::hPullGP_Z_tr
std::map< std::string, TH1F * > hPullGP_Z_tr
Definition: TestSmoothHits.h:93
TestSmoothHits::smooth
edm::ESHandle< TrajectorySmoother > smooth
Definition: TestSmoothHits.h:78
TestSmoothHits::hPullGM_Y_ts
std::map< std::string, TH1F * > hPullGM_Y_ts
Definition: TestSmoothHits.h:86
TestSmoothHits::hPullGP_Y_tr_mono
std::map< std::string, TH1F * > hPullGP_Y_tr_mono
Definition: TestSmoothHits.h:108
TestSmoothHits::hPullGP_X_rs_stereo
std::map< std::string, TH1F * > hPullGP_X_rs_stereo
Definition: TestSmoothHits.h:117
TestSmoothHits::hPullGP_X_tr_stereo
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
Definition: TestSmoothHits.h:120
IdealMagneticFieldRecord.h
edm::ESHandle< TrackerGeometry >
TestSmoothHits::endJob
void endJob() override
Definition: TestSmoothHits.cc:643
TestSmoothHits::hPullGP_Z_tr_stereo
std::map< std::string, TH1F * > hPullGP_Z_tr_stereo
Definition: TestSmoothHits.h:122
TestSmoothHits::TestSmoothHits
TestSmoothHits(const edm::ParameterSet &)
Definition: TestSmoothHits.cc:23
TestSmoothHits::hPullGP_X_rs_mono
std::map< std::string, TH1F * > hPullGP_X_rs_mono
Definition: TestSmoothHits.h:104
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TestSmoothHits::hPullGP_X_ts_mono
std::map< std::string, TH1F * > hPullGP_X_ts_mono
Definition: TestSmoothHits.h:98
TrackerDigiGeometryRecord.h
TestSmoothHits::hPullGM_Z_ts_stereo
std::map< std::string, TH1F * > hPullGM_Z_ts_stereo
Definition: TestSmoothHits.h:116
TestSmoothHits::hPullGP_Z_ts
std::map< std::string, TH1F * > hPullGP_Z_ts
Definition: TestSmoothHits.h:84
edm::ParameterSet
Definition: ParameterSet.h:36
TestSmoothHits::fit
edm::ESHandle< TrajectoryFitter > fit
Definition: TestSmoothHits.h:77
Event.h
TestSmoothHits::theBuilder
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
Definition: TestSmoothHits.h:75
TestSmoothHits::fname
std::string fname
Definition: TestSmoothHits.h:69
TestSmoothHits::hPullGP_X_ts_stereo
std::map< std::string, TH1F * > hPullGP_X_ts_stereo
Definition: TestSmoothHits.h:111
TestSmoothHits::hChi2_vs_clsize
TH2F * hChi2_vs_clsize
Definition: TestSmoothHits.h:96
TestSmoothHits::hPullGP_X_rs
std::map< std::string, TH1F * > hPullGP_X_rs
Definition: TestSmoothHits.h:88
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
TestSmoothHits::hPullGP_X_tr_mono
std::map< std::string, TH1F * > hPullGP_X_tr_mono
Definition: TestSmoothHits.h:107
InputTag.h
TestSmoothHits::hPullGM_X_ts_stereo
std::map< std::string, TH1F * > hPullGM_X_ts_stereo
Definition: TestSmoothHits.h:114
TestSmoothHits::hPullGP_Z_rs_stereo
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
Definition: TestSmoothHits.h:119
TestSmoothHits::hPullGM_Z_ts_mono
std::map< std::string, TH1F * > hPullGM_Z_ts_mono
Definition: TestSmoothHits.h:103
TestSmoothHits::theMF
edm::ESHandle< MagneticField > theMF
Definition: TestSmoothHits.h:73
writedatasetfile.run
run
Definition: writedatasetfile.py:27
TestSmoothHits::file
TFile * file
Definition: TestSmoothHits.h:80
TestSmoothHits::hChi2Increment
std::map< std::string, TH1F * > hChi2Increment
Definition: TestSmoothHits.h:94
TestSmoothHits::hPullGP_Z_rs
std::map< std::string, TH1F * > hPullGP_Z_rs
Definition: TestSmoothHits.h:90
Frameworkfwd.h
TestSmoothHits::hTotChi2Increment
TH1F * hTotChi2Increment
Definition: TestSmoothHits.h:95
TrackingComponentsRecord.h
BoundPlane
TestSmoothHits::srcName
std::string srcName
Definition: TestSmoothHits.h:68
TestSmoothHits::projectHit
std::pair< LocalPoint, LocalVector > projectHit(const PSimHit &, const StripGeomDetUnit *, const BoundPlane &)
Definition: TestSmoothHits.cc:892
TestSmoothHits::theTCCollection
edm::Handle< TrackCandidateCollection > theTCCollection
Definition: TestSmoothHits.h:76
TestSmoothHits::hPullGM_X_ts_mono
std::map< std::string, TH1F * > hPullGM_X_ts_mono
Definition: TestSmoothHits.h:101
KFTrajectoryFitter.h
TestSmoothHits::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: TestSmoothHits.cc:191
TransientTrackingRecHitBuilder.h
TestSmoothHits::theG
edm::ESHandle< TrackerGeometry > theG
Definition: TestSmoothHits.h:72
TestSmoothHits
Definition: TestSmoothHits.h:50
ParameterSet.h
TestSmoothHits::hPullGP_X_ts
std::map< std::string, TH1F * > hPullGP_X_ts
Definition: TestSmoothHits.h:82
PSimHit
Definition: PSimHit.h:15
TestSmoothHits::trackerHitAssociatorConfig_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
Definition: TestSmoothHits.h:62
edm::Event
Definition: Event.h:73
TestSmoothHits::hPullGM_Y_ts_stereo
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
Definition: TestSmoothHits.h:115
TestSmoothHits::hPullGM_Z_ts
std::map< std::string, TH1F * > hPullGM_Z_ts
Definition: TestSmoothHits.h:87
StripGeomDetUnit
Definition: StripGeomDetUnit.h:15
TestSmoothHits::builderName
std::string builderName
Definition: TestSmoothHits.h:67