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
GEMChamber Class Reference

#include <GEMChamber.h>

Inheritance diagram for GEMChamber:
GeomDet

Public Member Functions

void add (GEMEtaPartition *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 GEMEtaPartitionetaPartition (GEMDetId id) const
 Return the eta partition corresponding to the given id. More...
 
const GEMEtaPartitionetaPartition (int isl) const
 
const std::vector< const
GEMEtaPartition * > & 
etaPartitions () const
 Return the eta partitions. More...
 
 GEMChamber (GEMDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
 Constructor. More...
 
GEMDetId id () const
 Return the GEMDetId of this chamber. More...
 
int nEtaPartitions () const
 Retunr numbers of eta partitions. More...
 
bool operator== (const GEMChamber &ch) const
 equal if the id is the same More...
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
virtual ~GEMChamber ()
 Destructor. More...
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
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 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

GEMDetId detId_
 
std::vector< const
GEMEtaPartition * > 
etaPartitions_
 

Additional Inherited Members

- Public Types inherited from GeomDet
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError
 

Detailed Description

Model of a GEM chamber.

A chamber is a GeomDet. The chamber is composed by 6,8 or 10 eta partitions (GeomDetUnit).

Author
S. Dildick

Definition at line 19 of file GEMChamber.h.

Constructor & Destructor Documentation

GEMChamber::GEMChamber ( GEMDetId  id,
const ReferenceCountingPointer< BoundPlane > &  plane 
)

Constructor.

Implementation of the Model for a GEM Chamber

Author
S.Dildick

Definition at line 11 of file GEMChamber.cc.

References GeomDet::setDetId().

11  :
12  GeomDet(plane), detId_(id)
13 {
14  setDetId(id);
15 }
GEMDetId detId_
Definition: GEMChamber.h:58
void setDetId(DetId id)
Definition: GeomDet.h:114
GeomDet(Plane *plane)
Definition: GeomDet.cc:5
GEMChamber::~GEMChamber ( )
virtual

Destructor.

Definition at line 17 of file GEMChamber.cc.

17 {}

Member Function Documentation

void GEMChamber::add ( GEMEtaPartition roll)

Add EtaPartition to the chamber which takes ownership.

Definition at line 27 of file GEMChamber.cc.

References etaPartitions_.

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

27  {
28  etaPartitions_.push_back(rl);
29 }
std::vector< const GEMEtaPartition * > etaPartitions_
Definition: GEMChamber.h:61
const GeomDet * GEMChamber::component ( DetId  id) const
virtual

Return the sub-component (roll) with a given id in this chamber.

Reimplemented from GeomDet.

Definition at line 35 of file GEMChamber.cc.

References etaPartition().

35  {
36  return etaPartition(GEMDetId(id.rawId()));
37 }
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return the eta partition corresponding to the given id.
Definition: GEMChamber.cc:47
std::vector< const GeomDet * > GEMChamber::components ( ) const
virtual

Return the rolls in the chamber.

Reimplemented from GeomDet.

Definition at line 31 of file GEMChamber.cc.

References etaPartitions_.

31  {
32  return std::vector<const GeomDet*>(etaPartitions_.begin(), etaPartitions_.end());
33 }
std::vector< const GEMEtaPartition * > etaPartitions_
Definition: GEMChamber.h:61
const GEMEtaPartition * GEMChamber::etaPartition ( GEMDetId  id) const

Return the eta partition corresponding to the given id.

Definition at line 47 of file GEMChamber.cc.

References detId_.

Referenced by component().

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

Definition at line 52 of file GEMChamber.cc.

References etaPartitions_.

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

Return the eta partitions.

Definition at line 39 of file GEMChamber.cc.

References etaPartitions_.

39  {
40  return etaPartitions_;
41 }
std::vector< const GEMEtaPartition * > etaPartitions_
Definition: GEMChamber.h:61
GEMDetId GEMChamber::id ( void  ) const

Return the GEMDetId of this chamber.

Definition at line 19 of file GEMChamber.cc.

References detId_.

Referenced by operator==().

19  {
20  return detId_;
21 }
GEMDetId detId_
Definition: GEMChamber.h:58
int GEMChamber::nEtaPartitions ( ) const

Retunr numbers of eta partitions.

Definition at line 43 of file GEMChamber.cc.

References etaPartitions_.

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

equal if the id is the same

Definition at line 23 of file GEMChamber.cc.

References id().

23  {
24  return this->id()==ch.id();
25 }
GEMDetId id() const
Return the GEMDetId of this chamber.
Definition: GEMChamber.cc:19
virtual SubDetector GEMChamber::subDetector ( ) const
inlinevirtual

Which subdetector.

Reimplemented from GeomDet.

Definition at line 31 of file GEMChamber.h.

References GeomDetEnumerators::GEM.

Member Data Documentation

GEMDetId GEMChamber::detId_
private

Definition at line 58 of file GEMChamber.h.

Referenced by etaPartition(), and id().

std::vector<const GEMEtaPartition*> GEMChamber::etaPartitions_
private

Definition at line 61 of file GEMChamber.h.

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