CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
IdealMagneticFieldRecord
token_field
 
edm::EDGetTokenT
< MeasurementTrackerEvent
token_measurementTracker
 
edm::ESGetToken
< MultipleScatteringParametrisationMaker,
TrackerMultipleScatteringRecord
token_msmaker
 

Detailed Description

Definition at line 22 of file AreaSeededTrackingRegionsBuilder.h.

Member Typedef Documentation

Definition at line 24 of file AreaSeededTrackingRegionsBuilder.h.

Definition at line 25 of file AreaSeededTrackingRegionsBuilder.h.

Constructor & Destructor Documentation

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::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"));
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  if (m_precise) {
36  }
37 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_field
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
AreaSeededTrackingRegionsBuilder::~AreaSeededTrackingRegionsBuilder ( )
default

Member Function Documentation

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

Definition at line 53 of file AreaSeededTrackingRegionsBuilder.cc.

References candidates_, edm::Event::getByToken(), 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 
65  builder.setMeasurementTracker(hmte.product());
66  }
67  builder.setCandidates((candidates_.objects(e)));
68  return builder;
69 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
constexpr bool isUninitialized() const noexcept
Definition: EDGetToken.h:99
bool getData(T &iHolder) const
Definition: EventSetup.h:122
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_field
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
T const * product() const
Definition: Handle.h:70
Objects objects(const edm::Event &iEvent) const
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
void AreaSeededTrackingRegionsBuilder::fillDescriptions ( edm::ParameterSetDescription desc)
static

Definition at line 39 of file AreaSeededTrackingRegionsBuilder.cc.

References edm::ParameterSetDescription::add(), TrackingSeedCandidates::fillDescriptions(), HLT_FULL_cff::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 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ParameterSetDescription &desc)

Member Data Documentation

TrackingSeedCandidates AreaSeededTrackingRegionsBuilder::candidates_
private

Definition at line 116 of file AreaSeededTrackingRegionsBuilder.h.

Referenced by beginEvent().

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

Definition at line 115 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::ESGetToken<MagneticField, IdealMagneticFieldRecord> AreaSeededTrackingRegionsBuilder::token_field
private

Definition at line 124 of file AreaSeededTrackingRegionsBuilder.h.

Referenced by beginEvent().

edm::EDGetTokenT<MeasurementTrackerEvent> AreaSeededTrackingRegionsBuilder::token_measurementTracker
private
edm::ESGetToken<MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord> AreaSeededTrackingRegionsBuilder::token_msmaker
private