CMS 3D CMS Logo

MuonChi2MeasurementEstimator.cc
Go to the documentation of this file.
1 
11 
17 
20  theDTChi2Estimator(maxChi2, nSigma),
21  theCSCChi2Estimator(maxChi2, nSigma),
22  theRPCChi2Estimator(maxChi2, nSigma) {}
23 
25  double cscMaxChi2,
26  double rpcMaxChi2,
27  double nSigma = 3.)
29  theDTChi2Estimator(dtMaxChi2, nSigma),
30  theCSCChi2Estimator(cscMaxChi2, nSigma),
31  theRPCChi2Estimator(rpcMaxChi2, nSigma) {}
32 
34  const TrackingRecHit& recHit) const {
35  DetId id = recHit.geographicalId();
36 
37  // chi2 choise based on recHit provenance
38  if (id.det() == DetId::Muon) {
39  if (id.subdetId() == MuonSubdetId::DT)
40  return theDTChi2Estimator.estimate(tsos, recHit);
41  else if (id.subdetId() == MuonSubdetId::CSC)
42  return theCSCChi2Estimator.estimate(tsos, recHit);
43  else if (id.subdetId() == MuonSubdetId::RPC)
44  return theRPCChi2Estimator.estimate(tsos, recHit);
45  else {
46  edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
47  << "RecHit with MuonId but not with a SubDetId neither from DT, CSC or rpc. [Use the parameters used for "
48  "DTs]";
49  return theDTChi2Estimator.estimate(tsos, recHit);
50  }
51  } else {
52  edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
53  << "Rechit with a non-muon det id. [Use the parameters used for DTs]";
54  return theDTChi2Estimator.estimate(tsos, recHit);
55  }
56 }
TrajectoryStateOnSurface.h
MuonSubdetId::CSC
static constexpr int CSC
Definition: MuonSubdetId.h:12
MessageLogger.h
getRef.h
MuonChi2MeasurementEstimator::theCSCChi2Estimator
Chi2MeasurementEstimator theCSCChi2Estimator
Definition: MuonChi2MeasurementEstimator.h:28
beam_dqm_sourceclient-live_cfg.maxChi2
maxChi2
Definition: beam_dqm_sourceclient-live_cfg.py:146
MuonTransientTrackingRecHit.h
MuonChi2MeasurementEstimator::theRPCChi2Estimator
Chi2MeasurementEstimator theRPCChi2Estimator
Definition: MuonChi2MeasurementEstimator.h:29
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
rpcPointValidation_cfi.recHit
recHit
Definition: rpcPointValidation_cfi.py:7
DetId
Definition: DetId.h:17
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MuonChi2MeasurementEstimator::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Chi2 estimator.
Definition: MuonChi2MeasurementEstimator.cc:33
MuonSubdetId::DT
static constexpr int DT
Definition: MuonSubdetId.h:11
MuonChi2MeasurementEstimator::MuonChi2MeasurementEstimator
MuonChi2MeasurementEstimator(double maxChi2, double nSigma=3.)
Constructor detector indipendent.
Definition: MuonChi2MeasurementEstimator.cc:18
MuonSubdetId.h
Chi2MeasurementEstimatorBase
Definition: Chi2MeasurementEstimatorBase.h:14
TrackingRecHit
Definition: TrackingRecHit.h:21
DetId.h
MuonSubdetId::RPC
static constexpr int RPC
Definition: MuonSubdetId.h:13
MuonChi2MeasurementEstimator::theDTChi2Estimator
Chi2MeasurementEstimator theDTChi2Estimator
Definition: MuonChi2MeasurementEstimator.h:27
DetId::Muon
Definition: DetId.h:26
Chi2MeasurementEstimator::estimate
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: Chi2MeasurementEstimator.cc:32
HLTSiStripMonitoring_cff.nSigma
nSigma
Definition: HLTSiStripMonitoring_cff.py:151
MuonChi2MeasurementEstimator.h