19 theCategory =
"FastSimulation|Muons||FastTSGFromIOHit";
24 const auto& seedLabels = iConfig.
getParameter<std::vector<edm::InputTag> >(
"SeedCollectionLabels");
25 for (
const auto& seedLabel : seedLabels) {
35 std::vector<TrajectorySeed>&
result) {
40 if (muRef->pt() <
thePtCut || muRef->innerMomentum().Rho() <
thePtCut || muRef->innerMomentum().R() < 2.5) {
51 for (
unsigned iSeed = 0; iSeed <
seedsTks.size(); iSeed++) {
59 std::set<unsigned> simTrackIds;
63 int simTrackId = static_cast<FastTrackerRecHit const&>(*
seed.recHits().begin()).simTrackId(0);
67 if (simTrackIds.find(simTrackId) != simTrackIds.end()) {
70 simTrackIds.insert(simTrackId);
90 double etaSeed = theSimTrack.
momentum().Eta();
91 double etaLimit = (fabs(fabs(
etaRange.max()) - fabs(
etaRange.mean())) < 0.05)
94 bool inEtaRange = etaSeed >= (
etaRange.mean() - etaLimit) && etaSeed <= (
etaRange.mean() + etaLimit);
101 double phiSeed = theSimTrack.
momentum().Phi();
102 double phiLimit = (phiMargin.
right() < 0.05) ? 0.05 : phiMargin.
right();
103 bool inPhiRange = (fabs(
deltaPhi(phiSeed,
double(
region.direction().phi()))) < phiLimit);
111 bool inPtRange = ptSeed >=
ptMin && ptSeed <= 2 * (muRef->pt());