41 : seedingLayerSetsBuilder_(iConfig, consumesCollector()),
42 origins_(iConfig.getParameter<
edm::
ParameterSet>(
"RegionPSet"), consumesCollector()),
43 inactiveAreaFinder_(iConfig,
44 seedingLayerSetsBuilder_.
layers(),
45 seedingLayerSetsBuilder_.seedingLayerSetsLooper(),
47 trackingRegionsBuilder_(iConfig.getParameter<
edm::
ParameterSet>(
"RegionPSet"), consumesCollector()) {
48 produces<SeedingLayerSetsHits>();
49 produces<TrackingRegionsSeedingLayerSets>();
64 descriptions.
add(
"pixelInactiveAreaTrackingRegionsAndSeedingLayers",
desc);
77 for (
const auto& origin : origins) {
79 LogTrace(
"PixelInactiveAreaTrackingRegionsSeedingLayersProducer")
80 <<
"Origin " << origin.first.x() <<
"," << origin.first.y() <<
"," << origin.first.z() <<
" z half lengh " 82 for (
auto& areasLayerSet : areasLayerSets) {
83 auto region = builder.region(origin, areasLayerSet.first);
89 for (
const auto& ind : areasLayerSet.second) {
92 LogTrace(
"PixelInactiveAreaTrackingRegionsSeedingLayersProducer")
93 <<
" region eta,phi " <<
region->direction().eta() <<
"," <<
region->direction().phi() <<
" eta range " 94 << etaPhiRegion->etaRange().min() <<
"," << etaPhiRegion->etaRange().max() <<
" phi range " 95 << (
region->direction().phi() - etaPhiRegion->phiMargin().left()) <<
"," 96 << (
region->direction().phi() + etaPhiRegion->phiMargin().right()) <<
" layer sets " <<
ss.str();
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
static void fillDescriptions(edm::ParameterSetDescription &desc)
PixelInactiveAreaTrackingRegionsSeedingLayersProducer(const edm::ParameterSet &iConfig)
Builder beginEvent(const edm::Event &e, const edm::EventSetup &es) const
SeedingLayerSetsBuilder seedingLayerSetsBuilder_
PixelInactiveAreaFinder inactiveAreaFinder_
#define DEFINE_FWK_MODULE(type)
std::vector< std::pair< VecArray2< Area >, std::vector< LayerSetIndex > > > areasAndLayerSets(const GlobalPoint &point, float zwidth) const
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
static void fillDescriptions(edm::ParameterSetDescription &desc)
~PixelInactiveAreaTrackingRegionsSeedingLayersProducer() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
AreaSeededTrackingRegionsBuilder trackingRegionsBuilder_
std::unique_ptr< SeedingLayerSetsHits > hits(const edm::Event &ev, const edm::EventSetup &es)
InactiveAreas inactiveAreas(const edm::Event &iEvent, const edm::EventSetup &iSetup)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
VertexBeamspotOrigins origins_
Origins origins(const edm::Event &iEvent) const
static void fillDescriptions(edm::ParameterSetDescription &desc)