Go to the documentation of this file.
15 SensorModule::SensorModule(
const Setup&
setup,
const DetId& detId,
int dtcId,
int modId)
16 : detId_(detId), dtcId_(dtcId), modId_(modId) {
21 dynamic_cast<const PixelTopology*>(&(dynamic_cast<const PixelGeomDetUnit*>(geomDetUnit)->specificTopology()));
22 const Plane& plane = dynamic_cast<const PixelGeomDetUnit*>(geomDetUnit)->surface();
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_);
const Surface::PositionType & position() const
The position (origin of the R.F.)
virtual std::pair< float, float > pitch() const =0
unsigned int layer(const DetId &id) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Class to process and provide run-time constants used by Track Trigger emulators.
ModuleType getDetectorType(DetId) const
unsigned int tidRing(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
Sin< T >::type sin(const T &t)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Cos< T >::type cos(const T &t)
DetId partnerDetId(const DetId &id) const
virtual int ncolumns() const =0
Global3DPoint GlobalPoint
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
static int position[264][3]
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
double deltaPhi(double lhs, double rhs=0.)
static constexpr auto TOB
Basic3DVector< T > x() const
const RotationType & rotation() const
virtual int nrows() const =0
Geom::Phi< T > phi() const
Geom::Phi< T > phi() const
unsigned int tobSide(const DetId &id) const