1 #ifndef TrackingRegionsFromBeamSpotAndL2Tau_h 2 #define TrackingRegionsFromBeamSpotAndL2Tau_h 28 edm::LogInfo(
"TrackingRegionsFromBeamSpotAndL2Tau") <<
"Enter the TrackingRegionsFromBeamSpotAndL2Tau";
44 if (regionPSet.
exists(
"searchOpt"))
66 desc.add<
double>(
"ptMin", 5.0);
67 desc.add<
double>(
"originRadius", 0.2);
68 desc.add<
double>(
"originHalfLength", 24.0);
69 desc.add<
double>(
"deltaEta", 0.3);
70 desc.add<
double>(
"deltaPhi", 0.3);
72 desc.add<
double>(
"JetMinPt", 25.0);
73 desc.add<
double>(
"JetMaxEta", 2.1);
74 desc.add<
int>(
"JetMaxN", 10);
76 desc.add<
bool>(
"precise",
true);
84 descriptions.
add(
"trackingRegionsFromBeamSpotAndL2Tau", descRegion);
88 std::vector<std::unique_ptr<TrackingRegion> >
result;
101 size_t n_objects =
objects->size();
122 for (
size_t i = 0;
i < n_objects && n_regions <
m_jetMaxN; ++
i) {
129 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(direction,
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
T getParameter(std::string const &) const
edm::ESGetToken< MultipleScatteringParametrisationMaker, TrackerMultipleScatteringRecord > token_msmaker
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
T const * product() const
constexpr bool isUninitialized() const noexcept
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
edm::EDGetTokenT< reco::CandidateView > token_jet
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
Abs< T >::type abs(const T &t)
bool getData(T &iHolder) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > token_field
Log< level::Info, false > LogInfo
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~TrackingRegionsFromBeamSpotAndL2Tau() override
TrackingRegionsFromBeamSpotAndL2Tau(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)