19 return std::vector<const GeomDet*>(
layers_.begin(),
layers_.end());
29 if (
id.chamberId() !=
detId_)
51 if (
id.chamberId() !=
detId_)
58 if (roll->id().roll() == isl)
66 double extX = point.
x() + extZ * dir.x() / dir.z();
67 double extY = point.
y() + extZ * dir.y() / dir.z();
75 const float centerOfChamber = this->
position().
z();
79 extrap(position, direction, (centerOfChamber < 0 ? -1.0 : 1.0) * (endOfChamber - centerOfChamber));
81 extrap(position, direction, (centerOfChamber < 0 ? -1.0 : 1.0) * (beginOfChamber - centerOfChamber));
84 return globHigh.phi() - globLow.phi();
int nLayers() const
Retunr numbers of layers.
const std::vector< const ME0EtaPartition * > & etaPartitions() const
int nEtaPartitions() const
Point3DBase< Scalar, LocalTag > LocalPoint
const ME0Layer * layer(ME0DetId id) const
Return the layer corresponding to the given id.
std::vector< const GeomDet * > components() const override
Return the rolls in the chamber.
std::vector< const ME0EtaPartition * > etaPartitions_
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
ME0DetId id() const
Return the ME0DetId of this chamber.
void add(ME0Layer *layer)
Add Layer to the chamber which takes ownership.
std::vector< const ME0Layer * > layers_
ME0DetId id() const
Return the ME0DetId of this layer.
const Surface::PositionType & position() const
The position (origin of the R.F.)
float computeDeltaPhi(const LocalPoint &position, const LocalVector &direction) const
ME0Chamber(ME0DetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
const ME0EtaPartition * etaPartition(ME0DetId id) const
static int position[264][3]
bool operator==(const ME0Chamber &ch) const
equal if the id is the same
const GeomDet * component(DetId id) const override
Return the sub-component (roll) with a given id in this chamber.
const std::vector< const ME0Layer * > & layers() const
Return the layers.
int layer() const
Layer id: each chamber has six layers of chambers: layer 1 is the inner layer and layer 6 is the oute...
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
~ME0Chamber() override
Destructor.