|
|
#include <CSCDigiMatcher.h>
Description: Matching of Digis to SimTrack in CSC
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 25 of file CSCDigiMatcher.h.
◆ CSCDigiMatcher()
◆ ~CSCDigiMatcher()
CSCDigiMatcher::~CSCDigiMatcher |
( |
| ) |
|
|
inline |
◆ chamberIdsComparator()
◆ chamberIdsStrip()
◆ chamberIdsWire()
◆ clear()
void CSCDigiMatcher::clear |
( |
void |
| ) |
|
|
private |
◆ comparatorDigisInChamber()
◆ comparatorDigisInDetId()
◆ comparatorsInChamber()
std::set< int > CSCDigiMatcher::comparatorsInChamber |
( |
unsigned int |
detid, |
|
|
int |
max_gap_to_fill = 0 |
|
) |
| const |
◆ comparatorsInDetId()
std::set< int > CSCDigiMatcher::comparatorsInDetId |
( |
unsigned int |
detid | ) |
const |
◆ detIdsComparator()
◆ detIdsStrip()
◆ detIdsWire()
◆ init()
◆ match()
◆ matchComparatorsToSimTrack()
Definition at line 59 of file CSCDigiMatcher.cc.
61 for (
const auto&
id : det_ids) {
66 cout <<
"hit_comparators_fat, CSCid " << layer_id <<
" ";
67 copy(hit_comparators.begin(), hit_comparators.end(), ostream_iterator<int>(
cout,
" "));
71 const auto& comp_digis_in_det = comparators.get(layer_id);
72 for (
auto c = comp_digis_in_det.first;
c != comp_digis_in_det.second; ++
c) {
74 edm::LogInfo(
"CSCDigiMatcher") <<
"sdigi " << layer_id <<
" (comparator, comparator, Tbin ) " << *
c;
80 int comparator =
c->getStrip();
82 if (hit_comparators.find(comparator) == hit_comparators.end())
86 edm::LogInfo(
"CSCDigiMatcher") <<
"Matched comparator " << *
c;
References c, CSCDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, triggerObjects_cff::id, and DetId::rawId().
◆ matchStripsToSimTrack()
Definition at line 93 of file CSCDigiMatcher.cc.
94 for (
auto detUnitIt =
strips.begin(); detUnitIt !=
strips.end(); ++detUnitIt) {
95 const CSCDetId&
id = (*detUnitIt).first;
96 const auto&
range = (*detUnitIt).second;
97 for (
auto digiIt =
range.first; digiIt !=
range.second; ++digiIt) {
100 edm::LogInfo(
"CSCDigiMatcher") <<
"CSCid " <<
id <<
" Strip digi (strip, strip, Tbin ) " << (*digiIt);
105 for (
const auto&
id : det_ids) {
110 cout <<
"hit_strips_fat, CSCid " << layer_id <<
" ";
111 copy(hit_strips.begin(), hit_strips.end(), ostream_iterator<int>(
cout,
" "));
115 const auto& strip_digis_in_det =
strips.get(layer_id);
116 for (
auto c = strip_digis_in_det.first;
c != strip_digis_in_det.second; ++
c) {
118 edm::LogInfo(
"CSCDigiMatcher") <<
"sdigi " << layer_id <<
" (strip, Tbin ) " << *
c;
120 int strip =
c->getStrip();
122 if (hit_strips.find(
strip) == hit_strips.end())
References c, CSCDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, triggerObjects_cff::id, or, FastTimerService_cff::range, DetId::rawId(), relativeConstraints::ring, relativeConstraints::station, digitizers_cfi::strip, and DigiDM_cff::strips.
◆ matchWiresToSimTrack()
Definition at line 133 of file CSCDigiMatcher.cc.
135 for (
const auto&
id : det_ids) {
140 cout <<
"hit_wires ";
141 copy(hit_wires.begin(), hit_wires.end(), ostream_iterator<int>(
cout,
" "));
145 const auto& wire_digis_in_det =
wires.get(layer_id);
146 for (
auto w = wire_digis_in_det.first;
w != wire_digis_in_det.second; ++
w) {
148 edm::LogInfo(
"CSCDigiMatcher") <<
"wdigi " << layer_id <<
" (wire, Tbin ) " << *
w;
154 int wg =
w->getWireGroup();
156 if (hit_wires.find(wg) == hit_wires.end())
160 edm::LogInfo(
"CSCDigiMatcher") <<
"Matched wire digi " << *
w << endl;
References CSCDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, triggerObjects_cff::id, DetId::rawId(), w, and DigiDM_cff::wires.
◆ muonSimHitMatcher()
◆ nCoincidenceComparatorChambers()
int CSCDigiMatcher::nCoincidenceComparatorChambers |
( |
int |
min_n_layers = 4 | ) |
const |
◆ nCoincidenceStripChambers()
int CSCDigiMatcher::nCoincidenceStripChambers |
( |
int |
min_n_layers = 4 | ) |
const |
◆ nCoincidenceWireChambers()
int CSCDigiMatcher::nCoincidenceWireChambers |
( |
int |
min_n_layers = 4 | ) |
const |
◆ nLayersWithComparatorInChamber()
int CSCDigiMatcher::nLayersWithComparatorInChamber |
( |
unsigned int |
detid | ) |
const |
Definition at line 227 of file CSCDigiMatcher.cc.
230 for (
int i = 1;
i <= 6; ++
i) {
231 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), relativeConstraints::empty, CSCDetId::endcap(), mps_fire::i, MuonTCMETValueMapProducer_cff::nLayers, CSCDetId::ring(), and CSCDetId::station().
◆ nLayersWithStripInChamber()
int CSCDigiMatcher::nLayersWithStripInChamber |
( |
unsigned int |
detid | ) |
const |
Definition at line 239 of file CSCDigiMatcher.cc.
242 for (
int i = 1;
i <= 6; ++
i) {
243 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), relativeConstraints::empty, CSCDetId::endcap(), mps_fire::i, MuonTCMETValueMapProducer_cff::nLayers, CSCDetId::ring(), and CSCDetId::station().
◆ nLayersWithWireInChamber()
int CSCDigiMatcher::nLayersWithWireInChamber |
( |
unsigned int |
detid | ) |
const |
Definition at line 251 of file CSCDigiMatcher.cc.
254 for (
int i = 1;
i <= 6; ++
i) {
255 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), relativeConstraints::empty, CSCDetId::endcap(), mps_fire::i, MuonTCMETValueMapProducer_cff::nLayers, CSCDetId::ring(), and CSCDetId::station().
◆ selectDetIds()
template<class T >
std::set< unsigned int > CSCDigiMatcher::selectDetIds |
( |
const T & |
digis, |
|
|
int |
csc_type |
|
) |
| const |
|
private |
◆ stripDigisInChamber()
◆ stripDigisInDetId()
◆ stripsInChamber()
std::set< int > CSCDigiMatcher::stripsInChamber |
( |
unsigned int |
detid, |
|
|
int |
max_gap_to_fill = 0 |
|
) |
| const |
◆ stripsInDetId()
std::set< int > CSCDigiMatcher::stripsInDetId |
( |
unsigned int |
detid | ) |
const |
◆ wireDigisInChamber()
◆ wireDigisInDetId()
◆ wiregroupsInChamber()
std::set< int > CSCDigiMatcher::wiregroupsInChamber |
( |
unsigned int |
detid, |
|
|
int |
max_gap_to_fill = 0 |
|
) |
| const |
Definition at line 360 of file CSCDigiMatcher.cc.
363 for (
const auto&
d : digis) {
364 result.insert(
d.getWireGroup());
366 if (max_gap_to_fill > 0) {
369 if (
w - prev > 1 &&
w - prev - 1 <= max_gap_to_fill) {
370 for (
int fill_w = prev + 1; fill_w <
w; ++fill_w)
References ztail::d, mps_fire::result, and w.
◆ wiregroupsInDetId()
std::set< int > CSCDigiMatcher::wiregroupsInDetId |
( |
unsigned int |
detid | ) |
const |
◆ chamber_to_comparators_
◆ chamber_to_strips_
◆ chamber_to_wires_
◆ comparatorDigiInput_
◆ comparatorDigisH_
◆ detid_to_comparators_
◆ detid_to_strips_
◆ detid_to_wires_
◆ matchDeltaComparator_
int CSCDigiMatcher::matchDeltaComparator_ |
|
private |
◆ matchDeltaStrip_
int CSCDigiMatcher::matchDeltaStrip_ |
|
private |
◆ matchDeltaWG_
int CSCDigiMatcher::matchDeltaWG_ |
|
private |
◆ maxBXComparator_
int CSCDigiMatcher::maxBXComparator_ |
|
private |
◆ maxBXStrip_
int CSCDigiMatcher::maxBXStrip_ |
|
private |
◆ maxBXWire_
int CSCDigiMatcher::maxBXWire_ |
|
private |
◆ minBXComparator_
int CSCDigiMatcher::minBXComparator_ |
|
private |
◆ minBXStrip_
int CSCDigiMatcher::minBXStrip_ |
|
private |
◆ minBXWire_
int CSCDigiMatcher::minBXWire_ |
|
private |
◆ muonSimHitMatcher_
◆ no_comparators_
◆ no_strips_
◆ no_wires_
◆ stripDigiInput_
◆ stripDigisH_
◆ verboseComparator_
int CSCDigiMatcher::verboseComparator_ |
|
private |
◆ verboseStrip_
int CSCDigiMatcher::verboseStrip_ |
|
private |
◆ verboseWG_
int CSCDigiMatcher::verboseWG_ |
|
private |
◆ wireDigiInput_
◆ wireDigisH_
std::map< unsigned int, CSCStripDigiContainer > detid_to_strips_
std::map< unsigned int, CSCComparatorDigiContainer > detid_to_comparators_
const CSCWireDigiContainer & wireDigisInChamber(unsigned int) const
T const * product() const
std::map< unsigned int, CSCStripDigiContainer > chamber_to_strips_
CSCComparatorDigiContainer no_comparators_
void matchComparatorsToSimTrack(const CSCComparatorDigiCollection &comparators)
edm::EDGetTokenT< CSCStripDigiCollection > stripDigiInput_
std::shared_ptr< CSCSimHitMatcher > muonSimHitMatcher_
std::map< unsigned int, CSCWireDigiContainer > detid_to_wires_
Log< level::Info, false > LogInfo
edm::Handle< CSCStripDigiCollection > stripDigisH_
const CSCWireDigiContainer & wireDigisInDetId(unsigned int) const
std::set< unsigned int > chamberIdsStrip(int csc_type=MuonHitHelper::CSC_ALL) const
std::set< unsigned int > chamberIdsWire(int csc_type=MuonHitHelper::CSC_ALL) const
int nLayersWithStripInChamber(unsigned int) const
int nLayersWithWireInChamber(unsigned int) const
edm::Handle< CSCComparatorDigiCollection > comparatorDigisH_
std::map< unsigned int, CSCWireDigiContainer > chamber_to_wires_
const CSCStripDigiContainer & stripDigisInDetId(unsigned int) const
std::map< unsigned int, CSCComparatorDigiContainer > chamber_to_comparators_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::set< unsigned int > selectDetIds(const T &digis, int csc_type) const
const CSCStripDigiContainer & stripDigisInChamber(unsigned int) const
void matchWiresToSimTrack(const CSCWireDigiCollection &wires)
edm::EDGetTokenT< CSCWireDigiCollection > wireDigiInput_
edm::Handle< CSCWireDigiCollection > wireDigisH_
const CSCComparatorDigiContainer & comparatorDigisInDetId(unsigned int) const
edm::EDGetTokenT< CSCComparatorDigiCollection > comparatorDigiInput_
const CSCComparatorDigiContainer & comparatorDigisInChamber(unsigned int) const
CSCWireDigiContainer no_wires_
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void matchStripsToSimTrack(const CSCStripDigiCollection &strips)
int matchDeltaComparator_
int nLayersWithComparatorInChamber(unsigned int) const
static int toCSCType(int st, int ri)
CSCStripDigiContainer no_strips_
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
std::set< unsigned int > chamberIdsComparator(int csc_type=MuonHitHelper::CSC_ALL) const