CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MuonChi2MeasurementEstimator Class Reference

#include <MuonChi2MeasurementEstimator.h>

Inheritance diagram for MuonChi2MeasurementEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

Public Member Functions

virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
 Chi2 estimator. More...
 
 MuonChi2MeasurementEstimator (double maxChi2, double nSigma=3.)
 Constructor detector indipendent. More...
 
 MuonChi2MeasurementEstimator (double dtMaxChi2, double cscMaxChi2, double rpcMaxChi2, double nSigma)
 Constructor detector dependent. More...
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3.)
 
double chiSquaredCut () const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
 
double nSigmaCut () const
 
- Public Member Functions inherited from MeasurementEstimator
virtual MeasurementEstimatorclone () const =0
 
virtual ~MeasurementEstimator ()
 

Private Attributes

Chi2MeasurementEstimator theCSCChi2Estimator
 
Chi2MeasurementEstimator theDTChi2Estimator
 
Chi2MeasurementEstimator theRPCChi2Estimator
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
typedef std::pair< bool, double > HitReturnType
 
typedef Vector2DBase< float,
LocalTag
Local2DVector
 
typedef bool SurfaceReturnType
 
- Protected Member Functions inherited from Chi2MeasurementEstimatorBase
std::pair< bool, double > returnIt (double est) const
 

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.

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

Constructor detector dependent.

Definition at line 28 of file MuonChi2MeasurementEstimator.cc.

29  :Chi2MeasurementEstimatorBase(dtMaxChi2,nSigma),
30  theDTChi2Estimator(dtMaxChi2, nSigma),
31  theCSCChi2Estimator(cscMaxChi2, nSigma),
32  theRPCChi2Estimator(rpcMaxChi2, nSigma){}
Chi2MeasurementEstimator theDTChi2Estimator
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3.)
Chi2MeasurementEstimator theRPCChi2Estimator
Chi2MeasurementEstimator theCSCChi2Estimator

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.

37  {
38 
39  DetId id = recHit.geographicalId();
40 
41  // chi2 choise based on recHit provenance
42  if(id.det() == DetId::Muon){
43  if(id.subdetId() == MuonSubdetId::DT)
44  return theDTChi2Estimator.estimate(tsos,recHit);
45  else if(id.subdetId() == MuonSubdetId::CSC)
46  return theCSCChi2Estimator.estimate(tsos,recHit);
47  else if(id.subdetId() == MuonSubdetId::RPC)
48  return theRPCChi2Estimator.estimate(tsos,recHit);
49  else{
50  edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
51  <<"RecHit with MuonId but not with a SubDetId neither from DT, CSC or rpc. [Use the parameters used for DTs]";
52  return theDTChi2Estimator.estimate(tsos,recHit);
53  }
54  }
55  else{
56  edm::LogWarning("Muon|RecoMuon|MuonChi2MeasurementEstimator")
57  <<"Rechit with a non-muon det id. [Use the parameters used for DTs]";
58  return theDTChi2Estimator.estimate(tsos,recHit);
59  }
60 }
Chi2MeasurementEstimator theDTChi2Estimator
static const int CSC
Definition: MuonSubdetId.h:15
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TransientTrackingRecHit &) const
Definition: DetId.h:20
Chi2MeasurementEstimator theRPCChi2Estimator
Chi2MeasurementEstimator theCSCChi2Estimator
static const int RPC
Definition: MuonSubdetId.h:16
static const int DT
Definition: MuonSubdetId.h:14
DetId geographicalId() const

Member Data Documentation

Chi2MeasurementEstimator MuonChi2MeasurementEstimator::theCSCChi2Estimator
private

Definition at line 36 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().

Chi2MeasurementEstimator MuonChi2MeasurementEstimator::theDTChi2Estimator
private

Definition at line 35 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().

Chi2MeasurementEstimator MuonChi2MeasurementEstimator::theRPCChi2Estimator
private

Definition at line 37 of file MuonChi2MeasurementEstimator.h.

Referenced by estimate().