Definition at line 86 of file CosmicTrackingParticleSelector.h.
References chargedOnly_, PV3DBase< T, PVType, FrameType >::eta(), newFWLiteAna::found, edm::EventSetup::get(), 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< class >::product(), ptMin_, CosmicsPD_Skims::radius, simHitsTPAssoc, SimHitTPAssociationProducer::simHitTPAssociationListGreater(), mathSSE::sqrt(), GeomDet::surface(), tip_, Surface::toGlobal(), patCandidatesForDimuonsSequences_cff::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) {
128 const GeomDet* tmpDet = theGeometry->idToDet(
DetId(it->detUnitId()) ) ;
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();
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
T const * product() const
edm::Ref< edm::PSimHitContainer > TrackPSimHitRef