|
|
Go to the documentation of this file. 1 #ifndef RecoTracker_TkTrackingRegions_AreaSeededTrackingRegionsProducer_h
2 #define RecoTracker_TkTrackingRegions_AreaSeededTrackingRegionsProducer_h
56 for (
const auto&
area : regPSet.
getParameter<std::vector<edm::ParameterSet> >(
"areas")) {
57 m_areas.emplace_back(
area.getParameter<
double>(
"rmin"),
58 area.getParameter<
double>(
"rmax"),
59 area.getParameter<
double>(
"phimin"),
60 area.getParameter<
double>(
"phimax"),
61 area.getParameter<
double>(
"zmin"),
62 area.getParameter<
double>(
"zmax"));
65 throw cms::Exception(
"Configuration") <<
"Empty 'areas' parameter.";
74 descAreas.
add<
double>(
"rmin", 0.0);
75 descAreas.
add<
double>(
"rmax", 0.0);
76 descAreas.
add<
double>(
"zmin", 0.0);
77 descAreas.
add<
double>(
"zmax", 0.0);
78 descAreas.
add<
double>(
"phimin", 0.0);
79 descAreas.
add<
double>(
"phimax", 0.0);
80 std::vector<edm::ParameterSet> vDefaults;
81 desc.
addVPSet(
"areas", descAreas, vDefaults);
90 descriptions.
add(
"areaSeededTrackingRegion", descRegion);
102 std::vector<AreaSeededTrackingRegionsBuilder::Area>
m_areas;
AreaSeededTrackingRegionsBuilder m_builder
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ParameterSetDescription &desc, const std::string &defaultBeamSpot="offlineBeamSpot", const std::string &defaultVertex="firstStepPrimaryVertices", int defaultMaxVertices=-1)
AreaSeededTrackingRegionsProducer(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
static void fillDescriptions(edm::ParameterSetDescription &desc)
VertexBeamspotOrigins m_origins
~AreaSeededTrackingRegionsProducer()=default
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< std::unique_ptr< TrackingRegion > > regions(const Origins &origins, const std::vector< Area > &areas) const
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
Builder beginEvent(const edm::Event &e) const
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< AreaSeededTrackingRegionsBuilder::Area > m_areas
Origins origins(const edm::Event &iEvent) const