1313#include " Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
1414#include " MagneticField/Engine/interface/MagneticField.h"
1515#include " MagneticField/Records/interface/IdealMagneticFieldRecord.h"
16- #include " RecoTracker/LST /interface/LSTPhase2OTHitsInput .h"
16+ #include " RecoTracker/LSTCore /interface/LSTInputHostCollection .h"
1717#include " RecoTracker/LST/interface/LSTOutput.h"
1818#include " RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h"
1919
@@ -36,7 +36,7 @@ class LSTOutputConverter : public edm::stream::EDProducer<> {
3636 void produce (edm::Event& iEvent, const edm::EventSetup& iSetup) override ;
3737
3838 const edm::EDGetTokenT<LSTOutput> lstOutputToken_;
39- const edm::EDGetTokenT<LSTPhase2OTHitsInput> lstPhase2OTHitsInputToken_ ;
39+ const edm::EDGetTokenT<lst::LSTInputHostCollection> lstInputToken_ ;
4040 const edm::EDGetTokenT<TrajectorySeedCollection> lstPixelSeedToken_;
4141 const bool includeT5s_;
4242 const bool includeNonpLSTSs_;
@@ -58,7 +58,7 @@ class LSTOutputConverter : public edm::stream::EDProducer<> {
5858
5959LSTOutputConverter::LSTOutputConverter (edm::ParameterSet const & iConfig)
6060 : lstOutputToken_(consumes(iConfig.getParameter<edm::InputTag>(" lstOutput" ))),
61- lstPhase2OTHitsInputToken_ {consumes (iConfig.getParameter <edm::InputTag>(" phase2OTHits " ))},
61+ lstInputToken_ {consumes (iConfig.getParameter <edm::InputTag>(" lstInput " ))},
6262 lstPixelSeedToken_{consumes (iConfig.getParameter <edm::InputTag>(" lstPixelSeeds" ))},
6363 includeT5s_ (iConfig.getParameter<bool >(" includeT5s" )),
6464 includeNonpLSTSs_(iConfig.getParameter<bool >(" includeNonpLSTSs" )),
@@ -89,8 +89,8 @@ void LSTOutputConverter::fillDescriptions(edm::ConfigurationDescriptions& descri
8989 edm::ParameterSetDescription desc;
9090
9191 desc.add <edm::InputTag>(" lstOutput" , edm::InputTag (" lstProducer" ));
92- desc.add <edm::InputTag>(" phase2OTHits " , edm::InputTag (" lstPhase2OTHitsInputProducer " ));
93- desc.add <edm::InputTag>(" lstPixelSeeds" , edm::InputTag (" lstPixelSeedInputProducer " ));
92+ desc.add <edm::InputTag>(" lstInput " , edm::InputTag (" lstInputProducer " ));
93+ desc.add <edm::InputTag>(" lstPixelSeeds" , edm::InputTag (" lstInputProducer " ));
9494 desc.add <bool >(" includeT5s" , true );
9595 desc.add <bool >(" includeNonpLSTSs" , false );
9696 desc.add (" propagatorAlong" , edm::ESInputTag{" " , " PropagatorWithMaterial" });
@@ -113,7 +113,7 @@ void LSTOutputConverter::fillDescriptions(edm::ConfigurationDescriptions& descri
113113void LSTOutputConverter::produce (edm::Event& iEvent, const edm::EventSetup& iSetup) {
114114 // Setup
115115 auto const & lstOutput = iEvent.get (lstOutputToken_);
116- auto const & phase2OTRecHits = iEvent.get (lstPhase2OTHitsInputToken_ );
116+ auto const & lstInputHC = iEvent.get (lstInputToken_ );
117117 auto const & pixelSeeds = iEvent.get (lstPixelSeedToken_);
118118 auto const & mf = iSetup.getData (mfToken_);
119119 auto const & propAlo = iSetup.getData (propagatorAlongToken_);
@@ -137,7 +137,7 @@ void LSTOutputConverter::produce(edm::Event& iEvent, const edm::EventSetup& iSet
137137 outputpTTC.reserve (lstTC_len.size ());
138138 outputpLSTC.reserve (lstTC_len.size ());
139139
140- auto const & OTHits = phase2OTRecHits .hits ();
140+ auto OTHits = lstInputHC. const_view <lst::InputHitsSoA>() .hits ();
141141
142142 LogDebug (" LSTOutputConverter" ) << " lstTC size " << lstTC_len.size ();
143143 for (unsigned int i = 0 ; i < lstTC_len.size (); i++) {
0 commit comments