59 layersToKeep_(iConfig.getParameter<int32_t>(
"layersToKeep")),
60 insideOut_(iConfig.getParameter<
bool>(
"insideOut")),
61 debug_(iConfig.getUntrackedParameter<
bool>(
"debug",
false)),
63 produces<std::vector<TrajectorySeed>>();
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;