1 #ifndef RecoHI_HiTracking_HIMuonTrackingRegionProducer_H 2 #define RecoHI_HiTracking_HIMuonTrackingRegionProducer_H 49 desc.
add(
"MuonTrackingRegionBuilder", descRegion);
55 descriptions.
add(
"HiTrackingRegionEDProducer", desc);
61 std::vector<std::unique_ptr<TrackingRegion> >
result;
73 unsigned int nMuons = muonH->size();
79 for(
unsigned int imu=0; imu<nMuons; imu++) {
void update(const edm::EventSetup &setup)
update the services each event
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > theMuonSourceToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setAllowAnything()
allow any parameter label/value pairs
virtual std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &es) const override
virtual void setEvent(const edm::Event &)
Pass the Event to the algo at each event.
std::vector< Track > TrackCollection
collection of Tracks
MuonTrackingRegionBuilder
MuonTrackingRegionBuilder * theRegionBuilder
std::unique_ptr< RectangularEtaPhiTrackingRegion > region(const reco::TrackRef &) const
Define tracking region.
edm::InputTag theMuonSource
virtual ~HIMuonTrackingRegionProducer()
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static void fillDescriptionsOffline(edm::ParameterSetDescription &descriptions)
MuonServiceProxy * theService
HIMuonTrackingRegionProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)