|
| PixelVertexProducerFromSoA (const edm::ParameterSet &iConfig) |
|
| ~PixelVertexProducerFromSoA () 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 |
|
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) |
|
| ~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) |
|
|
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 () noexcept |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
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) |
|
Implements edm::global::EDProducerBase.
Definition at line 62 of file PixelVertexProducerFromSoA.cc.
References cms::cuda::assert(), cms::cuda::bs, ZVertexSoA::chi2, gather_cfg::cout, BeamSpotPI::dxdz, reco::BeamSpot::dxdz(), BeamSpotPI::dydz, reco::BeamSpot::dydz(), submitPVValidationJobs::err, edm::Event::get(), edm::Event::getHandle(), mps_fire::i, ZVertexSoA::idv, dqmiolumiharvest::j, isotrackApplyRegressor::k, LogDebug, eostools::move(), ZVertexSoA::ndof, nt, ZVertexSoA::nvFinal, reco::BeamSpot::position(), edm::Event::put(), reco::BeamSpot::rotatedCovariance3D(), gpuVertexFinder::soa, ZVertexSoA::sortInd, mathSSE::sqrt(), tokenBeamSpot_, tokenIndToEdm_, tokenTracks_, tokenVertex_, findQualityFiles::v, ZVertexSoA::wv, x, reco::BeamSpot::x0(), y, reco::BeamSpot::y0(), z, reco::BeamSpot::z0(), and ZVertexSoA::zv.
63 auto vertexes = std::make_unique<reco::VertexCollection>();
66 auto tracksSize = tracksHandle->size();
70 float x0 = 0, y0 = 0, z0 = 0,
dxdz = 0,
dydz = 0;
71 std::vector<int32_t> itrk;
73 if (!bsHandle.isValid()) {
74 edm::LogWarning(
"PixelVertexProducer") <<
"No beamspot found. returning vertexes with (0,0,Z) ";
88 #ifdef PIXVERTEX_DEBUG_PRODUCE
89 std::cout <<
"converting " << nv <<
" vertices "
90 <<
" from " << indToEdm.size() <<
" tracks" << std::endl;
91 #endif // PIXVERTEX_DEBUG_PRODUCE
93 std::set<uint16_t> uind;
94 for (
int j = nv - 1;
j >= 0; --
j) {
107 for (
auto k = 0U;
k < indToEdm.size(); ++
k) {
111 auto nt = itrk.size();
113 #ifdef PIXVERTEX_DEBUG_PRODUCE
114 std::cout <<
"vertex " <<
i <<
" with no tracks..." << std::endl;
115 #endif // PIXVERTEX_DEBUG_PRODUCE
123 auto &
v = (*vertexes).back();
124 v.reserve(itrk.size());
125 for (
auto it : itrk) {
126 assert(it <
int(indToEdm.size()));
127 auto k = indToEdm[it];
128 if (
k > tracksSize) {
129 edm::LogWarning(
"PixelVertexProducer") <<
"oops track " << it <<
" does not exists on CPU " <<
k;
138 LogDebug(
"PixelVertexProducer") <<
": Found " << vertexes->size() <<
" vertexes\n";
139 for (
unsigned int i = 0;
i < vertexes->size(); ++
i) {
140 LogDebug(
"PixelVertexProducer") <<
"Vertex number " <<
i <<
" has " << (*vertexes)[
i].tracksSize()
141 <<
" tracks with a position of " << (*vertexes)[
i].z() <<
" +- "
142 <<
std::sqrt((*vertexes)[
i].covariance(2, 2));
146 if (vertexes->empty() && bsHandle.isValid()) {
150 if ((bse.cxx() <= 0.) || (bse.cyy() <= 0.) || (bse.czz() <= 0.)) {
157 edm::LogInfo(
"PixelVertexProducer") <<
"No vertices found. Beamspot with invalid errors " << bse.matrix()
158 <<
"\nWill put Vertex derived from dummy-fake BeamSpot into Event.\n"
159 << (*vertexes)[0].x() <<
"\n"
160 << (*vertexes)[0].y() <<
"\n"
161 << (*vertexes)[0].z() <<
"\n";
165 edm::LogInfo(
"PixelVertexProducer") <<
"No vertices found. Will put Vertex derived from BeamSpot into Event:\n"
166 << (*vertexes)[0].x() <<
"\n"
167 << (*vertexes)[0].y() <<
"\n"
168 << (*vertexes)[0].z() <<
"\n";
170 }
else if (vertexes->empty() && !bsHandle.isValid()) {
171 edm::LogWarning(
"PixelVertexProducer") <<
"No beamspot and no vertex found. No vertex returned.";
double z0() const
z coordinate
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< ZVertexHeterogeneous > tokenVertex_
math::Error< dimension >::type Error
covariance error matrix (3x3)
edm::EDGetTokenT< reco::BeamSpot > tokenBeamSpot_
double dydz() const
dydz slope
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
edm::EDGetTokenT< reco::TrackCollection > tokenTracks_
bool get(ProductID const &oid, Handle< PROD > &result) const
math::XYZPoint Point
point in the space
edm::EDGetTokenT< IndToEdm > tokenIndToEdm_
double dxdz() const
dxdz slope
Log< level::Info, false > LogInfo
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
double y0() const
y coordinate
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
const Point & position() const
position
Covariance3DMatrix rotatedCovariance3D() const
Log< level::Warning, false > LogWarning
double x0() const
x coordinate