CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
DTHitQualityUtils Namespace Reference

Functions

const PSimHitfindMuSimHit (const edm::PSimHitContainer &hits)
 Select the SimHit from a muon in a vector of SimHits. More...
 
std::pair< const PSimHit
*, const PSimHit * > 
findMuSimSegment (const std::map< DTWireId, const PSimHit * > &mapWireAndMuSimHit)
 
std::pair< LocalVector,
LocalPoint
findMuSimSegmentDirAndPos (const std::pair< const PSimHit *, const PSimHit * > &inAndOutSimHit, const DetId detId, const DTGeometry &muonGeom)
 
std::pair< double, double > findSegmentAlphaAndBeta (const LocalVector &direction)
 
std::map< DTWireId, const
PSimHit * > 
mapMuSimHitsPerWire (const std::map< DTWireId, edm::PSimHitContainer > &simHitWireMap)
 Create a map between the Mu SimHits and corresponding MuBarWireId ;. More...
 
std::map< DTWireId,
edm::PSimHitContainer
mapSimHitsPerWire (const edm::PSimHitContainer &simhits)
 
double sigmaAngle (double Angle, double sigma2TanAngle)
 

Function Documentation

const PSimHit* DTHitQualityUtils::findMuSimHit ( const edm::PSimHitContainer hits)

Select the SimHit from a muon in a vector of SimHits.

Referenced by DTRecHitQuality::compute(), GlobalRecHitsAnalyzer::compute(), and GlobalRecHitsProducer::compute().

std::pair<const PSimHit *, const PSimHit *> DTHitQualityUtils::findMuSimSegment ( const std::map< DTWireId, const PSimHit * > &  mapWireAndMuSimHit)

Find Innermost and outermost SimHit from Mu in a SL (they identify a simulated segment)

Referenced by DTSegment2DQuality::dqmAnalyze(), DTSegment2DSLPhiQuality::dqmAnalyze(), and DTSegment4DQuality::dqmAnalyze().

std::pair<LocalVector, LocalPoint> DTHitQualityUtils::findMuSimSegmentDirAndPos ( const std::pair< const PSimHit *, const PSimHit * > &  inAndOutSimHit,
const DetId  detId,
const DTGeometry muonGeom 
)

Find direction and position of a segment (in local RF) from outer and inner mu SimHit in the RF of object Det

Referenced by DTSegment2DQuality::dqmAnalyze(), DTSegment2DSLPhiQuality::dqmAnalyze(), and DTSegment4DQuality::dqmAnalyze().

std::pair<double, double> DTHitQualityUtils::findSegmentAlphaAndBeta ( const LocalVector direction)

Find the angles from a segment direction: atan(dx/dz) = "phi" angle in the chamber RF atan(dy/dz) = "theta" angle in the chamber RF (note: this has opposite sign in the SLZ RF!)

Referenced by DTSegment2DQuality::dqmAnalyze(), DTSegment2DSLPhiQuality::dqmAnalyze(), and DTSegment4DQuality::dqmAnalyze().

std::map<DTWireId, const PSimHit *> DTHitQualityUtils::mapMuSimHitsPerWire ( const std::map< DTWireId, edm::PSimHitContainer > &  simHitWireMap)

Create a map between the Mu SimHits and corresponding MuBarWireId ;.

Referenced by DTSegment2DQuality::dqmAnalyze(), DTSegment2DSLPhiQuality::dqmAnalyze(), and DTSegment4DQuality::dqmAnalyze().

std::map<DTWireId, edm::PSimHitContainer> DTHitQualityUtils::mapSimHitsPerWire ( const edm::PSimHitContainer simhits)
double DTHitQualityUtils::sigmaAngle ( double  Angle,
double  sigma2TanAngle 
)