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)) {
76 for (
unsigned int iClus = 0; iClus <= 1; iClus++) {
77 const TTClusterRef& ttClusterRef = ttStubRef->clusterRef(iClus);
80 std::vector<edm::Ptr<TrackingParticle>> vecTpPtr =
138 std::pair<float, float> pitch = topo.
pitch();
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
double trackerOuterRadius() const
double trackerHalfLength() const
const TrackingParticlePtr & findTrackingParticlePtr(TTStubRefT< T > aStub) const
Operations.
void fillTruth(edm::Handle< TTStubAssMap > mcTruthTTStubHandle, edm::Handle< TTClusterAssMap > mcTruthTTClusterHandle)
Geom::Phi< T > phi() const
unsigned int tidWheel(const DetId &id) const
std::set< TrackingParticlePtr > assocTPs_
virtual int nrows() const =0
const AnalysisSettings * settings_
unsigned int side(const DetId &id) const
unsigned int layer(const DetId &id) const
bool isNull() const
Checks for null.
ModuleType getDetectorType(DetId) const
Abs< T >::type abs(const T &t)
DetId partnerDetId(const DetId &id) const
static constexpr auto TOB
Basic3DVector unit() const
void setModuleInfo(const TrackerGeometry *trackerGeometry, const TrackerTopology *trackerTopology, const DetId &detId)
const TrackerGeomDet * idToDet(DetId) const override
static constexpr auto TIB
const Plane & surface() const
The nominal surface of the GeomDet.
bool outerModuleAtSmallerR_
const Surface::PositionType & position() const
The position (origin of the R.F.)
bool stubMatchStrict() const
bool isGenuine(TTStubRefT< T > aStub) const
MC truth.
TrackingParticlePtr assocTP_
unsigned int tidRing(const DetId &id) const
virtual std::pair< float, float > pitch() const =0
const std::vector< TrackingParticlePtr > & findTrackingParticlePtrs(TTClusterRefT< T > aCluster) const
Get all TPs associated to a cluster.
const Bounds & bounds() const