|
| PixelTrackProducerFromSoAT (const edm::ParameterSet &iConfig) |
|
| ~PixelTrackProducerFromSoAT () override=default |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
template<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
template<typename TrackerTraits>
class PixelTrackProducerFromSoAT< TrackerTraits >
This class creates "leagcy" reco::Track objects from the output of SoA CA.
Definition at line 44 of file PixelTrackProducerFromSoA.cc.
template<typename TrackerTraits >
Implements edm::global::EDProducerBase.
Definition at line 113 of file PixelTrackProducerFromSoA.cc.
References cms::cuda::assert(), b, cms::cuda::bs, LocalTrajectoryParameters::charge(), hltPixelTracks_cff::chi2, funct::cos(), TrackingRecHit::det(), reco::TrackBase::discarded, f, edm::EventSetup::getData(), runTauDisplay::gp, h, pixelTrack::highPurity, reco::TrackBase::highPurity, hfClusterShapes_cfi::hits, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, iEvent, GeomDet::index(), createfilelist::int, dqmiolumiharvest::j, reco::TrackBase::loose, visualization-live-secondInstance_cfg::m, LocalTrajectoryParameters::momentum(), eostools::move(), ndof, nHits, nhits, nt, beamSpotPI::nTracks, PVValHelper::phi, LocalTrajectoryParameters::position(), createTree::pp, submitPVResolutionJobs::q, quality, HI_PhotonSkim_cff::rechits, makeMuonMisalignmentScenario::rot, funct::sin(), jetUpdater_cfi::sort, storeTracks(), svgfig::template(), reco::TrackBase::tight, Surface::toGlobal(), HLT_2023v12_cff::track, pwdgSkimBPark_cfi::tracks, riemannFit::transformToPerigeePlane(), reco::TrackBase::undefQuality, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
128 auto indToEdmP = std::make_unique<IndToEdm>();
129 auto &indToEdm = *indToEdmP;
141 std::vector<TrackingRecHit const *> hitmap;
142 auto const &rcs =
rechits.data();
143 auto nhits = rcs.size();
145 hitmap.resize(
nhits,
nullptr);
148 auto fc = hitsModuleStart;
150 for (
auto const &
h : rcs) {
153 auto const &clus = thit.firstClusterRef();
155 auto i = fc[detI] + clus.pixelCluster().originalId();
156 if (
i >= hitmap.size())
157 hitmap.resize(
i + 256,
nullptr);
163 std::vector<const TrackingRecHit *>
hits;
167 auto const *
quality = tsoa.view().quality();
168 auto const &hitIndices = tsoa.view().hitIndices();
169 auto nTracks = tsoa.view().nTracks();
176 std::vector<int32_t> sortIdxs(
nTracks);
177 std::iota(sortIdxs.begin(), sortIdxs.end(), 0);
178 std::sort(sortIdxs.begin(), sortIdxs.end(), [&](int32_t
const i1, int32_t
const i2) {
179 return tsoa.view()[
i1].pt() > tsoa.view()[
i2].pt();
183 indToEdm.resize(sortIdxs.size(), -1);
184 for (
const auto &it : sortIdxs) {
197 auto b = hitIndices.begin(it);
198 for (
int iHit = 0; iHit <
nHits; ++iHit)
199 hits[iHit] = hitmap[*(
b + iHit)];
203 float chi2 = tsoa.view()[it].chi2();
213 for (
int i = 0;
i < 5; ++
i)
214 for (
int j =
i;
j < 5; ++
j)
215 m(
i,
j) = ocov(
i,
j);
223 impPointPlane.toGlobal(lpar.position()), impPointPlane.toGlobal(lpar.momentum()), lpar.charge(), &idealField);
238 auto tkq = recoQuality[
int(
q)];
239 track->setQuality(tkq);
247 track->setQuality(tkq);
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const edm::EDGetTokenT< reco::BeamSpot > tBeamSpot_
const edm::EDGetTokenT< TrackSoAHost > tokenTrack_
void storeTracks(Ev &ev, const TWH &tracksWithHits, const TrackerTopology &ttopo)
const edm::EDGetTokenT< SiPixelRecHitCollectionNew > cpuHits_
TrackQuality
track quality
Sin< T >::type sin(const T &t)
int32_t const minNumberOfHits_
const GeomDet * det() const
static constexpr __host__ __device__ float phi(const TrackSoAConstView &tracks, int32_t i)
Eigen::Matrix< double, 5, 1 > Vector5d
__host__ __device__ void transformToPerigeePlane(VI5 const &ip, MI5 const &icov, VO5 &op, MO5 &ocov)
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > idealMagneticFieldToken_
Cos< T >::type cos(const T &t)
def template(fileName, svg, replaceme="REPLACEME")
static constexpr __host__ __device__ int nHits(const TrackSoAConstView &tracks, int i)
const edm::EDGetTokenT< HMSstorage > hmsToken_
pixelTrack::Quality const minQuality_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Eigen::Matrix< double, 5, 5 > Matrix5d
std::vector< TrackWithRecHits > TracksWithRecHits
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > ttTopoToken_
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.