CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: TestSmoothHits.h,v 1.4 2010/02/11 00:14:36 wmtan Exp $
21 //
22 //
23 #include <memory>
24 #include <vector>
25 #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&);
55 
56 private:
57  virtual void beginRun(edm::Run & run, const edm::EventSetup&) ;
58  virtual void analyze(const edm::Event&, const edm::EventSetup&);
59  virtual void endJob() ;
60 
61  std::pair<LocalPoint,LocalVector> projectHit(const PSimHit&, const StripGeomDetUnit*, const BoundPlane&);
62 
65 
66  double mineta, maxeta;
67 
68  std::string propagatorName;
69  std::string builderName;
70  std::string srcName;
71  std::string fname;
72  std::string sname;
73 
81 
82  TFile* file;
83  std::stringstream title;
84  std::map<std::string,TH1F*> hPullGP_X_ts;
85  std::map<std::string,TH1F*> hPullGP_Y_ts;
86  std::map<std::string,TH1F*> hPullGP_Z_ts;
87  std::map<std::string,TH1F*> hPullGM_X_ts;
88  std::map<std::string,TH1F*> hPullGM_Y_ts;
89  std::map<std::string,TH1F*> hPullGM_Z_ts;
90  std::map<std::string,TH1F*> hPullGP_X_rs;
91  std::map<std::string,TH1F*> hPullGP_Y_rs;
92  std::map<std::string,TH1F*> hPullGP_Z_rs;
93  std::map<std::string,TH1F*> hPullGP_X_tr;
94  std::map<std::string,TH1F*> hPullGP_Y_tr;
95  std::map<std::string,TH1F*> hPullGP_Z_tr;
96  std::map<std::string,TH1F*> hChi2Increment;
99 
100  std::map<std::string,TH1F*> hPullGP_X_ts_mono;
101  std::map<std::string,TH1F*> hPullGP_Y_ts_mono;
102  std::map<std::string,TH1F*> hPullGP_Z_ts_mono;
103  std::map<std::string,TH1F*> hPullGM_X_ts_mono;
104  std::map<std::string,TH1F*> hPullGM_Y_ts_mono;
105  std::map<std::string,TH1F*> hPullGM_Z_ts_mono;
106  std::map<std::string,TH1F*> hPullGP_X_rs_mono;
107  std::map<std::string,TH1F*> hPullGP_Y_rs_mono;
108  std::map<std::string,TH1F*> hPullGP_Z_rs_mono;
109  std::map<std::string,TH1F*> hPullGP_X_tr_mono;
110  std::map<std::string,TH1F*> hPullGP_Y_tr_mono;
111  std::map<std::string,TH1F*> hPullGP_Z_tr_mono;
112 
113  std::map<std::string,TH1F*> hPullGP_X_ts_stereo;
114  std::map<std::string,TH1F*> hPullGP_Y_ts_stereo;
115  std::map<std::string,TH1F*> hPullGP_Z_ts_stereo;
116  std::map<std::string,TH1F*> hPullGM_X_ts_stereo;
117  std::map<std::string,TH1F*> hPullGM_Y_ts_stereo;
118  std::map<std::string,TH1F*> hPullGM_Z_ts_stereo;
119  std::map<std::string,TH1F*> hPullGP_X_rs_stereo;
120  std::map<std::string,TH1F*> hPullGP_Y_rs_stereo;
121  std::map<std::string,TH1F*> hPullGP_Z_rs_stereo;
122  std::map<std::string,TH1F*> hPullGP_X_tr_stereo;
123  std::map<std::string,TH1F*> hPullGP_Y_tr_stereo;
124  std::map<std::string,TH1F*> hPullGP_Z_tr_stereo;
125 };
126 
127 #endif
std::map< std::string, TH1F * > hPullGP_Z_rs_stereo
std::string srcName
TrackerHitAssociator * hitAssociator
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
virtual void endJob()
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
std::map< std::string, TH1F * > hPullGP_Y_rs_mono
std::map< std::string, TH1F * > hPullGM_Y_ts_stereo
edm::ESHandle< TrajectoryFitter > fit
TH2F * hChi2_vs_Process
std::map< std::string, TH1F * > hPullGP_Z_rs_mono
edm::ESHandle< MagneticField > theMF
TH2F * hChi2_vs_clsize
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
const edm::ParameterSet conf_
std::map< std::string, TH1F * > hPullGP_Y_rs_stereo
std::string sname
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::ESHandle< TransientTrackingRecHitBuilder > theBuilder
virtual void beginRun(edm::Run &run, const edm::EventSetup &)
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
std::map< std::string, TH1F * > hPullGP_X_rs
TH1F * hTotChi2Increment
edm::ESHandle< Propagator > thePropagator
std::map< std::string, TH1F * > hPullGP_X_tr_stereo
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:33