10 : theConfig(cfg), theService(0), theRegionBuilder(0), theTkSeedGenerator(0), theSeedCleaner(0){
11 produces<L3MuonTrajectorySeedCollection>();
25 if (!regionBuilderPSet.empty()){
37 if (!trackerSeedCleanerPSet.
empty()){
64 auto result = std::make_unique<L3MuonTrajectorySeedCollection>();
82 LogDebug(
"TSGFromL2Muon")<<l2muonH->size()<<
" l2 tracks.";
84 for (
unsigned int imu=0; imu != l2muonH->size(); ++imu){
90 || muRef->innerMomentum().Rho() <
thePtCut 91 || muRef->innerMomentum().R() <
thePCut )
continue;
94 std::unique_ptr<RectangularEtaPhiTrackingRegion> region;
100 std::vector<TrajectorySeed> tkSeeds;
103 std::pair<const Trajectory*,reco::TrackRef> staCand((
Trajectory*)(0), muRef);
113 for (
unsigned int is=0; is != tkSeeds.size(); ++is){
122 LogDebug(
"TSGFromL2Muon")<<
result->size()<<
" trajectory seeds to the events";
void update(const edm::EventSetup &setup)
update the services each event
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MuonTrackingRegionBuilder * theRegionBuilder
void setAllowAnything()
allow any parameter label/value pairs
TrackerSeedCleaner * theSeedCleaner
virtual void setEvent(const edm::Event &)
Pass the Event to the algo at each event.
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
edm::EDGetTokenT< reco::TrackCollection > l2muonToken
MuonTrackingRegionBuilder
virtual void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &)
TSGFromL2Muon(const edm::ParameterSet &cfg)
virtual void setEvent(const edm::Event &)
setEvent
edm::InputTag theL2CollectionLabel
std::unique_ptr< RectangularEtaPhiTrackingRegion > region(const reco::TrackRef &) const
Define tracking region.
MuonServiceProxy * theService
virtual void init(const MuonServiceProxy *service)
edm::ParameterSet theConfig
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void init(const MuonServiceProxy *service)
intizialization
TrackerSeedGenerator * theTkSeedGenerator
virtual void setEvent(const edm::Event &)
T get(const Candidate &c)
virtual void clean(const reco::TrackRef &, const RectangularEtaPhiTrackingRegion ®ion, tkSeeds &)
the cleaner