.....
Definition at line 46 of file CosmicTrackFinder.cc.
63 edm::LogWarning(
"CosmicTrackFinder") <<
"Collection SiPixelRecHitCollection with InputTag " <<
l.module
64 <<
" cannot be found, using empty collection of same type.";
77 auto output = std::make_unique<TrackCandidateCollection>();
81 edm::LogVerbatim(
"CosmicTrackFinder") <<
"========== Cosmic Track Finder Info ==========";
82 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Seeds " << (*seed).size();
83 if (!(*seed).empty()) {
84 std::vector<Trajectory> trajoutput;
99 edm::LogVerbatim(
"CosmicTrackFinder") <<
" Numbers of Temp Trajectories " << trajoutput.size();
101 if (!trajoutput.empty()) {
103 std::vector<Trajectory*> tmpTraj;
104 std::vector<Trajectory>::iterator
itr;
105 for (
itr = trajoutput.begin();
itr != trajoutput.end();
itr++)
106 tmpTraj.push_back(&(*
itr));
112 stable_sort(tmpTraj.begin(), tmpTraj.end(), CompareTrajLay());
114 stable_sort(tmpTraj.begin(), tmpTraj.end(), CompareTrajChi());
118 const Trajectory theTraj = *(*tmpTraj.begin());
119 bool seedplus = (theTraj.seed().direction() ==
alongMomentum);
122 LogDebug(
"CosmicTrackFinder") <<
"Reconstruction " << (seedplus ?
"along" :
"opposite to") <<
" momentum";
130 std::cout <<
"cosmic: along momentum... " << std::endl;
148 unsigned int firstId;
151 firstState = theTraj.lastMeasurement().updatedState();
152 firstId = theTraj.lastMeasurement().recHitR().rawId();
167 edm::LogWarning(
"CosmicTrackFinder") <<
"invalid innerState, will not make TrackCandidate";
173 if (firstId !=
recHits.front().rawId()) {
174 edm::LogWarning(
"CosmicTrackFinder") <<
"Mismatch in DetID of first hit: firstID= " << firstId
175 <<
" DetId= " <<
recHits.front().geographicalId().rawId();
References alongMomentum, cms::cuda::assert(), gen::C, cosmicTrajectoryBuilder_, gather_cfg::cout, crackTrajectoryBuilder_, MillePedeFileConverter_cfg::e, edm::EventSetup::get(), get, CosmicTrajectoryBuilder::hitBuilder(), CRackTrajectoryBuilder::hitBuilder(), TrajectoryStateOnSurface::isValid(), cmsLHEtoEOSManager::l, TrajectoryStateOnSurface::localParameters(), LogDebug, TrajectoryStateOnSurface::magneticField(), AlignmentTrackSelector_cfi::matchedrecHits, matchedrecHitsToken_, eostools::move(), convertSQLitetoXML_cfg::output, trajectoryStateTransform::persistentState(), beampixel_dqm_sourceclient-live_cfg::pixelHitCollection, pixelRecHitsToken_, edm::Handle< T >::product(), FastTrackerRecHitMaskProducer_cfi::recHits, AlignmentTrackSelector_cfi::rphirecHits, rphirecHitsToken_, CosmicTrajectoryBuilder::run(), CRackTrajectoryBuilder::run(), SurveyInfoScenario_cff::seed, seedToken_, convBremSeeds_cfi::stereorecHits, stereorecHitsToken_, TrajectoryStateOnSurface::surface(), PbPb_ZMuSkimMuonDPG_cff::tracker, and useHitsSplitting_.