Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:36

0001 #ifndef CalibTracker_SiSitripLorentzAngle_SiStripFineDelayTLA_h
0002 #define CalibTracker_SiSitripLorentzAngle_SiStripFineDelayTLA_h
0003 
0004 #include "FWCore/Framework/interface/EDAnalyzer.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0009 
0010 #include <DataFormats/TrackingRecHit/interface/TrackingRecHit.h>
0011 #include "DataFormats/TrackReco/interface/Track.h"
0012 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0013 
0014 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0015 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0016 
0017 class TrackerGeometry;
0018 class TrackingRecHit;
0019 class TrajectorySeed;
0020 class Trajectory;
0021 
0022 class SiStripFineDelayTLA {
0023 public:
0024   explicit SiStripFineDelayTLA(const edm::ParameterSet& conf, edm::ConsumesCollector iC);
0025   virtual ~SiStripFineDelayTLA();
0026   void init(const edm::Event& e, const edm::EventSetup& c);
0027 
0028   std::vector<std::pair<std::pair<DetId, LocalPoint>, float> > findtrackangle(const std::vector<Trajectory>& traj);
0029   std::vector<std::pair<std::pair<DetId, LocalPoint>, float> > findtrackangle(const Trajectory& traj);
0030 
0031 private:
0032   double computeAngleCorr(const LocalVector& v, double pitch, double thickness);
0033 
0034 private:
0035   edm::ParameterSet conf_;
0036   const TrackerGeometry* tracker;
0037   edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> tkGeomToken_;
0038 };
0039 
0040 #endif