#include <ME0Chamber.h>
Public Member Functions | |
void | add (ME0Layer *layer) |
Add Layer to the chamber which takes ownership. More... | |
void | add (ME0EtaPartition *roll) |
virtual const GeomDet * | component (DetId id) const |
Return the sub-component (roll) with a given id in this chamber. More... | |
virtual std::vector< const GeomDet * > | components () const |
Return the rolls in the chamber. More... | |
float | computeDeltaPhi (const LocalPoint &position, const LocalVector &direction) const |
const ME0EtaPartition * | etaPartition (ME0DetId id) const |
const ME0EtaPartition * | etaPartition (int isl) const |
const std::vector< const ME0EtaPartition * > & | etaPartitions () const |
ME0DetId | id () const |
Return the ME0DetId of this chamber. More... | |
const ME0Layer * | layer (ME0DetId id) const |
Return the layer corresponding to the given id. More... | |
const ME0Layer * | layer (int isl) const |
const std::vector< const ME0Layer * > & | layers () const |
Return the layers. More... | |
ME0Chamber (ME0DetId id, const ReferenceCountingPointer< BoundPlane > &plane) | |
Constructor. More... | |
int | nEtaPartitions () const |
int | nLayers () const |
Retunr numbers of layers. More... | |
bool | operator== (const ME0Chamber &ch) const |
equal if the id is the same More... | |
virtual SubDetector | subDetector () const |
Which subdetector. More... | |
virtual | ~ME0Chamber () |
Destructor. More... | |
Public Member Functions inherited from GeomDet | |
AlignmentPositionError const * | alignmentPositionError () const |
Return pointer to alignment errors. More... | |
int | gdetIndex () const |
DetId | geographicalId () const |
The label of this GeomDet. More... | |
GeomDet (Plane *plane) | |
GeomDet (const ReferenceCountingPointer< Plane > &plane) | |
int | index () const |
virtual bool | isLeaf () const |
is a Unit More... | |
const Surface::PositionType & | position () const |
The position (origin of the R.F.) More... | |
const Surface::RotationType & | rotation () const |
The rotation defining the local R.F. More... | |
void | setGdetIndex (int i) |
void | setIndex (int i) |
const Plane & | specificSurface () const |
Same as surface(), kept for backward compatibility. More... | |
const Plane & | surface () const |
The nominal surface of the GeomDet. More... | |
virtual const SurfaceDeformation * | surfaceDeformation () const |
GlobalPoint | toGlobal (const Local2DPoint &lp) const |
Conversion to the global R.F. from the R.F. of the GeomDet. More... | |
GlobalPoint | toGlobal (const Local3DPoint &lp) const |
Conversion to the global R.F. from the R.F. of the GeomDet. More... | |
GlobalVector | toGlobal (const LocalVector &lv) const |
Conversion to the global R.F. from the R.F. of the GeomDet. More... | |
LocalPoint | toLocal (const GlobalPoint &gp) const |
Conversion to the R.F. of the GeomDet. More... | |
LocalVector | toLocal (const GlobalVector &gv) const |
Conversion to the R.F. of the GeomDet. More... | |
virtual const Topology & | topology () const |
virtual const GeomDetType & | type () const |
virtual | ~GeomDet () |
Private Attributes | |
ME0DetId | detId_ |
std::vector< const ME0EtaPartition * > | etaPartitions_ |
std::vector< const ME0Layer * > | layers_ |
Additional Inherited Members | |
Public Types inherited from GeomDet | |
using | SubDetector = GeomDetEnumerators::SubDetector |
Protected Member Functions inherited from GeomDet | |
void | setDetId (DetId id) |
Protected Attributes inherited from GeomDet | |
AlignmentPositionError * | theAlignmentPositionError = 0 |
Definition at line 10 of file ME0Chamber.h.
ME0Chamber::ME0Chamber | ( | ME0DetId | id, |
const ReferenceCountingPointer< BoundPlane > & | plane | ||
) |
|
virtual |
void ME0Chamber::add | ( | ME0Layer * | layer | ) |
Add Layer to the chamber which takes ownership.
Definition at line 22 of file ME0Chamber.cc.
References layers_.
Referenced by ME0GeometryBuilderFromDDD10EtaPart::buildGeometry(), ME0GeometryBuilderFromDDD::buildGeometry(), counter.Counter::register(), and subDetector().
void ME0Chamber::add | ( | ME0EtaPartition * | roll | ) |
To support the old ME0 Geometry (with 1 eta partition) Add EtaPartition to the chamber which takes ownership
Definition at line 57 of file ME0Chamber.cc.
References etaPartitions_.
Referenced by counter.Counter::register().
Return the sub-component (roll) with a given id in this chamber.
Reimplemented from GeomDet.
Definition at line 30 of file ME0Chamber.cc.
References layer().
Referenced by subDetector().
|
virtual |
Return the rolls in the chamber.
Reimplemented from GeomDet.
Definition at line 26 of file ME0Chamber.cc.
References layers_.
Referenced by subDetector().
float ME0Chamber::computeDeltaPhi | ( | const LocalPoint & | position, |
const LocalVector & | direction | ||
) | const |
Definition at line 82 of file ME0Chamber.cc.
References dir, layer(), nLayers(), point, GeomDet::position(), GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by ME0SegAlgoRU::addUniqueSegments(), ME0SegmentAlgorithm::buildSegments(), and subDetector().
const ME0EtaPartition * ME0Chamber::etaPartition | ( | ME0DetId | id | ) | const |
To support the old ME0 Geometry (with 1 eta partition) Return the eta partition corresponding to the given id
Definition at line 69 of file ME0Chamber.cc.
References detId_.
Referenced by subDetector().
const ME0EtaPartition * ME0Chamber::etaPartition | ( | int | isl | ) | const |
Definition at line 74 of file ME0Chamber.cc.
References etaPartitions_.
const std::vector< const ME0EtaPartition * > & ME0Chamber::etaPartitions | ( | ) | const |
To support the old ME0 Geometry (with 1 eta partition) Return the eta partitions
Definition at line 61 of file ME0Chamber.cc.
References etaPartitions_.
Referenced by subDetector().
ME0DetId ME0Chamber::id | ( | void | ) | const |
Return the ME0DetId of this chamber.
Definition at line 14 of file ME0Chamber.cc.
References detId_.
Referenced by ME0SegmentAlgorithm::isGoodToMerge(), operator==(), and ME0SegAlgoRU::run().
Return the layer corresponding to the given id.
Definition at line 42 of file ME0Chamber.cc.
References detId_.
Referenced by component(), computeDeltaPhi(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), layer(), and subDetector().
const ME0Layer * ME0Chamber::layer | ( | int | isl | ) | const |
Definition at line 47 of file ME0Chamber.cc.
References ME0Layer::id(), layer(), ME0DetId::layer(), and layers_.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
const std::vector< const ME0Layer * > & ME0Chamber::layers | ( | ) | const |
Return the layers.
Definition at line 34 of file ME0Chamber.cc.
References layers_.
Referenced by ME0SegmentBuilder::build(), and subDetector().
int ME0Chamber::nEtaPartitions | ( | ) | const |
To support the old ME0 Geometry (with 1 eta partition) Retunr numbers of eta partitions
Definition at line 65 of file ME0Chamber.cc.
References etaPartitions_.
Referenced by subDetector().
int ME0Chamber::nLayers | ( | ) | const |
Retunr numbers of layers.
Definition at line 38 of file ME0Chamber.cc.
References layers_.
Referenced by computeDeltaPhi(), and subDetector().
bool ME0Chamber::operator== | ( | const ME0Chamber & | ch | ) | const |
equal if the id is the same
Definition at line 18 of file ME0Chamber.cc.
References id().
Referenced by subDetector().
|
inlinevirtual |
Which subdetector.
Reimplemented from GeomDet.
Definition at line 22 of file ME0Chamber.h.
References add(), component(), components(), computeDeltaPhi(), etaPartition(), etaPartitions(), layer(), layers(), GeomDetEnumerators::ME0, nEtaPartitions(), nLayers(), operator==(), and GeomDet::position().
|
private |
Definition at line 74 of file ME0Chamber.h.
Referenced by etaPartition(), id(), and layer().
|
private |
Definition at line 79 of file ME0Chamber.h.
Referenced by add(), etaPartition(), etaPartitions(), and nEtaPartitions().
|
private |
Definition at line 77 of file ME0Chamber.h.
Referenced by add(), components(), layer(), layers(), and nLayers().