CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PlotRecTracks.h
Go to the documentation of this file.
1 #ifndef _ChargedHadronSpectra_PlotRecTracks_h_
2 #define _ChargedHadronSpectra_PlotRecTracks_h_
3 
4 #include <fstream>
5 #include <vector>
6 
7 namespace edm { class Event; class EventSetup; }
8 class TrackingRecHit;
9 class TrackerGeometry;
12 class MagneticField;
13 class Propagator;
14 
15 class TrajectoryFitter;
16 
17 namespace reco { class Track; }
18 
20 {
21  public:
22  explicit PlotRecTracks(const edm::EventSetup& es_,
23  std::string trackProducer_, std::ofstream& file_);
25  void printRecTracks(const edm::Event& ev);
26 
27  private:
28  std::string getPixelInfo(const TrackingRecHit* recHit,
29  const std::ostringstream& o,
30  const std::ostringstream& d);
31  std::string getStripInfo(const TrackingRecHit* recHit,
32  const std::ostringstream& o,
33  const std::ostringstream& d);
35 
37  std::string trackProducer;
38  std::ofstream& file;
39 
44 
46 };
47 
48 #endif
PlotRecTracks(const edm::EventSetup &es_, std::string trackProducer_, std::ofstream &file_)
std::string getPixelInfo(const TrackingRecHit *recHit, const std::ostringstream &o, const std::ostringstream &d)
void printRecTracks(const edm::Event &ev)
const MagneticField * theMagField
Definition: PlotRecTracks.h:41
TrackerHitAssociator * theHitAssociator
Definition: PlotRecTracks.h:45
const TrajectoryFitter * theFitter
Definition: PlotRecTracks.h:43
const TrackerGeometry * theTracker
Definition: PlotRecTracks.h:40
std::ofstream & file
Definition: PlotRecTracks.h:38
const Propagator * thePropagator
Definition: PlotRecTracks.h:42
const edm::EventSetup & es
Definition: PlotRecTracks.h:36
std::string getStripInfo(const TrackingRecHit *recHit, const std::ostringstream &o, const std::ostringstream &d)
FreeTrajectoryState getTrajectoryAtOuterPoint(const reco::Track &track)
std::string trackProducer
Definition: PlotRecTracks.h:37