30 if (dynamic_cast<const RecSegment*>(
hit()) )
38 if (dynamic_cast<const RecSegment*>(
hit()))
88 if (dynamic_cast<const RecSegment*>(
hit()))
95 if (dynamic_cast<const RecSegment*>(
hit()))
119 std::vector<const TrackingRecHit*> ownRecHits =
recHits();
121 if(ownRecHits.size() == 0){
123 return theSubTransientRecHits;
129 if(
isDT() &&
dimension() == 2 && ownRecHits.front()->dimension() == 1
130 && (geomDets.size() == 3 || geomDets.size() == 2) ){
132 std::vector<const GeomDet *> subGeomDets;
135 for(std::vector<const GeomDet *>::const_iterator geoDet = geomDets.begin();
136 geoDet != geomDets.end(); ++geoDet){
138 std::vector<const GeomDet *>
tmp = (*geoDet)->components();
139 std::copy(tmp.begin(),tmp.end(),back_inserter(subGeomDets));
144 geomDets = subGeomDets;
148 std::map<DetId,const GeomDet*> gemDetMap;
150 for (std::vector<const GeomDet*>::const_iterator subDet = geomDets.begin();
151 subDet != geomDets.end(); ++subDet)
152 gemDetMap[ (*subDet)->geographicalId() ] = *subDet;
154 std::map<DetId,const GeomDet*>::iterator gemDetMap_iter;
157 for (std::vector<const TrackingRecHit*>::const_iterator rechit = ownRecHits.begin();
158 rechit != ownRecHits.end(); ++rechit){
160 gemDetMap_iter = gemDetMap.find( (*rechit)->geographicalId() );
162 if(gemDetMap_iter != gemDetMap.end() )
169 return theSubTransientRecHits;
180 std::vector<TrackingRecHit*> seg2D =
recHits();
182 for(std::vector<TrackingRecHit*>::iterator it = seg2D.begin(); it != seg2D.end(); ++it){
183 std::vector<TrackingRecHit*> hits1D = (*it)->recHits();
185 for(std::vector<TrackingRecHit*>::iterator it2 = hits1D.begin(); it2 != hits1D.end(); ++it2)
186 (*it2)->setType(
bad);
192 std::vector<TrackingRecHit*> hits =
recHits();
193 for(std::vector<TrackingRecHit*>::iterator it = hits.begin(); it != hits.end(); ++it)
virtual int degreesOfFreedom() const
Degrees of freedom for segments, else 0.
bool isCSC() const
if this rec hit is a CSC rec hit
Local3DVector LocalVector
MuonTransientTrackingRecHit::MuonRecHitPointer MuonRecHitPointer
virtual double chi2() const
Chi square of the fit for segments, else 0.
virtual MuonTransientTrackingRecHit * clone() const override
virtual const TrackingRecHit * hit() const
virtual GlobalVector globalDirection() const
Direction in 3D for segments, otherwise (0,0,0)
std::vector< ConstRecHitPointer > RecHitContainer
virtual int dimension() const
virtual GlobalError globalDirectionError() const
Error on the global direction.
bool isRPC() const
if this rec hit is a RPC rec hit
bool isDT() const
if this rec hit is a DT rec hit
virtual std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
virtual LocalVector localDirection() const
Direction in 3D for segments, otherwise (0,0,0)
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
virtual AlgebraicSymMatrix parametersError() const
const GeomDet * det() const
DetId geographicalId() const
The label of this GeomDet.
std::shared_ptr< TrackingRecHit const > RecHitPointer
std::vector< ConstRecHitPointer > ConstRecHitContainer
virtual std::vector< const GeomDet * > components() const
Returns direct components, if any.
virtual LocalError localDirectionError() const
Error on the local direction.
virtual ConstRecHitContainer transientHits() const override
return the sub components of this transient rechit
std::vector< std::vector< double > > tmp
virtual AlgebraicSymMatrix parametersError() const override
CLHEP::HepSymMatrix AlgebraicSymMatrix
MuonTransientTrackingRecHit::MuonRecHitContainer MuonRecHitContainer
TrackingRecHit * trackingRecHit_
DetId geographicalId() const
virtual const Surface * surface() const