Definition at line 86 of file CosmicTrackingParticleSelector.h.
References chargedOnly_, PV3DBase< T, PVType, FrameType >::eta(), runEdmFileComparison::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_, TCMET_cfi::radius, simHitsTPAssoc, SimHitTPAssociationProducer::simHitTPAssociationListGreater(), mathSSE::sqrt(), GeomDet::surface(), tip_, Surface::toGlobal(), mixOne_simraw_on_sim_cfi::tracker, TrajectoryStateClosestToBeamLine::trackStateAtPCA(), and PV3DBase< T, PVType, FrameType >::z().
115 <<
"TOT Number of PSimHits = "<< tpr->numberOfHits() <<
", Number of Tracker PSimHits = "<< tpr->numberOfTrackerHits() <<
"\n";
118 edm::LogError(
"CosmicTrackingParticleSelector") <<
"Invalid handle!";
121 std::pair<TrackingParticleRef, TrackPSimHitRef> clusterTPpairWithDummyTP(tpr,
TrackPSimHitRef());
125 for(
auto ip = range.first; ip != range.second; ++ip) {
131 <<
"***WARNING: PSimHit "<<ii <<
", no GeomDet for: "<<it->detUnitId()<<
". Skipping it.";
134 det =
DetId(it->detUnitId()).det();
135 subdet =
DetId(it->detUnitId()).subdetId();
143 <<
"PSimHit "<<ii<<
", Detector = "<<det<<
", subdet = "<<subdet
144 <<
"\t Radius = "<< gp.
perp() <<
", z = "<< gp.
z()
145 <<
"\t pt = "<< gv.
perp() <<
", pz = "<< gv.
z();
147 <<
"\t trackId = "<<it->trackId()<<
", particleType = "<<it->particleType()<<
", processType = "<<it->processType();
150 if (it->processType()!=0)
continue;
160 <<
"\n"<<
"FINAL State at InnerMost Hit: Radius = "<< finalGP.perp() <<
", z = "<< finalGP.z()
161 <<
", pt = "<< finalGV.perp() <<
", pz = "<< finalGV.z();
163 if(!
found)
return false;
169 if(!tsAtClosestApproach.
isValid()){
171 <<
"*** WARNING in CosmicTrackingParticleSelector: tsAtClosestApproach is not valid." <<
"\n";
180 <<
"FINAL State extrapolated at PCA: Radius = "<< vertex.perp() <<
", z = "<< vertex.z()
181 <<
", pt = "<< momentum.perp() <<
", pz = "<< momentum.z() <<
"\n";
184 tpr->numberOfTrackerLayers() >=
minHit_ &&
188 fabs(vertex.z()) <=
lip_ 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