|
|
#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()
◆ 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 57 of file CSCDigiMatcher.cc.
58 for (
auto detUnitIt = comparators.begin(); detUnitIt != comparators.end(); ++detUnitIt) {
59 const CSCDetId&
id = (*detUnitIt).first;
60 const auto&
range = (*detUnitIt).second;
61 for (
auto digiIt =
range.first; digiIt !=
range.second; ++digiIt) {
64 cout <<
"CSCid " <<
id <<
" Comparator digi (comparator, comparator, Tbin ) " << (*digiIt) << endl;
69 for (
const auto&
id : det_ids) {
74 cout <<
"hit_comparators_fat, CSCid " << layer_id <<
" ";
75 copy(hit_comparators.begin(), hit_comparators.end(), ostream_iterator<int>(
cout,
" "));
79 const auto& comp_digis_in_det = comparators.get(layer_id);
80 for (
auto c = comp_digis_in_det.first;
c != comp_digis_in_det.second; ++
c) {
82 cout <<
"sdigi " << layer_id <<
" (comparator, comparator, Tbin ) " << *
c << endl;
88 int comparator =
c->getStrip();
90 if (hit_comparators.find(comparator) == hit_comparators.end())
94 cout <<
"Matched comparator " << *
c << endl;
References HltBtagPostValidation_cff::c, CSCDetId::chamberId(), filterCSVwithJSON::copy, gather_cfg::cout, triggerObjects_cff::id, or, FastTimerService_cff::range, DetId::rawId(), relativeConstraints::ring, and relativeConstraints::station.
◆ matchStripsToSimTrack()
Definition at line 101 of file CSCDigiMatcher.cc.
102 for (
auto detUnitIt =
strips.begin(); detUnitIt !=
strips.end(); ++detUnitIt) {
103 const CSCDetId&
id = (*detUnitIt).first;
104 const auto&
range = (*detUnitIt).second;
105 for (
auto digiIt =
range.first; digiIt !=
range.second; ++digiIt) {
108 cout <<
"CSCid " <<
id <<
" Strip digi (strip, strip, Tbin ) " << (*digiIt) << endl;
113 for (
const auto&
id : det_ids) {
118 cout <<
"hit_strips_fat, CSCid " << layer_id <<
" ";
119 copy(hit_strips.begin(), hit_strips.end(), ostream_iterator<int>(
cout,
" "));
123 const auto& strip_digis_in_det =
strips.get(layer_id);
124 for (
auto c = strip_digis_in_det.first;
c != strip_digis_in_det.second; ++
c) {
126 cout <<
"sdigi " << layer_id <<
" (strip, Tbin ) " << *
c << endl;
128 int strip =
c->getStrip();
130 if (hit_strips.find(
strip) == hit_strips.end())
134 cout <<
"Matched strip " << *
c << endl;
References HltBtagPostValidation_cff::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()
◆ 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 232 of file CSCDigiMatcher.cc.
235 for (
int i = 1;
i <= 6; ++
i) {
236 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), std::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 244 of file CSCDigiMatcher.cc.
247 for (
int i = 1;
i <= 6; ++
i) {
248 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), std::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 256 of file CSCDigiMatcher.cc.
259 for (
int i = 1;
i <= 6; ++
i) {
260 CSCDetId layerId(chamberId.endcap(), chamberId.station(), chamberId.ring(), chamberId.chamber(),
i);
References CSCDetId::chamber(), std::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 373 of file CSCDigiMatcher.cc.
376 for (
const auto&
d : digis) {
377 result.insert(
d.getWireGroup());
379 if (max_gap_to_fill > 0) {
382 if (
w - prev > 1 &&
w - prev - 1 <= max_gap_to_fill) {
383 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_
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