1 #ifndef TrackingRegionsFromBeamSpotAndL2Tau_h
2 #define TrackingRegionsFromBeamSpotAndL2Tau_h
31 edm::LogInfo (
"TrackingRegionsFromBeamSpotAndL2Tau") <<
"Enter the TrackingRegionsFromBeamSpotAndL2Tau";
52 if (regionPSet.
exists(
"measurementTrackerName"))
55 if (regionPSet.
exists(
"whereToUseMeasurementTracker"))
65 std::vector<TrackingRegion* >
result;
70 if(!bsHandle.
isValid())
return result;
77 size_t n_objects = objects->size();
78 if (n_objects == 0)
return result;
84 for (
size_t i =0;
i < n_objects && n_regions <
m_jetMaxN; ++
i)
104 result.push_back(etaphiRegion);
virtual ~TrackingRegionsFromBeamSpotAndL2Tau()
edm::EDGetTokenT< reco::BeamSpot > token_beamSpot
T getParameter(std::string const &) const
double z0() const
z coordinate
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual float eta() const =0
momentum pseudorapidity
bool exists(std::string const ¶meterName) const
checks if a parameter exists
float m_whereToUseMeasurementTracker
std::string m_measurementTrackerName
edm::EDGetTokenT< reco::CandidateView > token_jet
virtual Vector momentum() const =0
spatial momentum vector
virtual float pt() const =0
transverse momentum
virtual std::vector< TrackingRegion * > regions(const edm::Event &e, const edm::EventSetup &es) const
Abs< T >::type abs(const T &t)
double y0() const
y coordinate
TrackingRegionsFromBeamSpotAndL2Tau(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
double x0() const
x coordinate