#include <DTHitQualityUtils.h>
Public Member Functions | |
DTHitQualityUtils () | |
Constructor. More... | |
virtual | ~DTHitQualityUtils () |
Destructor. More... | |
Static Public Member Functions | |
static const PSimHit * | findMuSimHit (const edm::PSimHitContainer &hits) |
Select the SimHit from a muon in a vector of SimHits. More... | |
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) More... | |
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 object Det. More... | |
static std::pair< double, double > | findSegmentAlphaAndBeta (const LocalVector &direction) |
Find the angles from a segment direction: More... | |
static std::map< DTWireId, const PSimHit * > | mapMuSimHitsPerWire (const std::map< DTWireId, edm::PSimHitContainer > &simHitWireMap) |
Create a map between the Mu SimHits and corresponding MuBarWireId ;. More... | |
static std::map< DTWireId, edm::PSimHitContainer > | mapSimHitsPerWire (const edm::PSimHitContainer &simhits) |
Static Public Attributes | |
static bool | debug |
Provide basic functionalities useful for MuScleFit
Define some basic tools and utilities for 1D DT Rec Hit and 2D, 4D DT Segment analysis
Definition at line 23 of file DTHitQualityUtils.h.
DTHitQualityUtils::DTHitQualityUtils | ( | ) |
Constructor.
Definition at line 23 of file DTHitQualityUtils.cc.
|
virtual |
|
static |
Select the SimHit from a muon in a vector of SimHits.
Definition at line 67 of file DTHitQualityUtils.cc.
References funct::abs(), gather_cfg::cout, and debug.
Referenced by DTRecHitQuality::compute(), GlobalRecHitsAnalyzer::compute(), and GlobalRecHitsProducer::compute().
|
static |
Find Innermost and outermost SimHit from Mu in a SL (they identify a simulated segment)
Definition at line 89 of file DTHitQualityUtils.cc.
References gather_cfg::cout, debug, and DTWireId::layerId().
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), and DTSegment4DQuality::analyze().
|
static |
Find direction and position of a segment (in local RF) from outer and inner mu SimHit in the RF of object Det.
Definition at line 161 of file DTHitQualityUtils.cc.
References funct::cos(), PSimHit::detUnitId(), DTGeometry::idToDet(), DTGeometry::layer(), PSimHit::localPosition(), PV3DBase< T, PVType, FrameType >::mag(), PV3DBase< T, PVType, FrameType >::theta(), GeomDet::toGlobal(), toLocal(), Vector3DBase< T, FrameTag >::unit(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), and DTSegment4DQuality::analyze().
|
static |
Find the angles from a segment direction:
Definition at line 189 of file DTHitQualityUtils.cc.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), and DTSegment4DQuality::analyze().
|
static |
Create a map between the Mu SimHits and corresponding MuBarWireId ;.
Definition at line 48 of file DTHitQualityUtils.cc.
References run_regression::ret.
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), and DTSegment4DQuality::analyze().
|
static |
Operations Create a map between the SimHits in a chamber and the corrisponding MuBarWireId
Definition at line 34 of file DTHitQualityUtils.cc.
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), DTSegment4DQuality::analyze(), DTRecHitQuality::analyze(), GlobalRecHitsAnalyzer::fillMuon(), and GlobalRecHitsProducer::fillMuon().
|
static |
Definition at line 49 of file DTHitQualityUtils.h.
Referenced by DTSegment2DQuality::DTSegment2DQuality(), DTSegment2DSLPhiQuality::DTSegment2DSLPhiQuality(), and DTSegment4DQuality::DTSegment4DQuality().