|
 |
Go to the documentation of this file.
29 outerModuleAtSmallerR_(
false) {}
35 :
TTStubRef(ttStubRef), settings_(&settings) {
36 auto geoDetId = trackerGeometry->
idToDet(ttStubRef->clusterRef(0)->getDetId())->geographicalId();
37 auto theGeomDet = trackerGeometry->
idToDet(geoDetId);
38 auto measurementPoint = ttStubRef->clusterRef(0)->findAverageLocalCoordinatesCentered();
39 auto pos = theGeomDet->surface().toGlobal(theGeomDet->topology().localPosition(measurementPoint));
48 "Stub: Stub found outside assumed tracker volume. Please update tracker dimensions specified in Settings.h!")
49 <<
" r=" <<
r_ <<
" z=" <<
z_ <<
" " << ttStubRef->getDetId().subdetId() << std::endl;
53 this->
setModuleInfo(trackerGeometry, trackerTopology, geoDetId);
64 if (mcTruthTTStubHandle->isGenuine(ttStubRef)) {
65 assocTP_ = mcTruthTTStubHandle->findTrackingParticlePtr(ttStubRef);
76 for (
unsigned int iClus = 0; iClus <= 1; iClus++) {
77 const TTClusterRef& ttClusterRef = ttStubRef->clusterRef(iClus);
80 std::vector<edm::Ptr<TrackingParticle>> vecTpPtr =
81 mcTruthTTClusterHandle->findTrackingParticlePtrs(ttClusterRef);
138 std::pair<float, float> pitch = topo.
pitch();
const Surface::PositionType & position() const
The position (origin of the R.F.)
const TrackerGeomDet * idToDet(DetId) const override
unsigned int side(const DetId &id) const
virtual float width() const =0
virtual std::pair< float, float > pitch() const =0
void fillTruth(edm::Handle< TTStubAssMap > mcTruthTTStubHandle, edm::Handle< TTClusterAssMap > mcTruthTTClusterHandle)
unsigned int layer(const DetId &id) const
std::set< TrackingParticlePtr > assocTPs_
ModuleType getDetectorType(DetId) const
const AnalysisSettings * settings_
unsigned int tidRing(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const Plane & surface() const
The nominal surface of the GeomDet.
const Bounds & bounds() const
DetId partnerDetId(const DetId &id) const
static constexpr auto TIB
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Basic3DVector unit() const
bool stubMatchStrict() const
void setModuleInfo(const TrackerGeometry *trackerGeometry, const TrackerTopology *trackerTopology, const DetId &detId)
double trackerOuterRadius() const
double trackerHalfLength() const
static constexpr auto TOB
Abs< T >::type abs(const T &t)
bool outerModuleAtSmallerR_
virtual int nrows() const =0
bool isNull() const
Checks for null.
Geom::Phi< T > phi() const
TrackingParticlePtr assocTP_