45 numberOfHits1RPC_ = 0;
46 numberOfHits2RPC_ = 0;
47 numberOfHits3RPC_ = 0;
48 numberOfHits4RPC_ = 0;
54 auto const& trackingGeometry = iSetup.
getData(trackingGeometryToken_);
59 event.getByToken(input_rpchits_token_, rpcRecHits_handle);
61 if (!rpcRecHits_handle.
isValid()) {
63 edm::LogWarning(
"DataNotAvailable") <<
"JetMuonHitsIDHelper will not be run at all, this is not a RECO file.";
76 const GeomDet* gd = trackingGeometry.idToDet(detid);
78 double dR2 =
reco::deltaR(
jet.eta(),
jet.phi(),
static_cast<double>(
gp.eta()), static_cast<double>(
gp.phi()));
82 if (rpcChamberId.
station() == 1)
84 if (rpcChamberId.
station() == 2)
86 if (rpcChamberId.
station() == 3)
88 if (rpcChamberId.
station() == 4)
Base class for all types of Jets.
void calculate(const edm::Event &event, const edm::EventSetup &isetup, const reco::Jet &jet, const int iDbg=0)
C::const_iterator const_iterator
constant access iterator type
bool getData(T &iHolder) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< RPCRecHitCollection > input_rpchits_token_
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
edm::InputTag rpcRecHits_
Log< level::Warning, false > LogWarning
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::LocalCoordinateSystemTag > LocalPoint
point in local coordinate system