File indexing completed on 2024-04-06 12:21:47
0001 #ifndef L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
0002 #define L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
0003
0004 #include "L1Trigger/TrackFindingTMTT/interface/Settings.h"
0005 #include "L1Trigger/TrackFindingTMTT/interface/L1track3D.h"
0006 #include "L1Trigger/TrackFindingTMTT/interface/L1fittedTrack.h"
0007
0008 #include "DataFormats/L1TrackTrigger/interface/TTTypes.h"
0009
0010
0011
0012
0013 namespace tmtt {
0014
0015 typedef edmNew::DetSetVector<TTStub<Ref_Phase2TrackerDigi_> > TTStubDetSetVec;
0016 typedef edm::Ref<TTStubDetSetVec, TTStub<Ref_Phase2TrackerDigi_> > TTStubRef;
0017
0018 class ConverterToTTTrack {
0019 public:
0020
0021 ConverterToTTTrack(const Settings* settings) : settings_(settings), invPtToInvR_(settings->invPtToInvR()) {}
0022
0023
0024 TTTrack<Ref_Phase2TrackerDigi_> makeTTTrack(const L1trackBase* trk,
0025 unsigned int iPhiSec,
0026 unsigned int iEtaReg) const;
0027
0028 private:
0029
0030 std::vector<TTStubRef> stubRefs(const L1trackBase* trk) const;
0031
0032 private:
0033 const Settings* settings_;
0034 float invPtToInvR_;
0035 };
0036
0037 }
0038 #endif