CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ME0Chamber Class Reference

#include <ME0Chamber.h>

Inheritance diagram for ME0Chamber:
GeomDet

Public Member Functions

void add (ME0Layer *layer)
 Add Layer to the chamber which takes ownership. More...
 
void add (ME0EtaPartition *roll)
 
virtual const GeomDetcomponent (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...
 
const ME0EtaPartitionetaPartition (ME0DetId id) const
 
const ME0EtaPartitionetaPartition (int isl) const
 
const std::vector< const
ME0EtaPartition * > & 
etaPartitions () const
 
ME0DetId id () const
 Return the ME0DetId of this chamber. More...
 
const ME0Layerlayer (ME0DetId id) const
 Return the layer corresponding to the given id. More...
 
const ME0Layerlayer (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::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setGdetIndex (int i)
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
virtual const SurfaceDeformationsurfaceDeformation () 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 Topologytopology () const
 
virtual const GeomDetTypetype () 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
AlignmentPositionErrortheAlignmentPositionError = 0
 

Detailed Description

Definition at line 10 of file ME0Chamber.h.

Constructor & Destructor Documentation

ME0Chamber::ME0Chamber ( ME0DetId  id,
const ReferenceCountingPointer< BoundPlane > &  plane 
)

Constructor.

Definition at line 6 of file ME0Chamber.cc.

References GeomDet::setDetId().

6  :
7  GeomDet(plane), detId_(id)
8 {
9  setDetId(id);
10 }
void setDetId(DetId id)
Definition: GeomDet.h:120
ME0DetId detId_
Definition: ME0Chamber.h:69
GeomDet(Plane *plane)
Definition: GeomDet.h:34
ME0Chamber::~ME0Chamber ( )
virtual

Destructor.

Definition at line 12 of file ME0Chamber.cc.

12 {}

Member Function Documentation

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(), and counter.Counter::register().

22  {
23  layers_.push_back(rl);
24 }
std::vector< const ME0Layer * > layers_
Definition: ME0Chamber.h:72
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().

57  {
58  etaPartitions_.push_back(rl);
59 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:74
const GeomDet * ME0Chamber::component ( DetId  id) const
virtual

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().

30  {
31  return layer(ME0DetId(id.rawId()));
32 }
const ME0Layer * layer(ME0DetId id) const
Return the layer corresponding to the given id.
Definition: ME0Chamber.cc:42
std::vector< const GeomDet * > ME0Chamber::components ( ) const
virtual

Return the rolls in the chamber.

Reimplemented from GeomDet.

Definition at line 26 of file ME0Chamber.cc.

References layers_.

26  {
27  return std::vector<const GeomDet*>(layers_.begin(), layers_.end());
28 }
std::vector< const ME0Layer * > layers_
Definition: ME0Chamber.h:72
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_.

69  {
70  if (id.chamberId()!=detId_) return 0; // not in this eta partition!
71  return etaPartition(id.roll());
72 }
const ME0EtaPartition * etaPartition(ME0DetId id) const
Definition: ME0Chamber.cc:69
ME0DetId detId_
Definition: ME0Chamber.h:69
const ME0EtaPartition * ME0Chamber::etaPartition ( int  isl) const

Definition at line 74 of file ME0Chamber.cc.

References etaPartitions_.

74  {
75  for (auto roll : etaPartitions_){
76  if (roll->id().roll()==isl)
77  return roll;
78  }
79  return 0;
80 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:74
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_.

61  {
62  return etaPartitions_;
63 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:74
ME0DetId ME0Chamber::id ( void  ) const

Return the ME0DetId of this chamber.

Definition at line 14 of file ME0Chamber.cc.

References detId_.

Referenced by operator==().

14  {
15  return detId_;
16 }
ME0DetId detId_
Definition: ME0Chamber.h:69
const ME0Layer * ME0Chamber::layer ( ME0DetId  id) const

Return the layer corresponding to the given id.

Definition at line 42 of file ME0Chamber.cc.

References detId_.

Referenced by component(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

42  {
43  if (id.chamberId()!=detId_) return 0; // not in this layer!
44  return layer(id.roll());
45 }
const ME0Layer * layer(ME0DetId id) const
Return the layer corresponding to the given id.
Definition: ME0Chamber.cc:42
ME0DetId detId_
Definition: ME0Chamber.h:69
const ME0Layer * ME0Chamber::layer ( int  isl) const

Definition at line 47 of file ME0Chamber.cc.

References layers_.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

47  {
48  for (auto roll : layers_){
49  if (roll->id().roll()==isl)
50  return roll;
51  }
52  return 0;
53 }
std::vector< const ME0Layer * > layers_
Definition: ME0Chamber.h:72
const std::vector< const ME0Layer * > & ME0Chamber::layers ( ) const

Return the layers.

Definition at line 34 of file ME0Chamber.cc.

References layers_.

34  {
35  return layers_;
36 }
std::vector< const ME0Layer * > layers_
Definition: ME0Chamber.h:72
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_.

65  {
66  return etaPartitions_.size();
67 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:74
int ME0Chamber::nLayers ( ) const

Retunr numbers of layers.

Definition at line 38 of file ME0Chamber.cc.

References layers_.

38  {
39  return layers_.size();
40 }
std::vector< const ME0Layer * > layers_
Definition: ME0Chamber.h:72
bool ME0Chamber::operator== ( const ME0Chamber ch) const

equal if the id is the same

Definition at line 18 of file ME0Chamber.cc.

References id().

18  {
19  return this->id()==ch.id();
20 }
ME0DetId id() const
Return the ME0DetId of this chamber.
Definition: ME0Chamber.cc:14
virtual SubDetector ME0Chamber::subDetector ( ) const
inlinevirtual

Which subdetector.

Reimplemented from GeomDet.

Definition at line 22 of file ME0Chamber.h.

References GeomDetEnumerators::ME0.

Member Data Documentation

ME0DetId ME0Chamber::detId_
private

Definition at line 69 of file ME0Chamber.h.

Referenced by etaPartition(), id(), and layer().

std::vector<const ME0EtaPartition*> ME0Chamber::etaPartitions_
private

Definition at line 74 of file ME0Chamber.h.

Referenced by add(), etaPartition(), etaPartitions(), and nEtaPartitions().

std::vector<const ME0Layer*> ME0Chamber::layers_
private

Definition at line 72 of file ME0Chamber.h.

Referenced by add(), components(), layer(), layers(), and nLayers().