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)
110 const int lay =
layer +
setup.offsetLayerId();
115 const vector<int>& encodingLayerId =
setup.encodingLayerId(
dtcId_);
116 const auto pos =
find(encodingLayerId.begin(), encodingLayerId.end(),
layerId_);
unsigned int tobSide(const DetId &id) const
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Geom::Phi< T > phi() const
unsigned int tidWheel(const DetId &id) const
Sin< T >::type sin(const T &t)
Global3DPoint GlobalPoint
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double deltaPhi(double lhs, double rhs=0.)
unsigned int layer(const DetId &id) const
constexpr std::array< uint8_t, layerIndexSize > layer
Basic3DVector< T > x() const
ModuleType getDetectorType(DetId) const
Cos< T >::type cos(const T &t)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
DetId partnerDetId(const DetId &id) const
static constexpr auto TOB
Class to process and provide run-time constants used by Track Trigger emulators.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
unsigned int tobRod(const DetId &id) const
const Surface::PositionType & position() const
The position (origin of the R.F.)
static int position[264][3]
unsigned int tidRing(const DetId &id) const
const RotationType & rotation() const
Geom::Phi< T > phi() const