|
|
#include <CSCRecHitMatcher.h>
Definition at line 31 of file CSCRecHitMatcher.h.
◆ CSCRecHitMatcher()
◆ ~CSCRecHitMatcher()
CSCRecHitMatcher::~CSCRecHitMatcher |
( |
| ) |
|
|
inline |
◆ areCSCRecHit2DsSame()
◆ areCSCSegmentsSame()
◆ bestCSCSegment()
CSCSegment CSCRecHitMatcher::bestCSCSegment |
( |
unsigned int |
id | ) |
|
Definition at line 279 of file CSCRecHitMatcher.cc.
281 double chi2overNdf = 99;
283 int foundIndex = -99;
286 double newChi2overNdf(seg.chi2() / seg.degreesOfFreedom());
287 if (newChi2overNdf < chi2overNdf) {
288 chi2overNdf = newChi2overNdf;
293 if (foundIndex != -99)
References triggerObjects_cff::id.
◆ chamberIdsCSCRecHit2D()
std::set< unsigned int > CSCRecHitMatcher::chamberIdsCSCRecHit2D |
( |
| ) |
const |
◆ chamberIdsCSCSegment()
std::set< unsigned int > CSCRecHitMatcher::chamberIdsCSCSegment |
( |
| ) |
const |
◆ cscRecHit2DInContainer()
◆ cscRecHit2Ds()
◆ cscRecHit2DsInChamber()
◆ cscRecHit2DsInLayer()
◆ cscSegmentInContainer()
◆ cscSegments()
◆ cscSegmentsInChamber()
◆ globalPoint()
◆ init()
◆ isCSCRecHit2DMatched()
bool CSCRecHitMatcher::isCSCRecHit2DMatched |
( |
const CSCRecHit2D & |
thisSg | ) |
const |
◆ isCSCSegmentMatched()
bool CSCRecHitMatcher::isCSCSegmentMatched |
( |
const CSCSegment & |
thisSg | ) |
const |
◆ layerIdsCSCRecHit2D()
std::set< unsigned int > CSCRecHitMatcher::layerIdsCSCRecHit2D |
( |
| ) |
const |
◆ match()
◆ matchCSCRecHit2DsToSimTrack()
Definition at line 55 of file CSCRecHitMatcher.cc.
57 edm::LogInfo(
"CSCRecHitMatcher") <<
"Matching simtrack to CSC rechits";
64 std::set<unsigned int> layer_ids;
65 layer_ids.insert(strip_ids.begin(), strip_ids.end());
66 layer_ids.insert(wire_ids.begin(), wire_ids.end());
69 edm::LogInfo(
"CSCRecHitMatcher") <<
"Number of matched csc layer_ids " << layer_ids.size();
71 for (
const auto&
id : layer_ids) {
77 edm::LogInfo(
"CSCRecHitMatcher") <<
"hit wg csc from simhit" << endl;
78 for (
const auto&
p : hit_wg) {
86 edm::LogInfo(
"CSCRecHitMatcher") <<
"hit strip csc from simhit" << endl;
87 for (
const auto&
p : hit_strips) {
93 const auto& rechits_in_det =
rechits.get(p_id);
94 for (
auto d = rechits_in_det.first;
d != rechits_in_det.second; ++
d) {
96 edm::LogInfo(
"CSCRecHitMatcher") <<
"rechit " << p_id <<
" " << *
d;
99 const bool wireMatch(
std::find(hit_wg.begin(), hit_wg.end(),
d->hitWire()) != hit_wg.end());
102 bool stripMatch(
false);
103 for (
size_t iS = 0; iS <
d->nStrips(); ++iS) {
104 if (
std::find(hit_strips.begin(), hit_strips.end(),
d->channels(iS)) != hit_strips.end())
109 if (wireMatch and stripMatch) {
111 edm::LogInfo(
"CSCRecHitMatcher") <<
"\t...was matched!";
References CSCDetId::chamberId(), ztail::d, spr::find(), triggerObjects_cff::id, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), and HI_PhotonSkim_cff::rechits.
◆ matchCSCSegmentsToSimTrack()
◆ nCSCRecHit2Ds()
int CSCRecHitMatcher::nCSCRecHit2Ds |
( |
| ) |
const |
◆ nCSCRecHit2DsInChamber()
int CSCRecHitMatcher::nCSCRecHit2DsInChamber |
( |
unsigned int |
detid | ) |
const |
◆ nCSCRecHit2DsInLayer()
int CSCRecHitMatcher::nCSCRecHit2DsInLayer |
( |
unsigned int |
detid | ) |
const |
◆ nCSCSegments()
int CSCRecHitMatcher::nCSCSegments |
( |
| ) |
const |
◆ nCSCSegmentsInChamber()
int CSCRecHitMatcher::nCSCSegmentsInChamber |
( |
unsigned int |
detid | ) |
const |
◆ chamber_to_cscRecHit2D_
◆ chamber_to_cscSegment_
◆ csc_geom_
◆ cscDigiMatcher_
◆ cscGeometry_
◆ cscRecHit2DH_
◆ cscRecHit2DToken_
◆ cscSegmentH_
◆ cscSegmentToken_
◆ layer_to_cscRecHit2D_
◆ maxBXCSCRecHit2D_
int CSCRecHitMatcher::maxBXCSCRecHit2D_ |
|
private |
◆ maxBXCSCSegment_
int CSCRecHitMatcher::maxBXCSCSegment_ |
|
private |
◆ minBXCSCRecHit2D_
int CSCRecHitMatcher::minBXCSCRecHit2D_ |
|
private |
◆ minBXCSCSegment_
int CSCRecHitMatcher::minBXCSCSegment_ |
|
private |
◆ no_cscRecHit2Ds_
◆ no_cscSegments_
◆ verboseCSCRecHit2D_
int CSCRecHitMatcher::verboseCSCRecHit2D_ |
|
private |
◆ verboseCSCSegment_
int CSCRecHitMatcher::verboseCSCSegment_ |
|
private |
const CSCSegmentContainer cscSegments() const
edm::Handle< CSCSegmentCollection > cscSegmentH_
T const * product() const
void matchCSCSegmentsToSimTrack(const CSCSegmentCollection &)
std::set< unsigned int > chamberIdsCSCSegment() const
const GeomDet * idToDet(DetId) const override
std::vector< CSCRecHit2D > CSCRecHit2DContainer
bool cscRecHit2DInContainer(const CSCRecHit2D &, const CSCRecHit2DContainer &) const
edm::EDGetTokenT< CSCSegmentCollection > cscSegmentToken_
Log< level::Info, false > LogInfo
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Log< level::Warning, false > LogWarning
bool areCSCSegmentsSame(const CSCSegment &, const CSCSegment &) const
bool cscSegmentInContainer(const CSCSegment &, const CSCSegmentContainer &) const
CSCSegmentContainer no_cscSegments_
edm::ESHandle< CSCGeometry > csc_geom_
edm::Handle< CSCRecHit2DCollection > cscRecHit2DH_
std::unique_ptr< CSCDigiMatcher > cscDigiMatcher_
CSCRecHit2DContainer no_cscRecHit2Ds_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const CSCSegmentContainer & cscSegmentsInChamber(unsigned int) const
std::map< unsigned int, CSCRecHit2DContainer > chamber_to_cscRecHit2D_
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
std::map< unsigned int, CSCSegmentContainer > chamber_to_cscSegment_
std::set< unsigned int > chamberIdsCSCRecHit2D() const
bool isCSCRecHit2DMatched(const CSCRecHit2D &) const
const CSCRecHit2DContainer & cscRecHit2DsInLayer(unsigned int) const
void matchCSCRecHit2DsToSimTrack(const CSCRecHit2DCollection &)
bool areCSCRecHit2DsSame(const CSCRecHit2D &, const CSCRecHit2D &) const
const CSCRecHit2DContainer cscRecHit2Ds() const
edm::EDGetTokenT< CSCRecHit2DCollection > cscRecHit2DToken_
const CSCRecHit2DContainer & cscRecHit2DsInChamber(unsigned int) const
std::map< unsigned int, CSCRecHit2DContainer > layer_to_cscRecHit2D_
const CSCGeometry * cscGeometry_
std::vector< CSCSegment > CSCSegmentContainer