13 namespace trackerDTC {
15 SensorModule::SensorModule(
const Setup&
setup,
const DetId& detId,
int dtcId,
int modId)
16 : detId_(detId), dtcId_(dtcId), modId_(modId) {
54 : atan2(pos0.
z() - pos1.z(), pos1.perp() - pos0.
perp());
97 enum TypeBarrel { nonBarrel = 0, tiltedMinus = 1, tiltedPlus = 2, flat = 3 };
98 const TypeBarrel
type =
static_cast<TypeBarrel
>(trackerTopology->
tobSide(detId));
103 if (type == tiltedMinus)
116 const auto pos =
find(encodingLayerId.begin(), encodingLayerId.end(),
layerId_);
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
unsigned int tidRing(const DetId &id) const
virtual int ncolumns() const =0
double baseRegion() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
Global3DPoint GlobalPoint
virtual int nrows() const =0
unsigned int tidWheel(const DetId &id) const
Geom::Phi< T > phi() const
double windowSizeBarrelLayer(int layerId) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double deltaPhi(double lhs, double rhs=0.)
Basic3DVector< T > x() const
DetId partnerDetId(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
int numDTCsPerRegion() const
const Surface::PositionType & position() const
The position (origin of the R.F.)
double windowSizeTiltedLayerRing(int layerId, int ring) const
const TrackerTopology * trackerTopology() const
Cos< T >::type cos(const T &t)
unsigned int tobSide(const DetId &id) const
const std::vector< int > & encodingLayerId(int tfpChannel) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
double hybridDiskZ(int layerId) const
double numTiltedLayerRing(int layerId) const
double baseWindowSize() const
static constexpr auto TOB
ModuleType getDetectorType(DetId) const
Class to process and provide run-time constants used by Track Trigger emulators.
int hybridNumRingsPS(int layerId) const
const TrackerGeometry * trackerGeometry() const
int offsetLayerId() const
double windowSizeEndcapDisksRing(int layerId, int ring) const
double hybridLayerR(int layerId) const
unsigned int layer(const DetId &id) const
int offsetLayerDisks() const
static int position[264][3]
const RotationType & rotation() const
virtual std::pair< float, float > pitch() const =0
unsigned int tobRod(const DetId &id) const