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 edm::EventSetup &es) 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::ESGetToken< MagneticField, IdealMagneticFieldRecordtoken_field
 
edm::EDGetTokenT< MeasurementTrackerEventtoken_measurementTracker
 
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecordtoken_msmaker
 

Detailed Description

Definition at line 22 of file AreaSeededTrackingRegionsBuilder.h.

Member Typedef Documentation

◆ Origin

Definition at line 24 of file AreaSeededTrackingRegionsBuilder.h.

◆ Origins

Definition at line 25 of file AreaSeededTrackingRegionsBuilder.h.

Constructor & Destructor Documentation

◆ AreaSeededTrackingRegionsBuilder() [1/2]

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

Definition at line 105 of file AreaSeededTrackingRegionsBuilder.h.

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

◆ AreaSeededTrackingRegionsBuilder() [2/2]

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

Definition at line 17 of file AreaSeededTrackingRegionsBuilder.cc.

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

19  : candidates_(regPSet, iC), token_field(iC.esConsumes()) {
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"));
31  iC.consumes<MeasurementTrackerEvent>(regPSet.getParameter<edm::InputTag>("measurementTrackerName"));
32  }
33  m_searchOpt = regPSet.getParameter<bool>("searchOpt");
34  if (m_precise) {
36  }
37 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_field
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker

◆ ~AreaSeededTrackingRegionsBuilder()

AreaSeededTrackingRegionsBuilder::~AreaSeededTrackingRegionsBuilder ( )
default

Member Function Documentation

◆ beginEvent()

AreaSeededTrackingRegionsBuilder::Builder AreaSeededTrackingRegionsBuilder::beginEvent ( const edm::Event e,
const edm::EventSetup es 
) const

Definition at line 53 of file AreaSeededTrackingRegionsBuilder.cc.

References candidates_, MillePedeFileConverter_cfg::e, edm::EventSetup::getData(), edm::EDGetTokenT< T >::isUninitialized(), m_precise, TrackingSeedCandidates::objects(), edm::Handle< T >::product(), token_field, token_measurementTracker, and token_msmaker.

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

54  {
55  const auto& field = es.getData(token_field);
56  const MultipleScatteringParametrisationMaker* msmaker = nullptr;
57  if (m_precise) {
58  msmaker = &es.getData(token_msmaker);
59  }
60  auto builder = Builder(this, &field, msmaker);
61 
64  e.getByToken(token_measurementTracker, hmte);
65  builder.setMeasurementTracker(hmte.product());
66  }
67  builder.setCandidates((candidates_.objects(e)));
68  return builder;
69 }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
T const * product() const
Definition: Handle.h:70
constexpr bool isUninitialized() const noexcept
Definition: EDGetToken.h:98
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_field
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
Objects objects(const edm::Event &iEvent) const

◆ fillDescriptions()

void AreaSeededTrackingRegionsBuilder::fillDescriptions ( edm::ParameterSetDescription desc)
static

Definition at line 39 of file AreaSeededTrackingRegionsBuilder.cc.

References submitPVResolutionJobs::desc, TrackingSeedCandidates::fillDescriptions(), ProducerED_cfi::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

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

39  {
40  desc.add<double>("extraPhi", 0.);
41  desc.add<double>("extraEta", 0.);
42 
43  desc.add<double>("ptMin", 0.9);
44  desc.add<double>("originRadius", 0.2);
45  desc.add<bool>("precise", true);
46 
47  desc.add<std::string>("whereToUseMeasurementTracker", "Never");
48  desc.add<edm::InputTag>("measurementTrackerName", edm::InputTag(""));
50  desc.add<bool>("searchOpt", false);
51 }
static void fillDescriptions(edm::ParameterSetDescription &desc)

Member Data Documentation

◆ candidates_

TrackingSeedCandidates AreaSeededTrackingRegionsBuilder::candidates_
private

Definition at line 116 of file AreaSeededTrackingRegionsBuilder.h.

Referenced by beginEvent().

◆ m_areas

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

Definition at line 115 of file AreaSeededTrackingRegionsBuilder.h.

◆ m_extraEta

float AreaSeededTrackingRegionsBuilder::m_extraEta
private

◆ m_extraPhi

float AreaSeededTrackingRegionsBuilder::m_extraPhi
private

◆ m_originRadius

float AreaSeededTrackingRegionsBuilder::m_originRadius
private

◆ m_precise

bool AreaSeededTrackingRegionsBuilder::m_precise
private

◆ m_ptMin

float AreaSeededTrackingRegionsBuilder::m_ptMin
private

◆ m_searchOpt

bool AreaSeededTrackingRegionsBuilder::m_searchOpt
private

◆ m_whereToUseMeasurementTracker

RectangularEtaPhiTrackingRegion::UseMeasurementTracker AreaSeededTrackingRegionsBuilder::m_whereToUseMeasurementTracker
private

◆ token_field

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> AreaSeededTrackingRegionsBuilder::token_field
private

Definition at line 124 of file AreaSeededTrackingRegionsBuilder.h.

Referenced by beginEvent().

◆ token_measurementTracker

edm::EDGetTokenT<MeasurementTrackerEvent> AreaSeededTrackingRegionsBuilder::token_measurementTracker
private

◆ token_msmaker

edm::ESGetToken<MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord> AreaSeededTrackingRegionsBuilder::token_msmaker
private