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