|
| PixelTrackProducerFromSoA (const edm::ParameterSet &iConfig) |
|
| ~PixelTrackProducerFromSoA () 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) |
|
This class creates "leagcy" reco::Track objects from the output of SoA CA.
Definition at line 40 of file PixelTrackProducerFromSoA.cc.
Implements edm::global::EDProducerBase.
Definition at line 104 of file PixelTrackProducerFromSoA.cc.
References cms::cuda::assert(), b, cms::cuda::bs, LocalTrajectoryParameters::charge(), hltPixelTracks_cff::chi2, funct::cos(), cpuHits_, TrackingRecHit::det(), reco::TrackBase::discarded, f, edm::EventSetup::getData(), runTauDisplay::gp, h, pixelTrack::highPurity, reco::TrackBase::highPurity, hfClusterShapes_cfi::hits, hmsToken_, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, idealMagneticFieldToken_, iEvent, GeomDet::index(), createfilelist::int, dqmiolumiharvest::j, reco::TrackBase::loose, visualization-live-secondInstance_cfg::m, minNumberOfHits_, minQuality_, LocalTrajectoryParameters::momentum(), eostools::move(), ndof, nhits, nHits, nt, BeamSpotPI::nTracks, phi, LocalTrajectoryParameters::position(), createTree::pp, submitPVResolutionJobs::q, quality, HI_PhotonSkim_cff::rechits, makeMuonMisalignmentScenario::rot, funct::sin(), jetUpdater_cfi::sort, storeTracks(), tBeamSpot_, reco::TrackBase::tight, Surface::toGlobal(), tokenTrack_, HLT_2022v14_cff::track, tracks, riemannFit::transformToPerigeePlane(), ttTopoToken_, reco::TrackBase::undefQuality, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
119 auto indToEdmP = std::make_unique<IndToEdm>();
120 auto &indToEdm = *indToEdmP;
132 std::vector<TrackingRecHit const *> hitmap;
133 auto const &rcs =
rechits.data();
134 auto nhits = rcs.size();
135 hitmap.resize(
nhits,
nullptr);
138 auto fc = hitsModuleStart;
140 for (
auto const &
h : rcs) {
143 auto const &clus = thit.firstClusterRef();
145 auto i = fc[detI] + clus.pixelCluster().originalId();
146 if (
i >= hitmap.size())
147 hitmap.resize(
i + 256,
nullptr);
152 std::vector<const TrackingRecHit *>
hits;
157 auto const *
quality = tsoa.qualityData();
158 auto const &
fit = tsoa.stateAtBS;
159 auto const &hitIndices = tsoa.hitIndices;
167 std::vector<int32_t> sortIdxs(
nTracks);
168 std::iota(sortIdxs.begin(), sortIdxs.end(), 0);
170 sortIdxs.begin(), sortIdxs.end(), [&](int32_t
const i1, int32_t
const i2) {
return tsoa.pt(
i1) > tsoa.pt(
i2); });
173 indToEdm.resize(sortIdxs.size(), -1);
174 for (
const auto &it : sortIdxs) {
175 auto nHits = tsoa.nHits(it);
186 auto b = hitIndices.begin(it);
187 for (
int iHit = 0; iHit <
nHits; ++iHit)
188 hits[iHit] = hitmap[*(
b + iHit)];
192 float chi2 = tsoa.chi2(it);
193 float phi = tsoa.phi(it);
197 fit.copyToDense(ipar, icov, it);
202 for (
int i = 0;
i < 5; ++
i)
203 for (
int j =
i;
j < 5; ++
j)
204 m(
i,
j) = ocov(
i,
j);
212 impPointPlane.toGlobal(lpar.position()), impPointPlane.toGlobal(lpar.momentum()), lpar.charge(), &idealField);
227 auto tkq = recoQuality[
int(
q)];
228 track->setQuality(tkq);
236 track->setQuality(tkq);
void storeTracks(Ev &ev, const TWH &tracksWithHits, const TrackerTopology &ttopo)
TrackQuality
track quality
Sin< T >::type sin(const T &t)
const edm::EDGetTokenT< SiPixelRecHitCollectionNew > cpuHits_
const GeomDet * det() const
const edm::EDGetTokenT< HMSstorage > hmsToken_
int32_t const minNumberOfHits_
Eigen::Matrix< double, 5, 1 > Vector5d
__host__ __device__ void transformToPerigeePlane(VI5 const &ip, MI5 const &icov, VO5 &op, MO5 &ocov)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > ttTopoToken_
Cos< T >::type cos(const T &t)
bool getData(T &iHolder) const
auto const & tracks
cannot be loose
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
const edm::EDGetTokenT< reco::BeamSpot > tBeamSpot_
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t nHits
Eigen::Matrix< double, 5, 5 > Matrix5d
const edm::EDGetTokenT< PixelTrackHeterogeneous > tokenTrack_
std::vector< TrackWithRecHits > TracksWithRecHits
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > idealMagneticFieldToken_
pixelTrack::Quality const minQuality_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.