3 namespace l1tVertexFinder {
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 TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
unsigned int tidRing(const DetId &id) const
void fillTruth(edm::Handle< TTStubAssMap > mcTruthTTStubHandle, edm::Handle< TTClusterAssMap > mcTruthTTClusterHandle)
std::set< TrackingParticlePtr > assocTPs_
Geom::Phi< T > phi() const
unsigned int side(const DetId &id) const
virtual int nrows() const =0
const AnalysisSettings * settings_
const Bounds & bounds() const
unsigned int tidWheel(const DetId &id) const
bool stubMatchStrict() const
const Plane & surface() const
The nominal surface of the GeomDet.
DetId partnerDetId(const DetId &id) const
double trackerOuterRadius() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
bool isNull() const
Checks for null.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
Abs< T >::type abs(const T &t)
static constexpr auto TOB
ModuleType getDetectorType(DetId) const
void setModuleInfo(const TrackerGeometry *trackerGeometry, const TrackerTopology *trackerTopology, const DetId &detId)
const TrackerGeomDet * idToDet(DetId) const override
static constexpr auto TIB
double trackerHalfLength() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
bool outerModuleAtSmallerR_
unsigned int layer(const DetId &id) const
TrackingParticlePtr assocTP_
virtual std::pair< float, float > pitch() const =0
virtual float width() const =0
Basic3DVector unit() const