Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:42

0001 /** \file
0002  *
0003  */
0004 
0005 #include "RecoMTD/TransientTrackingRecHit/interface/MTDTransientTrackingRecHit.h"
0006 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0007 
0008 #include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
0009 #include "DataFormats/ForwardDetId/interface/MTDDetId.h"
0010 #include "DataFormats/GeometryCommonDetAlgo/interface/AlignmentPositionError.h"
0011 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0012 
0013 #include "FWCore/Utilities/interface/Exception.h"
0014 
0015 #include <map>
0016 
0017 typedef MTDTransientTrackingRecHit::MTDRecHitPointer MTDRecHitPointer;
0018 typedef MTDTransientTrackingRecHit::RecHitContainer MTDRecHitContainer;
0019 
0020 MTDTransientTrackingRecHit::MTDTransientTrackingRecHit(const GeomDet* geom, const TrackingRecHit* rh)
0021     : GenericTransientTrackingRecHit(*geom, *rh) {}
0022 
0023 MTDTransientTrackingRecHit::MTDTransientTrackingRecHit(const MTDTransientTrackingRecHit& other)
0024     : GenericTransientTrackingRecHit(*other.det(), *(other.hit())) {}
0025 
0026 bool MTDTransientTrackingRecHit::isBTL() const {
0027   MTDDetId temp(geographicalId());
0028   return (temp.mtdSubDetector() == MTDDetId::BTL);
0029 }
0030 
0031 bool MTDTransientTrackingRecHit::isETL() const {
0032   MTDDetId temp(geographicalId());
0033   return (temp.mtdSubDetector() == MTDDetId::ETL);
0034 }
0035 
0036 void MTDTransientTrackingRecHit::invalidateHit() {
0037   setType(bad);  //trackingRecHit_->setType(bad); // maybe add in later
0038 }