Go to the documentation of this file.
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);
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...
int size(void)
Returns number of elements in map.
MapType::value_type PairType
AlignableNavigator(Alignable *tracker, Alignable *muon=nullptr)
Constructor from one or two Alignables.
unsigned int recursiveGetId(Alignable *alignable)
AlignableDetOrUnitPtr alignableFromGeomDet(const GeomDet *geomDet)
Returns AlignableDetOrUnitPtr corresponding to given GeomDet.
std::vector< ConstRecHitPointer > ConstRecHitContainer
std::vector< AlignableDetOrUnitPtr > alignablesFromHits(const std::vector< const TransientTrackingRecHit * > &hitvec)
Returns vector AlignableDetOrUnitPtr for given vector of Hits.
std::vector< std::pair< int, int > > theDetAndSubdet
Container::value_type value_type
std::vector< Alignable * > Alignables
AlignableDetOrUnitPtr alignableFromDetId(const DetId &detid)
Returns AlignableDetOrUnitPtr corresponding to given DetId.
std::vector< AlignableDetOrUnitPtr > alignableDetOrUnits()
return all AlignableDetOrUnitPtrs
std::map< DetId, AlignableDetOrUnitPtr > MapType