10 produces<L3MuonTrajectorySeedCollection>();
15 theService = std::make_unique<MuonServiceProxy>(serviceParameters);
24 if (!regionBuilderPSet.empty()){
25 theRegionBuilder = std::make_unique<MuonTrackingRegionBuilder>(regionBuilderPSet, iC);
36 if (!trackerSeedCleanerPSet.
empty()){
37 theSeedCleaner = std::make_unique<TrackerSeedCleaner>(trackerSeedCleanerPSet,iC);
58 auto result = std::make_unique<L3MuonTrajectorySeedCollection>();
76 LogDebug(
"TSGFromL2Muon")<<l2muonH->size()<<
" l2 tracks.";
78 for (
unsigned int imu=0; imu != l2muonH->size(); ++imu){
84 || muRef->innerMomentum().Rho() <
thePtCut 85 || muRef->innerMomentum().R() <
thePCut )
continue;
88 std::unique_ptr<RectangularEtaPhiTrackingRegion> region;
94 std::vector<TrajectorySeed> tkSeeds;
97 std::pair<const Trajectory*,reco::TrackRef> staCand((
Trajectory*)
nullptr, muRef);
107 for (
unsigned int is=0; is != tkSeeds.size(); ++is){
116 LogDebug(
"TSGFromL2Muon")<<
result->size()<<
" trajectory seeds to the events";
~TSGFromL2Muon() override
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::Event &ev, const edm::EventSetup &es) override
std::unique_ptr< TrackerSeedGenerator > theTkSeedGenerator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setAllowAnything()
allow any parameter label/value pairs
std::unique_ptr< MuonTrackingRegionBuilder > theRegionBuilder
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
edm::EDGetTokenT< reco::TrackCollection > l2muonToken
TSGFromL2Muon(const edm::ParameterSet &cfg)
edm::InputTag theL2CollectionLabel
std::unique_ptr< TrackerSeedCleaner > theSeedCleaner
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< MuonServiceProxy > theService
T get(const Candidate &c)