CMS 3D CMS Logo

Public Member Functions | Private Attributes

MuonChi2MeasurementEstimator Class Reference

#include <MuonChi2MeasurementEstimator.h>

Inheritance diagram for MuonChi2MeasurementEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

List of all members.

Public Member Functions

virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
 Chi2 estimator.
 MuonChi2MeasurementEstimator (double maxChi2, double nSigma=3.)
 Constructor detector indipendent.
 MuonChi2MeasurementEstimator (double dtMaxChi2, double cscMaxChi2, double rpcMaxChi2, double nSigma)
 Constructor detector dependent.

Private Attributes

Chi2MeasurementEstimator theCSCChi2Estimator
Chi2MeasurementEstimator theDTChi2Estimator
Chi2MeasurementEstimator theRPCChi2Estimator

Detailed Description

Class to handle different chi2 cut parameters for each muon sub-system. MuonChi2MeasurementEstimator inherits from the Chi2MeasurementEstimatorBase class and uses 3 different estimators.

Date:
2008/07/24 16:40:08
Revision:
1.3
Author:
Giorgia Mila - INFN Torino

Class to handle different chi2 cut parameters for each muon sub-system. MuonChi2MeasurementEstimator inherits from the Chi2MeasurementEstimatorBase class and uses 3 different estimators.

Date:
2008/07/24 16:40:18
Revision:
1.3
Author:
Giorgia Mila - INFN Torino

Definition at line 19 of file MuonChi2MeasurementEstimator.h.


Constructor & Destructor Documentation

MuonChi2MeasurementEstimator::MuonChi2MeasurementEstimator ( double  maxChi2,
double  nSigma = 3. 
)

Constructor detector indipendent.

Definition at line 21 of file MuonChi2MeasurementEstimator.cc.

  :Chi2MeasurementEstimatorBase(maxChi2,nSigma), 
   theDTChi2Estimator(maxChi2, nSigma), 
   theCSCChi2Estimator(maxChi2, nSigma),
   theRPCChi2Estimator(maxChi2, nSigma){}
MuonChi2MeasurementEstimator::MuonChi2MeasurementEstimator ( double  dtMaxChi2,
double  cscMaxChi2,
double  rpcMaxChi2,
double  nSigma = 3. 
)

Constructor detector dependent.

Definition at line 28 of file MuonChi2MeasurementEstimator.cc.

  :Chi2MeasurementEstimatorBase(dtMaxChi2,nSigma),
   theDTChi2Estimator(dtMaxChi2, nSigma), 
   theCSCChi2Estimator(cscMaxChi2, nSigma),
   theRPCChi2Estimator(rpcMaxChi2, nSigma){}

Member Function Documentation

std::pair< bool, double > MuonChi2MeasurementEstimator::estimate ( const TrajectoryStateOnSurface tsos,
const TransientTrackingRecHit recHit 
) const [virtual]

Chi2 estimator.

Implements Chi2MeasurementEstimatorBase.

Definition at line 36 of file MuonChi2MeasurementEstimator.cc.

References MuonSubdetId::CSC, MuonSubdetId::DT, Chi2MeasurementEstimator::estimate(), TrackingRecHit::geographicalId(), DetId::Muon, MuonSubdetId::RPC, theCSCChi2Estimator, theDTChi2Estimator, and theRPCChi2Estimator.

                                                                                    {
  
  DetId id = recHit.geographicalId();
  
  // chi2 choise based on recHit provenance
  if(id.det() == DetId::Muon){
    if(id.subdetId() == MuonSubdetId::DT)
      return theDTChi2Estimator.estimate(tsos,recHit);
    else if(id.subdetId() == MuonSubdetId::CSC)
      return theCSCChi2Estimator.estimate(tsos,recHit);
    else if(id.subdetId() == MuonSubdetId::RPC) 
      return theRPCChi2Estimator.estimate(tsos,recHit);
    else{
      edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
        <<"RecHit with MuonId but not with a SubDetId neither from DT, CSC or rpc. [Use the parameters used for DTs]";
      return theDTChi2Estimator.estimate(tsos,recHit);
    }
  }
  else{
    edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
      <<"Rechit with a non-muon det id. [Use the parameters used for DTs]";
    return theDTChi2Estimator.estimate(tsos,recHit);
  }
}

Member Data Documentation

Definition at line 36 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().

Definition at line 35 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().

Definition at line 37 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().