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();
Origins origins(const edm::Event &iEvent) const
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
static void fillDescriptions(edm::ParameterSetDescription &desc)
PixelInactiveAreaTrackingRegionsSeedingLayersProducer(const edm::ParameterSet &iConfig)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
std::vector< std::pair< VecArray2< Area >, std::vector< LayerSetIndex > > > areasAndLayerSets(const GlobalPoint &point, float zwidth) const
SeedingLayerSetsBuilder seedingLayerSetsBuilder_
PixelInactiveAreaFinder inactiveAreaFinder_
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
Builder beginEvent(const edm::Event &e, const edm::EventSetup &es) const
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)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
VertexBeamspotOrigins origins_
static void fillDescriptions(edm::ParameterSetDescription &desc)