5 #ifndef Alignment_CommonAlignment_AlignableNavigator_h 6 #define Alignment_CommonAlignment_AlignableNavigator_h 36 typedef std::map<DetId, AlignableDetOrUnitPtr>
MapType;
46 std::vector<AlignableDetOrUnitPtr>
alignablesFromHits(
const std::vector<const TransientTrackingRecHit*>& hitvec);
AlignableDetOrUnitPtr alignableFromGeomDet(const GeomDet *geomDet)
Returns AlignableDetOrUnitPtr corresponding to given GeomDet.
bool detAndSubdetInMap(const DetId &detid) const
Given a DetId, returns true if DetIds with this detector and subdetector id are in the map (not neces...
AlignableNavigator(Alignable *tracker, Alignable *muon=nullptr)
Constructor from one or two Alignables.
unsigned int recursiveGetId(Alignable *alignable)
Container::value_type value_type
std::vector< std::pair< int, int > > theDetAndSubdet
std::vector< ConstRecHitPointer > ConstRecHitContainer
std::map< DetId, AlignableDetOrUnitPtr > MapType
std::vector< AlignableDetOrUnitPtr > alignableDetOrUnits()
return all AlignableDetOrUnitPtrs
std::vector< Alignable * > Alignables
std::vector< AlignableDetOrUnitPtr > alignablesFromHits(const std::vector< const TransientTrackingRecHit *> &hitvec)
Returns vector AlignableDetOrUnitPtr for given vector of Hits.
int size(void)
Returns number of elements in map.
AlignableDetOrUnitPtr alignableFromDetId(const DetId &detid)
Returns AlignableDetOrUnitPtr corresponding to given DetId.
MapType::value_type PairType