22 theCategory =
"FastSimulation|Muons||FastTSGFromIOHit";
27 const auto & seedLabels = iConfig.
getParameter<std::vector<edm::InputTag> >(
"SeedCollectionLabels");
28 for(
const auto & seedLabel : seedLabels)
49 || muRef->innerMomentum().Rho() <
thePtCut
50 || muRef->innerMomentum().R() < 2.5 )
61 seedCollections.resize(
seedsTks.size());
62 for (
unsigned iSeed = 0 ; iSeed <
seedsTks.size() ; iSeed++)
71 std::set<unsigned> simTrackIds;
72 for (
const auto & seeds : seedCollections)
74 for (
const auto &
seed : *seeds)
80 const SimTrack & simTrack = (*simTracks)[simTrackId];
83 if( simTrackIds.find(simTrackId) != simTrackIds.end() )
87 simTrackIds.insert(simTrackId);
90 if( !
clean(muRef,regionRef,&
seed,simTrack) )
111 double etaSeed = theSimTrack.
momentum().Eta();
112 double etaLimit = (fabs(fabs(etaRange.
max())-fabs(etaRange.
mean())) <0.05) ?
113 0.05 : fabs(fabs(etaRange.
max()) - fabs(etaRange.
mean())) ;
115 etaSeed >= (etaRange.
mean() - etaLimit) &&
116 etaSeed <= (etaRange.
mean() + etaLimit) ;
124 double phiSeed = theSimTrack.
momentum().Phi();
125 double phiLimit = (phiMargin.
right() < 0.05 ) ? 0.05 : phiMargin.
right();
136 bool inPtRange = ptSeed >= ptMin && ptSeed<= 2*(muRef->pt());
std::vector< edm::EDGetTokenT< TrajectorySeedCollection > > seedsTks
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
FastTSGFromIOHit(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
constructor
std::pair< const Trajectory *, reco::TrackRef > TrackCand
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Margin & phiMargin() const
Geom::Phi< T > phi() const
virtual ~FastTSGFromIOHit()
destructor
GlobalVector const & direction() const
the direction around which region is constructed
std::vector< TrajectorySeed > TrajectorySeedCollection
const edm::Event * getEvent() const
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *tTopo, std::vector< TrajectorySeed > &) override
generate seed(s) for a track
virtual int32_t simTrackId(size_t i) const
std::pair< const_iterator, const_iterator > range
float ptMin() const
minimal pt of interest
const math::XYZTLorentzVectorD & momentum() const
bool clean(reco::TrackRef muRef, const RectangularEtaPhiTrackingRegion ®ion, const BasicTrajectorySeed *aSeed, const SimTrack &theSimTrack)
edm::EDGetTokenT< edm::SimTrackContainer > simTracksTk
std::vector< SimTrack > SimTrackContainer
const Range & etaRange() const
allowed eta range [eta_min, eta_max] interval