CMS 3D CMS Logo

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