CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
PixelInactiveAreaTrackingRegionsSeedingLayersProducer Class Reference
Inheritance diagram for PixelInactiveAreaTrackingRegionsSeedingLayersProducer:
edm::stream::EDProducer<>

Public Member Functions

 PixelInactiveAreaTrackingRegionsSeedingLayersProducer (const edm::ParameterSet &iConfig)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
 ~PixelInactiveAreaTrackingRegionsSeedingLayersProducer () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

PixelInactiveAreaFinder inactiveAreaFinder_
 
VertexBeamspotOrigins origins_
 
SeedingLayerSetsBuilder seedingLayerSetsBuilder_
 
AreaSeededTrackingRegionsBuilder trackingRegionsBuilder_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 23 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

Constructor & Destructor Documentation

◆ PixelInactiveAreaTrackingRegionsSeedingLayersProducer()

PixelInactiveAreaTrackingRegionsSeedingLayersProducer::PixelInactiveAreaTrackingRegionsSeedingLayersProducer ( const edm::ParameterSet iConfig)

Definition at line 39 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

41  : seedingLayerSetsBuilder_(iConfig, consumesCollector()),
42  origins_(iConfig.getParameter<edm::ParameterSet>("RegionPSet"), consumesCollector()),
43  inactiveAreaFinder_(iConfig,
46  consumesCollector()),
47  trackingRegionsBuilder_(iConfig.getParameter<edm::ParameterSet>("RegionPSet"), consumesCollector()) {
48  produces<SeedingLayerSetsHits>();
49  produces<TrackingRegionsSeedingLayerSets>();
50 }

◆ ~PixelInactiveAreaTrackingRegionsSeedingLayersProducer()

PixelInactiveAreaTrackingRegionsSeedingLayersProducer::~PixelInactiveAreaTrackingRegionsSeedingLayersProducer ( )
overridedefault

Member Function Documentation

◆ fillDescriptions()

void PixelInactiveAreaTrackingRegionsSeedingLayersProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

◆ produce()

void PixelInactiveAreaTrackingRegionsSeedingLayersProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 67 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

67  {
68  auto orphanHandle = iEvent.put(seedingLayerSetsBuilder_.hits(iEvent, iSetup));
69  const SeedingLayerSetsHits* seedingLayers = orphanHandle.product();
70 
71  auto regions = std::make_unique<TrackingRegionsSeedingLayerSets>(seedingLayers);
72 
73  const auto origins = origins_.origins(iEvent);
74  const auto builder = trackingRegionsBuilder_.beginEvent(iEvent);
75 
76  const auto allAreas = inactiveAreaFinder_.inactiveAreas(iEvent, iSetup);
77  for (const auto& origin : origins) {
78  auto areasLayerSets = allAreas.areasAndLayerSets(origin.first, origin.second); // point, half length in z
79  LogTrace("PixelInactiveAreaTrackingRegionsSeedingLayersProducer")
80  << "Origin " << origin.first.x() << "," << origin.first.y() << "," << origin.first.z() << " z half lengh "
81  << origin.second;
82  for (auto& areasLayerSet : areasLayerSets) {
83  auto region = builder.region(origin, areasLayerSet.first);
84  if (!region)
85  continue;
86 #ifdef EDM_ML_DEBUG
87  auto etaPhiRegion = dynamic_cast<const RectangularEtaPhiTrackingRegion*>(region.get());
88  std::stringstream ss;
89  for (const auto& ind : areasLayerSet.second) {
90  ss << ind << ",";
91  }
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();
97 #endif
98 
99  regions->emplace_back(std::move(region), std::move(areasLayerSet.second));
100  }
101  }
102 
103  iEvent.put(std::move(regions));
104 }

References PixelInactiveAreaFinder::InactiveAreas::areasAndLayerSets(), AreaSeededTrackingRegionsBuilder::beginEvent(), SeedingLayerSetsBuilder::hits(), iEvent, inactiveAreaFinder_, PixelInactiveAreaFinder::inactiveAreas(), LogTrace, eostools::move(), VertexBeamspotOrigins::origins(), origins_, HLT_FULL_cff::region, HLT_FULL_cff::seedingLayers, seedingLayerSetsBuilder_, contentValuesCheck::ss, and trackingRegionsBuilder_.

Member Data Documentation

◆ inactiveAreaFinder_

PixelInactiveAreaFinder PixelInactiveAreaTrackingRegionsSeedingLayersProducer::inactiveAreaFinder_
private

Definition at line 35 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

Referenced by produce().

◆ origins_

VertexBeamspotOrigins PixelInactiveAreaTrackingRegionsSeedingLayersProducer::origins_
private

Definition at line 34 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

Referenced by produce().

◆ seedingLayerSetsBuilder_

SeedingLayerSetsBuilder PixelInactiveAreaTrackingRegionsSeedingLayersProducer::seedingLayerSetsBuilder_
private

Definition at line 33 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

Referenced by produce().

◆ trackingRegionsBuilder_

AreaSeededTrackingRegionsBuilder PixelInactiveAreaTrackingRegionsSeedingLayersProducer::trackingRegionsBuilder_
private

Definition at line 36 of file PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc.

Referenced by produce().

VertexBeamspotOrigins::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
Definition: VertexBeamspotOrigins.cc:38
HLT_FULL_cff.seedingLayers
seedingLayers
Definition: HLT_FULL_cff.py:9861
AreaSeededTrackingRegionsBuilder::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc)
Definition: AreaSeededTrackingRegionsBuilder.cc:36
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SeedingLayerSetsHits
Definition: SeedingLayerSetsHits.h:18
PixelInactiveAreaTrackingRegionsSeedingLayersProducer::trackingRegionsBuilder_
AreaSeededTrackingRegionsBuilder trackingRegionsBuilder_
Definition: PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc:36
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
SeedingLayerSetsBuilder::hits
std::unique_ptr< SeedingLayerSetsHits > hits(const edm::Event &ev, const edm::EventSetup &es)
Definition: SeedingLayerSetsBuilder.cc:364
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
PixelInactiveAreaTrackingRegionsSeedingLayersProducer::seedingLayerSetsBuilder_
SeedingLayerSetsBuilder seedingLayerSetsBuilder_
Definition: PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc:33
PixelInactiveAreaFinder::inactiveAreas
InactiveAreas inactiveAreas(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: PixelInactiveAreaFinder.cc:554
SeedingLayerSetsBuilder::seedingLayerSetsLooper
SeedingLayerSetsLooper seedingLayerSetsLooper() const
Definition: SeedingLayerSetsBuilder.h:50
PixelInactiveAreaFinder::InactiveAreas::areasAndLayerSets
std::vector< std::pair< VecArray2< Area >, std::vector< LayerSetIndex > > > areasAndLayerSets(const GlobalPoint &point, float zwidth) const
Definition: PixelInactiveAreaFinder.cc:373
PixelInactiveAreaFinder::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc)
Definition: PixelInactiveAreaFinder.cc:541
PixelInactiveAreaTrackingRegionsSeedingLayersProducer::origins_
VertexBeamspotOrigins origins_
Definition: PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc:34
edm::ParameterSet
Definition: ParameterSet.h:47
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88286
iEvent
int iEvent
Definition: GenABIO.cc:224
AreaSeededTrackingRegionsBuilder::beginEvent
Builder beginEvent(const edm::Event &e) const
Definition: AreaSeededTrackingRegionsBuilder.cc:50
SeedingLayerSetsBuilder::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc)
Definition: SeedingLayerSetsBuilder.cc:244
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
SeedingLayerSetsBuilder::layers
std::vector< SeedingLayerId > layers() const
Definition: SeedingLayerSetsBuilder.cc:355
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:78
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
VertexBeamspotOrigins::origins
Origins origins(const edm::Event &iEvent) const
Definition: VertexBeamspotOrigins.cc:53
PixelInactiveAreaTrackingRegionsSeedingLayersProducer::inactiveAreaFinder_
PixelInactiveAreaFinder inactiveAreaFinder_
Definition: PixelInactiveAreaTrackingRegionsSeedingLayersProducer.cc:35