1 #ifndef Validation_MuonGEMDigis_GEMDigiMatcher_h 2 #define Validation_MuonGEMDigis_GEMDigiMatcher_h 23 #include <unordered_set> 192 std::set<unsigned int>
result;
193 for (
const auto&
p : digis) {
194 const auto&
id =
p.first;
std::map< unsigned int, GEMDigiSimLinkContainer > detid_to_simLinks_
std::set< unsigned int > chamberIdsPad(int gem_type=MuonHitHelper::GEM_ALL) const
void matchCoPadsToSimTrack(const GEMCoPadDigiCollection &)
std::set< int > stripNumbersInDetId(unsigned int) const
std::vector< GEMCoPadDigi > GEMCoPadDigiContainer
constexpr int station() const
std::map< unsigned int, GEMDigiContainer > detid_to_digis_
std::shared_ptr< GEMSimHitMatcher > muonSimHitMatcher_
void match(const SimTrack &t, const SimVertex &v)
do the matching
std::map< unsigned int, GEMDigiContainer > chamber_to_digis_
int nLayersWithPadsInSuperChamber(unsigned int) const
std::set< unsigned int > detIdsCluster(int gem_type=MuonHitHelper::GEM_ALL) const
std::set< unsigned int > superChamberIdsCoPad(int gem_type=MuonHitHelper::GEM_ALL) const
GlobalPoint getGlobalPointPad(unsigned int rawId, const GEMPadDigi &tp) const
std::map< unsigned int, GEMPadDigiClusterContainer > detid_to_clusters_
edm::Handle< GEMCoPadDigiCollection > gemCoPadsH_
std::vector< GEMDigiSimLink > GEMDigiSimLinkContainer
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > geomToken_
std::set< unsigned int > superChamberIdsDigi(int gem_type=MuonHitHelper::GEM_ALL) const
const GEMPadDigiContainer & padsInChamber(unsigned int) const
edm::EDGetTokenT< GEMCoPadDigiCollection > gemCoPadToken_
void matchPadsToSimTrack(const GEMPadDigiCollection &)
int nLayersWithClustersInSuperChamber(unsigned int) const
GEMDigiMatcher(edm::ParameterSet const &iPS, edm::ConsumesCollector &&iC)
int nCoPads() const
How many coincidence pads in GEM did this simtrack get in total?
int nLayersWithDigisInSuperChamber(unsigned int) const
std::set< unsigned int > detIdsDigi(int gem_type=MuonHitHelper::GEM_ALL) const
GlobalPoint getGlobalPointDigi(unsigned int rawId, const GEMDigi &d) const
const GEMPadDigiContainer & padsInSuperChamber(unsigned int) const
void matchClustersToSimTrack(const GEMPadDigiClusterCollection &)
std::set< int > partitionNumbersWithCoPads() const
GEMDigiContainer no_gem_digis_
static int toGEMType(int st, int ri)
const GEMCoPadDigiContainer & coPadsInSuperChamber(unsigned int) const
std::set< unsigned int > selectDetIds(const T &, int) const
edm::EDGetTokenT< edm::DetSetVector< GEMDigiSimLink > > gemSimLinkToken_
std::set< unsigned int > detIdsPad(int gem_type=MuonHitHelper::GEM_ALL) const
edm::Handle< GEMDigiCollection > gemDigisH_
GEMCoPadDigiContainer no_gem_copads_
std::vector< GEMDigi > GEMDigiContainer
std::vector< GEMPadDigiCluster > GEMPadDigiClusterContainer
void matchDigisToSimTrack(const GEMDigiCollection &)
const GEMPadDigiClusterContainer & clustersInSuperChamber(unsigned int) const
edm::EDGetTokenT< GEMPadDigiClusterCollection > gemClusterToken_
const GEMPadDigiContainer & padsInDetId(unsigned int) const
std::map< unsigned int, GEMDigiContainer > superchamber_to_digis_
std::shared_ptr< GEMSimHitMatcher > muonSimHitMatcher()
const GEMGeometry * gemGeometry_
std::set< unsigned int > superChamberIdsCluster(int gem_type=MuonHitHelper::GEM_ALL) const
int extrapolateHsfromGEMStrip(unsigned int, int) const
std::map< unsigned int, GEMPadDigiContainer > chamber_to_pads_
const GEMDigiSimLinkContainer & simLinksInDetId(unsigned int) const
constexpr int ring() const
const std::map< unsigned int, GEMPadDigiContainer > allPads() const
const GEMDigiContainer & digisInSuperChamber(unsigned int) const
int nPads() const
How many pads in GEM did this simtrack get in total?
const GEMDigiContainer & digisInChamber(unsigned int) const
std::vector< GEMPadDigi > GEMPadDigiContainer
edm::Handle< GEMPadDigiCollection > gemPadsH_
std::set< unsigned int > chamberIdsDigi(int gem_type=MuonHitHelper::GEM_ALL) const
std::map< unsigned int, GEMPadDigiContainer > superchamber_to_pads_
std::set< unsigned int > chamberIdsCluster(int gem_type=MuonHitHelper::GEM_ALL) const
std::map< unsigned int, GEMPadDigiContainer > detid_to_pads_
std::map< unsigned int, GEMCoPadDigiContainer > superchamber_to_copads_
std::map< unsigned int, GEMPadDigiClusterContainer > superchamber_to_clusters_
void matchDigisSLToSimTrack(const edm::DetSetVector< GEMDigiSimLink > &)
edm::Handle< GEMPadDigiClusterCollection > gemClustersH_
std::set< unsigned int > detIdsSimLink(int gem_type=MuonHitHelper::GEM_ALL) const
const GEMDigiContainer & digisInDetId(unsigned int) const
std::map< unsigned int, GEMPadDigiClusterContainer > chamber_to_clusters_
GEMPadDigiClusterContainer no_gem_clusters_
GEMPadDigiContainer no_gem_pads_
void matchPadsInDetId(const GEMDetId &simhitId, const GEMPadDigiCollection &)
std::set< int > padNumbersInDetId(unsigned int) const
const GEMPadDigiClusterContainer & clustersInChamber(unsigned int) const
std::set< int > partitionNumbers() const
edm::EDGetTokenT< GEMDigiCollection > gemDigiToken_
std::set< unsigned int > superChamberIdsPad(int gem_type=MuonHitHelper::GEM_ALL) const
const GEMPadDigiClusterContainer & clustersInDetId(unsigned int) const
int extrapolateHsfromGEMPad(unsigned int, int) const
GEMDigiSimLinkContainer no_gem_simLinks_
void init(const edm::Event &e, const edm::EventSetup &eventSetup)
edm::Handle< edm::DetSetVector< GEMDigiSimLink > > gemDigisSLH_
edm::EDGetTokenT< GEMPadDigiCollection > gemPadToken_