transforms SF output into TTTracks
- Author
- Thomas Schuh
- Date
- 2020, July
Definition at line 32 of file ProducerZHTout.cc.
void trackerTFP::ProducerZHTout::produce |
( |
Event & |
iEvent, |
|
|
const EventSetup & |
iSetup |
|
) |
| |
|
overrideprivate |
Definition at line 82 of file ProducerZHTout.cc.
References tt::Setup::configurationSupported(), trackerTFP::cot, dataFormats_, HLT_2022v15_cff::distance, edGetToken_, edPutToken_, trackerTFP::DataFormat::floating(), trackerTFP::DataFormats::format(), patZpeak::handle, mps_fire::i, l1ctLayer2EG_cff::id, iEvent, trackerTFP::inv2R, trackerTFP::DataFormats::numChannel(), tt::Setup::numRegions(), tt::Setup::numSectorsPhi(), trackerTFP::phiT, HLT_2022v15_cff::region, setup_, cms::cuda::stream, HLT_2022v15_cff::streams, HcalDetIdTransform::transform(), trackerTFP::Stub< Ts >::ttStubRef(), trackerTFP::zht, tt::Setup::zhtMaxTracks(), and trackerTFP::zT.
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;
113 transform(
start, it, back_inserter(ttStubRefs), [](
const StubZHT& stub) {
return stub.ttStubRef(); });
114 const double zT = dfZT.floating(
start->zT());
115 const double cot = dfCot.floating(
start->cot());
116 const double phiT = dfPhiT.floating(
start->phiT());
117 const double inv2R = dfinv2R.floating(
start->inv2R());
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());
int numSectorsPhi() const
std::pair< TTStubRef, Frame > FrameStub
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
bool configurationSupported() const
EDGetTokenT< StreamsStub > edGetToken_
EDPutTokenT< vector< TTTrack< Ref_Phase2TrackerDigi_ > > > edPutToken_