|
|
#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_ |
|
edm::ESHandle< GEMGeometry > | gem_geom_ |
|
edm::Handle< GEMPadDigiClusterCollection > | gemClustersH_ |
|
edm::EDGetTokenT< GEMPadDigiClusterCollection > | gemClusterToken_ |
|
edm::Handle< GEMCoPadDigiCollection > | gemCoPadsH_ |
|
edm::EDGetTokenT< GEMCoPadDigiCollection > | gemCoPadToken_ |
|
edm::Handle< GEMDigiCollection > | gemDigisH_ |
|
edm::EDGetTokenT< GEMDigiCollection > | gemDigiToken_ |
|
const GEMGeometry * | gemGeometry_ |
|
edm::Handle< GEMPadDigiCollection > | gemPadsH_ |
|
edm::EDGetTokenT< GEMPadDigiCollection > | gemPadToken_ |
|
int | matchDeltaStrip_ |
|
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_ |
|
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_ |
|
Definition at line 28 of file GEMDigiMatcher.h.
◆ GEMDigiMatcher()
Definition at line 5 of file GEMDigiMatcher.cc.
6 const auto& gemDigi =
pset.getParameterSet(
"gemStripDigi");
7 minBXDigi_ = gemDigi.getParameter<
int>(
"minBX");
8 maxBXDigi_ = gemDigi.getParameter<
int>(
"maxBX");
12 const auto& gemPad =
pset.getParameterSet(
"gemPadDigi");
13 minBXPad_ = gemPad.getParameter<
int>(
"minBX");
14 maxBXPad_ = gemPad.getParameter<
int>(
"maxBX");
17 const auto& gemCluster =
pset.getParameterSet(
"gemPadCluster");
22 const auto& gemCoPad =
pset.getParameterSet(
"gemCoPadDigi");
References eostools::move(), and muonDTDigis_cfi::pset.
◆ ~GEMDigiMatcher()
GEMDigiMatcher::~GEMDigiMatcher |
( |
| ) |
|
|
inline |
◆ allPads()
◆ chamberIdsCluster()
◆ chamberIdsDigi()
◆ chamberIdsPad()
◆ clustersInChamber()
◆ clustersInDetId()
◆ clustersInSuperChamber()
◆ coPadsInSuperChamber()
◆ detIdsCluster()
◆ detIdsDigi()
◆ detIdsPad()
◆ 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()
Definition at line 141 of file GEMDigiMatcher.cc.
143 for (
auto id : det_ids) {
145 GEMDetId superch_id(p_id.region(), p_id.ring(), p_id.station(), 1, p_id.chamber(), 0);
148 auto clusters_in_det =
clusters.get(p_id);
150 for (
auto cluster = clusters_in_det.first; cluster != clusters_in_det.second; ++cluster) {
156 for (
const auto&
p : cluster->pads()) {
157 if (hit_pads.find(
p) == hit_pads.end()) {
References GEMDetId::chamber(), GEMDetId::chamberId(), bsc_activity_cfg::clusters, triggerObjects_cff::id, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), GEMDetId::region(), GEMDetId::ring(), and GEMDetId::station().
◆ matchCoPadsToSimTrack()
Definition at line 168 of file GEMDigiMatcher.cc.
170 for (
const auto&
id : det_ids) {
172 GEMDetId superch_id(p_id.region(), p_id.ring(), p_id.station(), 0, p_id.chamber(), 0);
175 const auto& co_pads_in_det = co_pads.get(superch_id);
178 cout <<
"matching CoPads in detid " << superch_id << std::endl;
179 cout <<
"checkcopads from gemhits" << hit_co_pads.size() <<
" from copad collection "
180 <<
std::distance(co_pads_in_det.first, co_pads_in_det.second) <<
" hit_pads: ";
181 copy(hit_co_pads.begin(), hit_co_pads.end(), ostream_iterator<int>(
cout,
" "));
185 for (
auto pad = co_pads_in_det.first; pad != co_pads_in_det.second; ++pad) {
187 bool matchL1 =
false;
188 GEMDetId gemL1_id(p_id.region(), p_id.ring(), p_id.station(), 1, p_id.chamber(), 0);
190 cout <<
"CoPad: chp " << *pad << endl;
192 if (
p == pad->first()) {
198 bool matchL2 =
false;
199 GEMDetId gemL2_id(p_id.region(), p_id.ring(), p_id.station(), 2, p_id.chamber(), 0);
201 if (
p == pad->second()) {
207 if (matchL1 and matchL2) {
209 cout <<
"CoPad: was matched! " << endl;
References GEMDetId::chamber(), filterCSVwithJSON::copy, gather_cfg::cout, HLT_2018_cff::distance, AlCaHLTBitMon_ParallelJobs::p, GEMDetId::region(), GEMDetId::ring(), and GEMDetId::station().
◆ matchDigisToSimTrack()
◆ matchPadsToSimTrack()
Definition at line 104 of file GEMDigiMatcher.cc.
106 for (
const auto&
id : det_ids) {
108 GEMDetId superch_id(p_id.region(), p_id.ring(), p_id.station(), 0, p_id.chamber(), 0);
111 const auto& pads_in_det = pads.get(p_id);
114 cout <<
"checkpads " << hit_pads.size() <<
" " <<
std::distance(pads_in_det.first, pads_in_det.second)
116 copy(hit_pads.begin(), hit_pads.end(), ostream_iterator<int>(
cout,
" "));
120 for (
auto pad = pads_in_det.first; pad != pads_in_det.second; ++pad) {
122 cout <<
"chp " << *pad << endl;
127 cout <<
"chp1" << endl;
129 if (hit_pads.find(pad->pad()) == hit_pads.end())
132 cout <<
"chp2" << endl;
References GEMDetId::chamber(), GEMDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, HLT_2018_cff::distance, triggerObjects_cff::id, DetId::rawId(), GEMDetId::region(), GEMDetId::ring(), and GEMDetId::station().
◆ muonSimHitMatcher()
◆ nCoPads()
int GEMDigiMatcher::nCoPads |
( |
| ) |
const |
◆ 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 |
◆ 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_
◆ gem_geom_
◆ gemClustersH_
◆ gemClusterToken_
◆ gemCoPadsH_
◆ gemCoPadToken_
◆ gemDigisH_
◆ gemDigiToken_
◆ gemGeometry_
◆ gemPadsH_
◆ gemPadToken_
◆ matchDeltaStrip_
int GEMDigiMatcher::matchDeltaStrip_ |
|
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_
◆ 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 |
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)
const GeomDet * idToDet(DetId) const override
edm::EDGetTokenT< GEMDigiCollection > gemDigiToken_
const GEMDigiContainer & digisInChamber(unsigned int) const
void matchDigisToSimTrack(const GEMDigiCollection &)
const GEMGeometry * gemGeometry_
const GEMPadDigiContainer & padsInChamber(unsigned int) const
std::map< unsigned int, GEMDigiContainer > chamber_to_digis_
std::map< unsigned int, GEMPadDigiClusterContainer > chamber_to_clusters_
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.
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
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const GEMDigiContainer & digisInDetId(unsigned int) const
GEMPadDigiContainer no_gem_pads_
edm::Handle< GEMDigiCollection > gemDigisH_
void matchClustersToSimTrack(const GEMPadDigiClusterCollection &)
edm::EDGetTokenT< GEMPadDigiClusterCollection > gemClusterToken_
edm::EDGetTokenT< GEMCoPadDigiCollection > gemCoPadToken_
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_
edm::ESHandle< GEMGeometry > gem_geom_
const GEMCoPadDigiContainer & coPadsInSuperChamber(unsigned int) const
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_
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