Go to the documentation of this file.
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();
121 sums += dynamic_cast<const RPCGeometry*>(
geometry_)->roll(
d)->strip(lp);
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)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
const TrackingGeometry * geometry_
void match(const SimTrack &t, const SimVertex &v)
do the matching
std::map< unsigned int, edm::PSimHitContainer > detid_to_hits_
RPCSimHitMatcher(const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC)
GlobalPoint simHitsMeanPosition(const edm::PSimHitContainer &sim_hits) const
Log< level::Info, false > LogInfo
edm::PSimHitContainer simHits_
std::set< unsigned int > chamberIds(int type=MuonHitHelper::RPC_ALL) const
edm::ParameterSet simHitPSet_
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
std::vector< unsigned > track_ids_
void match(const SimTrack &t, const SimVertex &v)
do the matching
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
static int toRPCType(int re, int st, int ri)
float simHitsMeanStrip(const edm::PSimHitContainer &sim_hits) const
std::map< unsigned int, edm::PSimHitContainer > chamber_to_hits_
edm::EDGetTokenT< edm::PSimHitContainer > simHitInput_
bool getData(T &iHolder) const
const edm::PSimHitContainer & hitsInDetId(unsigned int) const
void matchSimHitsToSimTrack()
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > geomToken_
bool hitStation(int st) const
T getParameter(std::string const &) const
const edm::PSimHitContainer & hitsInChamber(unsigned int) const
Abs< T >::type abs(const T &t)
std::vector< PSimHit > PSimHitContainer
edm::PSimHitContainer hits_
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
initialize the event
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
std::set< unsigned int > detIds(int type=MuonHitHelper::RPC_ALL) const
ParameterSet const & getParameterSet(std::string const &) const