Definition at line 93 of file CosmicTrackingParticleSelector.h.
References chargedOnly_, PV3DBase< T, PVType, FrameType >::eta(), newFWLiteAna::found, edm::EventSetup::get(), runTauDisplay::gp, GlobalTrackingGeometry::idToDet(), cuy::ii, TrajectoryStateClosestToBeamLine::isValid(), edm::HandleBase::isValid(), lip_, maxRapidity_, minHit_, minRapidity_, FreeTrajectoryState::momentum(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::perp2(), FreeTrajectoryState::position(), edm::ESHandle< T >::product(), ptMin_, CosmicsPD_Skims::radius, FastTimerService_cff::range, simHitsTPAssoc, SimHitTPAssociationProducer::simHitTPAssociationListGreater(), mathSSE::sqrt(), GeomDet::surface(), tip_, Surface::toGlobal(), PbPb_ZMuSkimMuonDPG_cff::tracker, TrajectoryStateClosestToBeamLine::trackStateAtPCA(), bphysicsOniaDQM_cfi::vertex, and PV3DBase< T, PVType, FrameType >::z().
126 <<
"TOT Number of PSimHits = " << tpr->numberOfHits()
127 <<
", Number of Tracker PSimHits = " << tpr->numberOfTrackerHits() <<
"\n";
130 edm::LogError(
"CosmicTrackingParticleSelector") <<
"Invalid handle!";
133 std::pair<TrackingParticleRef, TrackPSimHitRef> clusterTPpairWithDummyTP(
138 clusterTPpairWithDummyTP,
140 for (
auto ip =
range.first; ip !=
range.second; ++ip) {
146 <<
"***WARNING: PSimHit " << ii <<
", no GeomDet for: " << it->detUnitId() <<
". Skipping it.";
149 det =
DetId(it->detUnitId()).det();
150 subdet =
DetId(it->detUnitId()).subdetId();
158 <<
"PSimHit " << ii <<
", Detector = " << det <<
", subdet = " << subdet <<
"\t Radius = " << gp.
perp()
159 <<
", z = " << gp.
z() <<
"\t pt = " << gv.
perp() <<
", pz = " << gv.
z();
161 <<
"\t trackId = " << it->trackId() <<
", particleType = " << it->particleType()
162 <<
", processType = " << it->processType();
165 if (it->processType() != 0)
177 <<
"FINAL State at InnerMost Hit: Radius = " << finalGP.perp() <<
", z = " << finalGP.z()
178 <<
", pt = " << finalGV.perp() <<
", pz = " << finalGV.z();
187 if (!tsAtClosestApproach.
isValid()) {
189 <<
"*** WARNING in CosmicTrackingParticleSelector: tsAtClosestApproach is not valid." 197 <<
"FINAL State extrapolated at PCA: Radius = " <<
vertex.perp() <<
", z = " <<
vertex.z()
198 <<
", pt = " << momentum.perp() <<
", pz = " << momentum.z() <<
"\n";
200 return (tpr->numberOfTrackerLayers() >=
minHit_ &&
sqrt(momentum.perp2()) >=
ptMin_ &&
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
static bool simHitTPAssociationListGreater(SimHitTPPair i, SimHitTPPair j)
const Plane & surface() const
The nominal surface of the GeomDet.
edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssoc
GlobalVector momentum() const
FTS const & trackStateAtPCA() const
GlobalPoint position() const
const GeomDet * idToDet(DetId) const override
edm::Ref< edm::PSimHitContainer > TrackPSimHitRef
T const * product() const