Definition at line 95 of file CosmicTrackingParticleSelector.h.
References cms::cuda::bs, chargedOnly_, PV3DBase< T, PVType, FrameType >::eta(), newFWLiteAna::found, edm::EventSetup::getData(), edm::EventSetup::getHandle(), globalTrackingGeomToken_, runTauDisplay::gp, GlobalTrackingGeometry::idToDet(), cuy::ii, TrajectoryStateClosestToBeamLine::isValid(), edm::HandleBase::isValid(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lip_, maxRapidity_, minHit_, minRapidity_, FreeTrajectoryState::momentum(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::perp2(), FreeTrajectoryState::position(), ptMin_, CosmicsPD_Skims::radius, isotrackApplyRegressor::range, simHitsTPAssoc, SimHitTPAssociationProducer::simHitTPAssociationListGreater(), mathSSE::sqrt(), GeomDet::surface(), theMFToken_, tip_, Surface::toGlobal(), TrajectoryStateClosestToBeamLine::trackStateAtPCA(), bphysicsOniaDQM_cfi::vertex, and PV3DBase< T, PVType, FrameType >::z().
122 <<
"TOT Number of PSimHits = " << tpr->numberOfHits()
123 <<
", Number of Tracker PSimHits = " << tpr->numberOfTrackerHits() <<
"\n";
126 edm::LogError(
"CosmicTrackingParticleSelector") <<
"Invalid handle!";
129 std::pair<TrackingParticleRef, TrackPSimHitRef> clusterTPpairWithDummyTP(
134 clusterTPpairWithDummyTP,
136 for (
auto ip =
range.first; ip !=
range.second; ++ip) {
142 <<
"***WARNING: PSimHit " <<
ii <<
", no GeomDet for: " <<
it->detUnitId() <<
". Skipping it.";
145 det =
DetId(
it->detUnitId()).det();
146 subdet =
DetId(
it->detUnitId()).subdetId();
154 <<
"PSimHit " <<
ii <<
", Detector = " << det <<
", subdet = " << subdet <<
"\t Radius = " <<
gp.perp()
155 <<
", z = " <<
gp.z() <<
"\t pt = " << gv.
perp() <<
", pz = " << gv.
z();
157 <<
"\t trackId = " <<
it->trackId() <<
", particleType = " <<
it->particleType()
158 <<
", processType = " <<
it->processType();
161 if (
it->processType() != 0)
173 <<
"FINAL State at InnerMost Hit: Radius = " << finalGP.perp() <<
", z = " << finalGP.z()
174 <<
", pt = " << finalGV.perp() <<
", pz = " << finalGV.z();
183 if (!tsAtClosestApproach.
isValid()) {
185 <<
"*** WARNING in CosmicTrackingParticleSelector: tsAtClosestApproach is not valid." 193 <<
"FINAL State extrapolated at PCA: Radius = " <<
vertex.perp() <<
", z = " <<
vertex.z()
194 <<
", pt = " << momentum.perp() <<
", pz = " << momentum.z() <<
"\n";
196 return (tpr->numberOfTrackerLayers() >=
minHit_ &&
sqrt(momentum.perp2()) >=
ptMin_ &&
Log< level::Info, true > LogVerbatim
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > theMFToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static bool simHitTPAssociationListGreater(SimHitTPPair i, SimHitTPPair j)
Log< level::Error, false > LogError
const GeomDet * idToDet(DetId) const override
GlobalPoint position() const
GlobalVector momentum() const
FTS const & trackStateAtPCA() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssoc
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const Plane & surface() const
The nominal surface of the GeomDet.
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globalTrackingGeomToken_
edm::Ref< edm::PSimHitContainer > TrackPSimHitRef