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

TrackingSeedCandidates candidates_
 
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 16 of file AreaSeededTrackingRegionsBuilder.h.

Member Typedef Documentation

Definition at line 18 of file AreaSeededTrackingRegionsBuilder.h.

Definition at line 19 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().

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

Definition at line 17 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.

19  : candidates_(regPSet, iC) {
20  m_extraPhi = regPSet.getParameter<double>("extraPhi");
21  m_extraEta = regPSet.getParameter<double>("extraEta");
22 
23  // RectangularEtaPhiTrackingRegion parameters:
24  m_ptMin = regPSet.getParameter<double>("ptMin");
25  m_originRadius = regPSet.getParameter<double>("originRadius");
26  m_precise = regPSet.getParameter<bool>("precise");
28  regPSet.getParameter<std::string>("whereToUseMeasurementTracker"));
29  if (m_whereToUseMeasurementTracker != RectangularEtaPhiTrackingRegion::UseMeasurementTracker::kNever) {
31  iC.consumes<MeasurementTrackerEvent>(regPSet.getParameter<edm::InputTag>("measurementTrackerName"));
32  }
33  m_searchOpt = regPSet.getParameter<bool>("searchOpt");
34 }
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 50 of file AreaSeededTrackingRegionsBuilder.cc.

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

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

50  {
51  auto builder = Builder(this);
52 
56  builder.setMeasurementTracker(hmte.product());
57  }
58  builder.setCandidates((candidates_.objects(e)));
59  return builder;
60 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:525
T const * product() const
Definition: Handle.h:69
bool isUninitialized() const
Definition: EDGetToken.h:70
Objects objects(const edm::Event &iEvent) const
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
void AreaSeededTrackingRegionsBuilder::fillDescriptions ( edm::ParameterSetDescription desc)
static

Definition at line 36 of file AreaSeededTrackingRegionsBuilder.cc.

References edm::ParameterSetDescription::add(), TrackingSeedCandidates::fillDescriptions(), HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

Member Data Documentation

TrackingSeedCandidates AreaSeededTrackingRegionsBuilder::candidates_
private

Definition at line 105 of file AreaSeededTrackingRegionsBuilder.h.

Referenced by beginEvent().

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

Definition at line 104 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