test
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 (ME0EtaPartition *roll)
 Add EtaPartition to the chamber which takes ownership. More...
 
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
 Return the eta partition corresponding to the given id. More...
 
const ME0EtaPartitionetaPartition (int isl) const
 
const std::vector< const
ME0EtaPartition * > & 
etaPartitions () const
 Return the eta partitions. More...
 
ME0DetId id () const
 Return the ME0DetId of this chamber. More...
 
 ME0Chamber (ME0DetId id, const ReferenceCountingPointer< BoundPlane > &plane)
 Constructor. More...
 
int nEtaPartitions () const
 Retunr numbers of eta partitions. 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_
 

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

Model of a ME0 chamber.

A chamber is a GeomDet.

Author
S. Dildick by D. Nash

Definition at line 19 of file ME0Chamber.h.

Constructor & Destructor Documentation

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

Constructor.

Implementation of the Model for a ME0 Chamber

Author
S.Dildick by D.Nash

Definition at line 12 of file ME0Chamber.cc.

References GeomDet::setDetId().

12  :
13  GeomDet(plane), detId_(id)
14 {
15  setDetId(id);
16 }
void setDetId(DetId id)
Definition: GeomDet.h:120
ME0DetId detId_
Definition: ME0Chamber.h:58
GeomDet(Plane *plane)
Definition: GeomDet.h:34
ME0Chamber::~ME0Chamber ( )
virtual

Destructor.

Definition at line 18 of file ME0Chamber.cc.

18 {}

Member Function Documentation

void ME0Chamber::add ( ME0EtaPartition roll)

Add EtaPartition to the chamber which takes ownership.

Definition at line 28 of file ME0Chamber.cc.

References etaPartitions_.

Referenced by ME0GeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().

28  {
29  etaPartitions_.push_back(rl);
30 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:61
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 36 of file ME0Chamber.cc.

References etaPartition().

36  {
37  return etaPartition(ME0DetId(id.rawId()));
38 }
const ME0EtaPartition * etaPartition(ME0DetId id) const
Return the eta partition corresponding to the given id.
Definition: ME0Chamber.cc:48
std::vector< const GeomDet * > ME0Chamber::components ( ) const
virtual

Return the rolls in the chamber.

Reimplemented from GeomDet.

Definition at line 32 of file ME0Chamber.cc.

References etaPartitions_.

32  {
33  return std::vector<const GeomDet*>(etaPartitions_.begin(), etaPartitions_.end());
34 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:61
const ME0EtaPartition * ME0Chamber::etaPartition ( ME0DetId  id) const

Return the eta partition corresponding to the given id.

Definition at line 48 of file ME0Chamber.cc.

References detId_.

Referenced by component().

48  {
49  if (id.chamberId()!=detId_) return 0; // not in this eta partition!
50  return etaPartition(id.roll());
51 }
const ME0EtaPartition * etaPartition(ME0DetId id) const
Return the eta partition corresponding to the given id.
Definition: ME0Chamber.cc:48
ME0DetId detId_
Definition: ME0Chamber.h:58
const ME0EtaPartition * ME0Chamber::etaPartition ( int  isl) const

Definition at line 53 of file ME0Chamber.cc.

References etaPartitions_.

53  {
54  for (auto roll : etaPartitions_){
55  if (roll->id().roll()==isl)
56  return roll;
57  }
58  return 0;
59 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:61
const std::vector< const ME0EtaPartition * > & ME0Chamber::etaPartitions ( ) const

Return the eta partitions.

Definition at line 40 of file ME0Chamber.cc.

References etaPartitions_.

40  {
41  return etaPartitions_;
42 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:61
ME0DetId ME0Chamber::id ( void  ) const

Return the ME0DetId of this chamber.

Definition at line 20 of file ME0Chamber.cc.

References detId_.

Referenced by operator==().

20  {
21  return detId_;
22 }
ME0DetId detId_
Definition: ME0Chamber.h:58
int ME0Chamber::nEtaPartitions ( ) const

Retunr numbers of eta partitions.

Definition at line 44 of file ME0Chamber.cc.

References etaPartitions_.

44  {
45  return etaPartitions_.size();
46 }
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Chamber.h:61
bool ME0Chamber::operator== ( const ME0Chamber ch) const

equal if the id is the same

Definition at line 24 of file ME0Chamber.cc.

References id().

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

Which subdetector.

Reimplemented from GeomDet.

Definition at line 31 of file ME0Chamber.h.

References GeomDetEnumerators::ME0.

Member Data Documentation

ME0DetId ME0Chamber::detId_
private

Definition at line 58 of file ME0Chamber.h.

Referenced by etaPartition(), and id().

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

Definition at line 61 of file ME0Chamber.h.

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