1 #ifndef DTHitQualityUtils_H 2 #define DTHitQualityUtils_H 37 static std::map<DTWireId, const PSimHit*>
mapMuSimHitsPerWire(
const std::map<DTWireId, edm::PSimHitContainer>& simHitWireMap) ;
41 static std::pair<const PSimHit*, const PSimHit*>
findMuSimSegment(
const std::map<DTWireId, const PSimHit*>& mapWireAndMuSimHit) ;
43 static std::pair<LocalVector, LocalPoint>
findMuSimSegmentDirAndPos(
const std::pair<const PSimHit*, const PSimHit*>& inAndOutSimHit,
static double sigmaAngle(double Angle, double sigma2TanAngle)
static const PSimHit * findMuSimHit(const edm::PSimHitContainer &hits)
Select the SimHit from a muon in a vector of SimHits.
DTHitQualityUtils()
Constructor.
static std::map< DTWireId, const PSimHit * > mapMuSimHitsPerWire(const std::map< DTWireId, edm::PSimHitContainer > &simHitWireMap)
Create a map between the Mu SimHits and corresponding MuBarWireId ;.
static std::pair< const PSimHit *, const PSimHit * > findMuSimSegment(const std::map< DTWireId, const PSimHit * > &mapWireAndMuSimHit)
Find Innermost and outermost SimHit from Mu in a SL (they identify a simulated segment) ...
static std::pair< double, double > findSegmentAlphaAndBeta(const LocalVector &direction)
static std::pair< LocalVector, LocalPoint > 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 ob...
virtual ~DTHitQualityUtils()
Destructor.
std::vector< PSimHit > PSimHitContainer
static std::map< DTWireId, edm::PSimHitContainer > mapSimHitsPerWire(const edm::PSimHitContainer &simhits)