Definition at line 66 of file MuonReSeeder.cc.
79 auto out = std::make_unique<std::vector<TrajectorySeed>>();
80 unsigned int nsrc =
src->size();
91 const std::vector<TrajectoryMeasurement> &tms = traj.
front().measurements();
96 std::cout <<
"Considering muon of pt " <<
mu.pt() <<
", eta = " <<
mu.eta() <<
", phi = " <<
mu.phi()
99 <<
" to momentum, so will start from " << (fromInside ?
"inside" :
"outside") << std::endl;
104 std::cout <<
"IN state: subdetector = " << tin.
recHit()->geographicalId().subdetId() << std::endl;
107 std::cout <<
"OU state: subdetector = " << tou.
recHit()->geographicalId().subdetId() << std::endl;
111 int lastSubdet = 0, lastLayer = -1;
112 for (
int i = (fromInside ? 0 : tms.size() - 1),
113 end = (fromInside ? tms.size() : -1),
114 step = (fromInside ? +1 : -1),
119 hit = tms[
i].recHit()->hit();
121 std::cout <<
" considering hit " <<
i <<
": rechit on " << (
hit ?
hit->geographicalId().rawId() : -1)
125 int subdet =
hit->geographicalId().subdetId();
126 int lay = tTopo->
layer(
hit->geographicalId());
127 if (subdet != lastSubdet || lay != lastLayer) {
139 tsos = tms[
i].updatedState().
isValid()
140 ? tms[
i].updatedState()
141 : (
abs(
i -
end) <
abs(
i) ? tms[
i].forwardPredictedState() : tms[
i].backwardPredictedState());
143 std::cout <<
" hit : subdetector = " << tms[
i].recHit()->geographicalId().subdetId() << std::endl;
144 if (
hit->isValid()) {
145 std::cout <<
" global pos Rho " << tms[
i].recHit()->globalPosition().perp() <<
", Z "
146 << tms[
i].recHit()->globalPosition().z() << std::endl;
148 std::cout <<
" invalid tracking rec hit, so no global position" << std::endl;
References funct::abs(), alongMomentum, gather_cfg::cout, debug_, end, edm::OwnVector< T, P >::front(), edm::EventSetup::get(), get, TrajectoryStateOnSurface::globalPosition(), mps_fire::i, iEvent, insideOut_, TrajectoryStateOnSurface::isValid(), TrackerTopology::layer(), layersToKeep_, eostools::move(), amptDefaultParameters_cff::mu, oppositeToMomentum, MillePedeFileConverter_cfg::out, PV3DBase< T, PVType, FrameType >::perp(), trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), TrajectoryMeasurement::recHit(), refitter_, SurveyInfoScenario_cff::seed, selector_, TrackTransformer::setServices(), TrackRefitter_38T_cff::src, src_, TrackTransformer::transform(), TrajectoryMeasurement::updatedState(), and PV3DBase< T, PVType, FrameType >::z().