|
|
#include <GEMDigiMatcher.h>
|
std::map< unsigned int, GEMPadDigiClusterContainer > | chamber_to_clusters_ |
|
std::map< unsigned int, GEMDigiContainer > | chamber_to_digis_ |
|
std::map< unsigned int, GEMPadDigiContainer > | chamber_to_pads_ |
|
std::map< unsigned int, GEMPadDigiClusterContainer > | detid_to_clusters_ |
|
std::map< unsigned int, GEMDigiContainer > | detid_to_digis_ |
|
std::map< unsigned int, GEMPadDigiContainer > | detid_to_pads_ |
|
std::map< unsigned int, GEMDigiSimLinkContainer > | detid_to_simLinks_ |
|
bool | discardEleHits_ |
|
edm::Handle< GEMPadDigiClusterCollection > | gemClustersH_ |
|
edm::EDGetTokenT< GEMPadDigiClusterCollection > | gemClusterToken_ |
|
edm::Handle< GEMCoPadDigiCollection > | gemCoPadsH_ |
|
edm::EDGetTokenT< GEMCoPadDigiCollection > | gemCoPadToken_ |
|
edm::Handle< GEMDigiCollection > | gemDigisH_ |
|
edm::Handle< edm::DetSetVector< GEMDigiSimLink > > | gemDigisSLH_ |
|
edm::EDGetTokenT< GEMDigiCollection > | gemDigiToken_ |
|
const GEMGeometry * | gemGeometry_ |
|
edm::Handle< GEMPadDigiCollection > | gemPadsH_ |
|
edm::EDGetTokenT< GEMPadDigiCollection > | gemPadToken_ |
|
edm::EDGetTokenT< edm::DetSetVector< GEMDigiSimLink > > | gemSimLinkToken_ |
|
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > | geomToken_ |
|
int | matchDeltaStrip_ |
|
bool | matchToSimLink_ |
|
int | maxBXCluster_ |
|
int | maxBXCoPad_ |
|
int | maxBXDigi_ |
|
int | maxBXPad_ |
|
int | minBXCluster_ |
|
int | minBXCoPad_ |
|
int | minBXDigi_ |
|
int | minBXPad_ |
|
std::shared_ptr< GEMSimHitMatcher > | muonSimHitMatcher_ |
|
GEMPadDigiClusterContainer | no_gem_clusters_ |
|
GEMCoPadDigiContainer | no_gem_copads_ |
|
GEMDigiContainer | no_gem_digis_ |
|
GEMPadDigiContainer | no_gem_pads_ |
|
GEMDigiSimLinkContainer | no_gem_simLinks_ |
|
bool | simMuOnly_ |
|
std::map< unsigned int, GEMPadDigiClusterContainer > | superchamber_to_clusters_ |
|
std::map< unsigned int, GEMCoPadDigiContainer > | superchamber_to_copads_ |
|
std::map< unsigned int, GEMDigiContainer > | superchamber_to_digis_ |
|
std::map< unsigned int, GEMPadDigiContainer > | superchamber_to_pads_ |
|
bool | verboseCluster_ |
|
bool | verboseCoPad_ |
|
bool | verboseDigi_ |
|
bool | verbosePad_ |
|
bool | verboseSimLink_ |
|
Definition at line 31 of file GEMDigiMatcher.h.
◆ GEMDigiMatcher()
◆ ~GEMDigiMatcher()
GEMDigiMatcher::~GEMDigiMatcher |
( |
| ) |
|
|
inline |
◆ allPads()
◆ chamberIdsCluster()
◆ chamberIdsDigi()
◆ chamberIdsPad()
◆ clear()
void GEMDigiMatcher::clear |
( |
void |
| ) |
|
|
private |
◆ clustersInChamber()
◆ clustersInDetId()
◆ clustersInSuperChamber()
◆ coPadsInSuperChamber()
◆ detIdsCluster()
◆ detIdsDigi()
◆ detIdsPad()
◆ detIdsSimLink()
◆ digisInChamber()
const GEMDigiContainer & GEMDigiMatcher::digisInChamber |
( |
unsigned int |
detid | ) |
const |
◆ digisInDetId()
const GEMDigiContainer & GEMDigiMatcher::digisInDetId |
( |
unsigned int |
detid | ) |
const |
◆ digisInSuperChamber()
const GEMDigiContainer & GEMDigiMatcher::digisInSuperChamber |
( |
unsigned int |
detid | ) |
const |
◆ extrapolateHsfromGEMPad()
int GEMDigiMatcher::extrapolateHsfromGEMPad |
( |
unsigned int |
, |
|
|
int |
|
|
) |
| const |
◆ extrapolateHsfromGEMStrip()
int GEMDigiMatcher::extrapolateHsfromGEMStrip |
( |
unsigned int |
, |
|
|
int |
|
|
) |
| const |
◆ getGlobalPointDigi()
GlobalPoint GEMDigiMatcher::getGlobalPointDigi |
( |
unsigned int |
rawId, |
|
|
const GEMDigi & |
d |
|
) |
| const |
◆ getGlobalPointPad()
◆ init()
◆ match()
◆ matchClustersToSimTrack()
◆ matchCoPadsToSimTrack()
◆ matchDigisSLToSimTrack()
Definition at line 87 of file GEMDigiMatcher.cc.
89 edm::LogInfo(
"GEMDigiMatcher") <<
"Matching simtrack to GEM simlinks" << endl;
92 for (
auto itsimlink = digisSL.
begin(); itsimlink != digisSL.
end(); itsimlink++) {
93 for (
auto sl = itsimlink->data.begin(); sl != itsimlink->data.end(); ++sl) {
98 if (detids.find(p_id.rawId()) == detids.end())
106 edm::LogInfo(
"GEMDigiMatcher") <<
"GEMDigiSimLink " << p_id <<
" " << sl->getStrip() <<
" " << sl->getBx()
107 <<
" " << sl->getEnergyLoss() <<
" " << sl->getTimeOfFlight() <<
" "
108 << sl->getParticleType() << std::endl;
121 if (simhit.particleType() == sl->getParticleType() and simhit.trackId() == sl->getTrackId() and
122 std::abs(simhit.energyLoss() - sl->getEnergyLoss()) < 0.001 and
123 std::abs(simhit.timeOfFlight() - sl->getTimeOfFlight()) < 0.001 and
124 simhit.entryPoint() == sl->getEntryPoint() and simhit.momentumAtEntry() == sl->getMomentumAtEntry()) {
127 edm::LogInfo(
"GEMDigiMatcher") <<
"...was matched!" << endl;
References funct::abs(), edm::DetSetVector< T >::begin(), relativeConstraints::empty, and edm::DetSetVector< T >::end().
◆ matchDigisToSimTrack()
◆ matchPadsToSimTrack()
◆ muonSimHitMatcher()
◆ nCoPads()
int GEMDigiMatcher::nCoPads |
( |
| ) |
const |
◆ nLayersWithClustersInSuperChamber()
int GEMDigiMatcher::nLayersWithClustersInSuperChamber |
( |
unsigned int |
detid | ) |
const |
Definition at line 427 of file GEMDigiMatcher.cc.
430 for (
int iLayer = 1; iLayer <= 2; iLayer++) {
431 GEMDetId ch_id(sch_id.region(), sch_id.ring(), sch_id.station(), iLayer, sch_id.chamber(), 0);
References GEMDetId::chamber(), bsc_activity_cfg::clusters, hgcalTopologyTester_cfi::layers, GEMDetId::region(), GEMDetId::ring(), and GEMDetId::station().
◆ nLayersWithDigisInSuperChamber()
int GEMDigiMatcher::nLayersWithDigisInSuperChamber |
( |
unsigned int |
detid | ) |
const |
◆ nLayersWithPadsInSuperChamber()
int GEMDigiMatcher::nLayersWithPadsInSuperChamber |
( |
unsigned int |
detid | ) |
const |
◆ nPads()
int GEMDigiMatcher::nPads |
( |
| ) |
const |
◆ padNumbersInDetId()
std::set< int > GEMDigiMatcher::padNumbersInDetId |
( |
unsigned int |
detid | ) |
const |
◆ padsInChamber()
◆ padsInDetId()
◆ padsInSuperChamber()
◆ partitionNumbers()
std::set< int > GEMDigiMatcher::partitionNumbers |
( |
| ) |
const |
◆ partitionNumbersWithCoPads()
std::set< int > GEMDigiMatcher::partitionNumbersWithCoPads |
( |
| ) |
const |
◆ selectDetIds()
template<class T >
std::set< unsigned int > GEMDigiMatcher::selectDetIds |
( |
const T & |
digis, |
|
|
int |
gem_type |
|
) |
| const |
|
private |
◆ simLinksInDetId()
◆ stripNumbersInDetId()
std::set< int > GEMDigiMatcher::stripNumbersInDetId |
( |
unsigned int |
detid | ) |
const |
◆ superChamberIdsCluster()
std::set< unsigned int > GEMDigiMatcher::superChamberIdsCluster |
( |
int |
gem_type = MuonHitHelper::GEM_ALL | ) |
const |
◆ superChamberIdsCoPad()
◆ superChamberIdsDigi()
◆ superChamberIdsPad()
◆ chamber_to_clusters_
◆ chamber_to_digis_
◆ chamber_to_pads_
◆ detid_to_clusters_
◆ detid_to_digis_
◆ detid_to_pads_
◆ detid_to_simLinks_
◆ discardEleHits_
bool GEMDigiMatcher::discardEleHits_ |
|
private |
◆ gemClustersH_
◆ gemClusterToken_
◆ gemCoPadsH_
◆ gemCoPadToken_
◆ gemDigisH_
◆ gemDigisSLH_
◆ gemDigiToken_
◆ gemGeometry_
◆ gemPadsH_
◆ gemPadToken_
◆ gemSimLinkToken_
◆ geomToken_
◆ matchDeltaStrip_
int GEMDigiMatcher::matchDeltaStrip_ |
|
private |
◆ matchToSimLink_
bool GEMDigiMatcher::matchToSimLink_ |
|
private |
◆ maxBXCluster_
int GEMDigiMatcher::maxBXCluster_ |
|
private |
◆ maxBXCoPad_
int GEMDigiMatcher::maxBXCoPad_ |
|
private |
◆ maxBXDigi_
int GEMDigiMatcher::maxBXDigi_ |
|
private |
◆ maxBXPad_
int GEMDigiMatcher::maxBXPad_ |
|
private |
◆ minBXCluster_
int GEMDigiMatcher::minBXCluster_ |
|
private |
◆ minBXCoPad_
int GEMDigiMatcher::minBXCoPad_ |
|
private |
◆ minBXDigi_
int GEMDigiMatcher::minBXDigi_ |
|
private |
◆ minBXPad_
int GEMDigiMatcher::minBXPad_ |
|
private |
◆ muonSimHitMatcher_
◆ no_gem_clusters_
◆ no_gem_copads_
◆ no_gem_digis_
◆ no_gem_pads_
◆ no_gem_simLinks_
◆ simMuOnly_
bool GEMDigiMatcher::simMuOnly_ |
|
private |
◆ superchamber_to_clusters_
◆ superchamber_to_copads_
◆ superchamber_to_digis_
◆ superchamber_to_pads_
◆ verboseCluster_
bool GEMDigiMatcher::verboseCluster_ |
|
private |
◆ verboseCoPad_
bool GEMDigiMatcher::verboseCoPad_ |
|
private |
◆ verboseDigi_
bool GEMDigiMatcher::verboseDigi_ |
|
private |
◆ verbosePad_
bool GEMDigiMatcher::verbosePad_ |
|
private |
◆ verboseSimLink_
bool GEMDigiMatcher::verboseSimLink_ |
|
private |
edm::Handle< GEMCoPadDigiCollection > gemCoPadsH_
edm::Handle< GEMPadDigiClusterCollection > gemClustersH_
std::set< unsigned int > superChamberIdsCoPad(int gem_type=MuonHitHelper::GEM_ALL) const
T const * product() const
static int toGEMType(int st, int ri)
iterator end()
Return the off-the-end iterator.
const GeomDet * idToDet(DetId) const override
edm::EDGetTokenT< GEMDigiCollection > gemDigiToken_
const GEMDigiContainer & digisInChamber(unsigned int) const
void matchDigisToSimTrack(const GEMDigiCollection &)
const GEMGeometry * gemGeometry_
iterator begin()
Return an iterator to the first DetSet.
const GEMPadDigiContainer & padsInChamber(unsigned int) const
std::map< unsigned int, GEMDigiContainer > chamber_to_digis_
std::map< unsigned int, GEMPadDigiClusterContainer > chamber_to_clusters_
edm::EDGetTokenT< edm::DetSetVector< GEMDigiSimLink > > gemSimLinkToken_
Log< level::Info, false > LogInfo
void matchCoPadsToSimTrack(const GEMCoPadDigiCollection &)
void matchPadsToSimTrack(const GEMPadDigiCollection &)
std::map< unsigned int, GEMPadDigiClusterContainer > superchamber_to_clusters_
const Plane & surface() const
The nominal surface of the GeomDet.
edm::Handle< edm::DetSetVector< GEMDigiSimLink > > gemDigisSLH_
GEMCoPadDigiContainer no_gem_copads_
std::map< unsigned int, GEMPadDigiContainer > superchamber_to_pads_
std::map< unsigned int, GEMPadDigiClusterContainer > detid_to_clusters_
std::set< unsigned int > selectDetIds(const T &, int) const
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const GEMPadDigiClusterContainer & clustersInChamber(unsigned int) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const GEMDigiContainer & digisInDetId(unsigned int) const
GEMPadDigiContainer no_gem_pads_
edm::Handle< GEMDigiCollection > gemDigisH_
void matchDigisSLToSimTrack(const edm::DetSetVector< GEMDigiSimLink > &)
void matchClustersToSimTrack(const GEMPadDigiClusterCollection &)
edm::EDGetTokenT< GEMPadDigiClusterCollection > gemClusterToken_
edm::EDGetTokenT< GEMCoPadDigiCollection > gemCoPadToken_
bool isMatched(TrackingRecHit const &hit)
std::set< unsigned int > superChamberIdsPad(int gem_type=MuonHitHelper::GEM_ALL) const
edm::Handle< GEMPadDigiCollection > gemPadsH_
GEMPadDigiClusterContainer no_gem_clusters_
std::map< unsigned int, GEMPadDigiContainer > chamber_to_pads_
const GEMCoPadDigiContainer & coPadsInSuperChamber(unsigned int) const
std::map< unsigned int, GEMDigiSimLinkContainer > detid_to_simLinks_
std::set< unsigned int > detIdsDigi(int gem_type=MuonHitHelper::GEM_ALL) const
std::map< unsigned int, GEMDigiContainer > detid_to_digis_
std::map< unsigned int, GEMPadDigiContainer > detid_to_pads_
edm::EDGetTokenT< GEMPadDigiCollection > gemPadToken_
std::shared_ptr< GEMSimHitMatcher > muonSimHitMatcher_
Abs< T >::type abs(const T &t)
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > geomToken_
std::map< unsigned int, GEMCoPadDigiContainer > superchamber_to_copads_
const GEMPadDigiContainer & padsInSuperChamber(unsigned int) const
GEMDigiContainer no_gem_digis_
std::map< unsigned int, GEMDigiContainer > superchamber_to_digis_
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
const GEMPadDigiContainer & padsInDetId(unsigned int) const