58 ProducerZHTout::ProducerZHTout(
const ParameterSet& iConfig) : iConfig_(iConfig) {
60 const string& branchAcceptedStubs = iConfig.
getParameter<
string>(
"BranchAcceptedStubs");
61 const string& branchAcceptedTracks = iConfig.
getParameter<
string>(
"BranchAcceptedTracks");
64 edPutToken_ = produces<vector<TTTrack<Ref_Phase2TrackerDigi_>>>(branchAcceptedTracks);
88 deque<TTTrack<Ref_Phase2TrackerDigi_>> ttTracks;
99 vector<StubZHT> stubs;
100 stubs.reserve(
stream.size());
102 if (
frame.first.isNonnull())
106 for (
auto it = stubs.begin(); it != stubs.end();) {
107 const auto start = it;
108 const int id = it->trackId();
109 auto different = [
id](
const StubZHT& stub) {
return id != stub.trackId(); };
110 it = find_if(it, stubs.end(), different);
111 vector<TTStubRef> ttStubRefs;
118 ttTracks.emplace_back(
inv2R,
phiT,
cot,
zT, 0., 0., 0., 0., 0., 0, 0, 0.);
119 ttTracks.back().setStubRefs(ttStubRefs);
121 ttTracks.back().setEtaSector(
start->sectorEta());
122 ttTracks.back().setTrackSeedType(
start->trackId());
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
int numSectorsPhi() const
std::pair< TTStubRef, Frame > FrameStub
Class to process and provide run-time constants used by Track Trigger emulators.
std::vector< StreamStub > StreamsStub
std::vector< FrameStub > StreamStub
const DataFormats * dataFormats_
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
TTStubRef ttStubRef() const
~ProducerZHTout() override
ESGetToken< Setup, SetupRcd > esGetTokenSetup_
bool configurationSupported() const
#define DEFINE_FWK_MODULE(type)
ProcessHistory const & processHistory() const
ESGetToken< DataFormats, DataFormatsRcd > esGetTokenDataFormats_
transforms SF output into TTTracks
void produce(Event &, const EventSetup &) override
void checkHistory(const edm::ProcessHistory &processHistory) const
EDGetTokenT< StreamsStub > edGetToken_
void beginRun(const Run &, const EventSetup &) override
EDPutTokenT< vector< TTTrack< Ref_Phase2TrackerDigi_ > > > edPutToken_