CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
AreaSeededTrackingRegionsBuilder Class Reference

#include <AreaSeededTrackingRegionsBuilder.h>

Classes

class  Area
 
class  Builder
 

Public Types

using Origin = std::pair< GlobalPoint, float >
 
using Origins = std::vector< Origin >
 

Public Member Functions

 AreaSeededTrackingRegionsBuilder (const edm::ParameterSet &regPSet, edm::ConsumesCollector &&iC)
 
 AreaSeededTrackingRegionsBuilder (const edm::ParameterSet &regPSet, edm::ConsumesCollector &iC)
 
Builder beginEvent (const edm::Event &e) const
 
 ~AreaSeededTrackingRegionsBuilder ()=default
 

Static Public Member Functions

static void fillDescriptions (edm::ParameterSetDescription &desc)
 

Private Attributes

std::vector< Aream_areas
 
float m_extraEta
 
float m_extraPhi
 
float m_originRadius
 
bool m_precise
 
float m_ptMin
 
bool m_searchOpt
 
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
 
edm::EDGetTokenT< MeasurementTrackerEventtoken_measurementTracker
 

Detailed Description

Definition at line 15 of file AreaSeededTrackingRegionsBuilder.h.

Member Typedef Documentation

Definition at line 17 of file AreaSeededTrackingRegionsBuilder.h.

Definition at line 18 of file AreaSeededTrackingRegionsBuilder.h.

Constructor & Destructor Documentation

AreaSeededTrackingRegionsBuilder::AreaSeededTrackingRegionsBuilder ( const edm::ParameterSet regPSet,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 94 of file AreaSeededTrackingRegionsBuilder.h.

References beginEvent(), MillePedeFileConverter_cfg::e, fillDescriptions(), and ~AreaSeededTrackingRegionsBuilder().

94 : AreaSeededTrackingRegionsBuilder(regPSet, iC) {}
AreaSeededTrackingRegionsBuilder(const edm::ParameterSet &regPSet, edm::ConsumesCollector &&iC)
AreaSeededTrackingRegionsBuilder::AreaSeededTrackingRegionsBuilder ( const edm::ParameterSet regPSet,
edm::ConsumesCollector iC 
)

Definition at line 18 of file AreaSeededTrackingRegionsBuilder.cc.

References edm::ConsumesCollector::consumes(), edm::ParameterSet::getParameter(), RectangularEtaPhiTrackingRegion::kNever, m_extraEta, m_extraPhi, m_originRadius, m_precise, m_ptMin, m_searchOpt, m_whereToUseMeasurementTracker, AlCaHLTBitMon_QueryRunRegistry::string, RectangularEtaPhiTrackingRegion::stringToUseMeasurementTracker(), and token_measurementTracker.

18  {
19  m_extraPhi = regPSet.getParameter<double>("extraPhi");
20  m_extraEta = regPSet.getParameter<double>("extraEta");
21 
22  // RectangularEtaPhiTrackingRegion parameters:
23  m_ptMin = regPSet.getParameter<double>("ptMin");
24  m_originRadius = regPSet.getParameter<double>("originRadius");
25  m_precise = regPSet.getParameter<bool>("precise");
27  if(m_whereToUseMeasurementTracker != RectangularEtaPhiTrackingRegion::UseMeasurementTracker::kNever) {
29  }
30  m_searchOpt = regPSet.getParameter<bool>("searchOpt");
31 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
AreaSeededTrackingRegionsBuilder::~AreaSeededTrackingRegionsBuilder ( )
default

Member Function Documentation

AreaSeededTrackingRegionsBuilder::Builder AreaSeededTrackingRegionsBuilder::beginEvent ( const edm::Event e) const

Definition at line 47 of file AreaSeededTrackingRegionsBuilder.cc.

References edm::Event::getByToken(), edm::EDGetTokenT< T >::isUninitialized(), edm::Handle< T >::product(), and token_measurementTracker.

Referenced by AreaSeededTrackingRegionsBuilder(), PixelInactiveAreaTrackingRegionsSeedingLayersProducer::produce(), and AreaSeededTrackingRegionsProducer::regions().

47  {
48  auto builder = Builder(this);
49 
53  builder.setMeasurementTracker(hmte.product());
54  }
55 
56  return builder;
57 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
T const * product() const
Definition: Handle.h:81
bool isUninitialized() const
Definition: EDGetToken.h:73
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
void AreaSeededTrackingRegionsBuilder::fillDescriptions ( edm::ParameterSetDescription desc)
static

Definition at line 33 of file AreaSeededTrackingRegionsBuilder.cc.

References edm::ParameterSetDescription::add(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by AreaSeededTrackingRegionsBuilder(), PixelInactiveAreaTrackingRegionsSeedingLayersProducer::fillDescriptions(), and AreaSeededTrackingRegionsProducer::fillDescriptions().

33  {
34  desc.add<double>("extraPhi", 0.);
35  desc.add<double>("extraEta", 0.);
36 
37  desc.add<double>("ptMin", 0.9);
38  desc.add<double>("originRadius", 0.2);
39  desc.add<bool>("precise", true);
40 
41  desc.add<std::string>("whereToUseMeasurementTracker", "Never");
42  desc.add<edm::InputTag>("measurementTrackerName", edm::InputTag(""));
43 
44  desc.add<bool>("searchOpt", false);
45 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)

Member Data Documentation

std::vector<Area> AreaSeededTrackingRegionsBuilder::m_areas
private

Definition at line 103 of file AreaSeededTrackingRegionsBuilder.h.

float AreaSeededTrackingRegionsBuilder::m_extraEta
private
float AreaSeededTrackingRegionsBuilder::m_extraPhi
private
float AreaSeededTrackingRegionsBuilder::m_originRadius
private
bool AreaSeededTrackingRegionsBuilder::m_precise
private
float AreaSeededTrackingRegionsBuilder::m_ptMin
private
bool AreaSeededTrackingRegionsBuilder::m_searchOpt
private
RectangularEtaPhiTrackingRegion::UseMeasurementTracker AreaSeededTrackingRegionsBuilder::m_whereToUseMeasurementTracker
private
edm::EDGetTokenT<MeasurementTrackerEvent> AreaSeededTrackingRegionsBuilder::token_measurementTracker
private