26 : theConfig(cfg), theService(0), theRegionBuilder(0), theTkSeedGenerator(0), theSeedCleaner(0)
28 produces<L3MuonTrajectorySeedCollection>();
41 if (!regionBuilderPSet.empty()){
56 if (!trackerSeedCleanerPSet.
empty()){
103 unsigned int imuMax=l2muonH->size();
104 LogDebug(
"TSGFromL2Muon")<<imuMax<<
" l2 tracks.";
106 for (;imu!=imuMax;++imu){
112 || muRef->innerMomentum().Rho() <
thePtCut
113 || muRef->innerMomentum().R() <
thePCut )
continue;
116 std::unique_ptr<RectangularEtaPhiTrackingRegion> region;
122 std::vector<TrajectorySeed> tkSeeds;
124 std::pair<const Trajectory*,reco::TrackRef> staCand((
Trajectory*)(0), muRef);
131 LogDebug(
"TSGFromL2Muon") << tkSeeds.size() <<
" seeds for this L2 afther cleaning.";
135 unsigned int isMax=tkSeeds.size();
136 LogDebug(
"TSGFromL2Muon")<<isMax<<
" seeds for this L2.";
137 for (;is!=isMax;++is){
147 LogDebug(
"TSGFromL2Muon")<<result->size()<<
" trajectory seeds to the events";
void update(const edm::EventSetup &setup)
update the services each event
RectangularEtaPhiTrackingRegion * region(const reco::TrackRef &) const
define tracking region
T getParameter(std::string const &) const
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override
MuonTrackingRegionBuilder * theRegionBuilder
TrackerSeedCleaner * theSeedCleaner
virtual void setEvent(const edm::Event &)
pass the Event to the algo at each event
std::vector< L3MuonTrajectorySeed > L3MuonTrajectorySeedCollection
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es) override
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
MuonServiceProxy * theService
virtual void init(const MuonServiceProxy *service)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::ParameterSet theConfig
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void init(const MuonServiceProxy *)
T const * product() const
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