1 #ifndef TrackingRegionsFromBeamSpotAndL2Tau_h 2 #define TrackingRegionsFromBeamSpotAndL2Tau_h 33 edm::LogInfo (
"TrackingRegionsFromBeamSpotAndL2Tau") <<
"Enter the TrackingRegionsFromBeamSpotAndL2Tau";
63 desc.
add<
double>(
"ptMin", 5.0);
64 desc.
add<
double>(
"originRadius", 0.2);
65 desc.
add<
double>(
"originHalfLength", 24.0);
66 desc.
add<
double>(
"deltaEta", 0.3);
67 desc.
add<
double>(
"deltaPhi", 0.3);
69 desc.
add<
double>(
"JetMinPt", 25.0);
70 desc.
add<
double>(
"JetMaxEta", 2.1);
71 desc.
add<
int>(
"JetMaxN", 10);
73 desc.
add<
bool>(
"precise",
true);
81 descriptions.
add(
"trackingRegionsFromBeamSpotAndL2Tau", descRegion);
86 std::vector<std::unique_ptr<TrackingRegion> >
result;
91 if(!bsHandle.
isValid())
return result;
98 size_t n_objects = objects->size();
99 if (n_objects == 0)
return result;
105 measurementTracker = hmte.
product();
112 for (
size_t i =0;
i < n_objects && n_regions <
m_jetMaxN; ++
i)
119 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
T getParameter(std::string const &) const
double z0() const
z coordinate
RectangularEtaPhiTrackingRegion::UseMeasurementTracker m_whereToUseMeasurementTracker
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< MeasurementTrackerEvent > token_measurementTracker
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
static UseMeasurementTracker stringToUseMeasurementTracker(const std::string &name)
edm::EDGetTokenT< reco::CandidateView > token_jet
Abs< T >::type abs(const T &t)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
virtual double eta() const =0
momentum pseudorapidity
T const * product() const
virtual double pt() const =0
transverse momentum
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual Vector momentum() const =0
spatial momentum vector
~TrackingRegionsFromBeamSpotAndL2Tau() override
double y0() const
y coordinate
bool isUninitialized() const
TrackingRegionsFromBeamSpotAndL2Tau(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
double x0() const
x coordinate