35 for (
const auto&
id : ch_ids) {
39 << simhits_gp.eta() <<
" phi " << simhits_gp.phi() <<
" nCh " 54 if (
h.trackId() != track_id)
56 int pdgid =
h.particleType();
72 std::set<unsigned int>
result;
74 const auto&
id =
p.first;
86 std::set<unsigned int>
result;
88 const auto&
id =
p.first;
113 if (sim_hits.empty())
118 for (
const auto&
h : sim_hits) {
120 const auto&
d =
h.detUnitId();
132 for (
const auto& roll : dynamic_cast<const RPCGeometry*>(
geometry_)->
chamber(
id)->rolls()) {
133 int max_nstrips = roll->nstrips();
136 int central_strip =
static_cast<int>(roll->topology().channel(lp));
137 int smin = central_strip - margin_n_strips;
138 smin = (smin > 0) ? smin : 1;
139 int smax = central_strip + margin_n_strips;
140 smax = (smax <= max_nstrips) ? smax : max_nstrips;
141 for (
int ss = smin;
ss <= smax; ++
ss)
const edm::PSimHitContainer & hitsInChamber(unsigned int) const
T getParameter(std::string const &) const
const TrackingGeometry * geometry_
edm::PSimHitContainer hits_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::map< unsigned int, edm::PSimHitContainer > detid_to_hits_
GlobalPoint simHitsMeanPosition(const edm::PSimHitContainer &sim_hits) const
ParameterSet const & getParameterSet(std::string const &) const
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
std::vector< unsigned > track_ids_
edm::PSimHitContainer simHits_
edm::ParameterSet simHitPSet_
std::map< unsigned int, edm::PSimHitContainer > chamber_to_hits_
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
Abs< T >::type abs(const T &t)
std::set< unsigned int > chamberIds(int type=MuonHitHelper::RPC_ALL) const
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
bool hitStation(int st) const
Log< level::Info, false > LogInfo
void match(const SimTrack &t, const SimVertex &v)
do the matching
edm::EDGetTokenT< edm::PSimHitContainer > simHitInput_
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
const edm::PSimHitContainer & hitsInDetId(unsigned int) const
void matchSimHitsToSimTrack()
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
std::vector< PSimHit > PSimHitContainer
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
static int toRPCType(int re, int st, int ri)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > geomToken_
void match(const SimTrack &t, const SimVertex &v)
do the matching