CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

GEMEtaPartitionSpecs Class Reference

#include <GEMEtaPartitionSpecs.h>

Inheritance diagram for GEMEtaPartitionSpecs:
GeomDetType

List of all members.

Public Types

typedef std::vector< float > GEMSpecs

Public Member Functions

const std::string & detName () const
 GEMEtaPartitionSpecs (SubDetector rss, const std::string &name, const GEMSpecs &pars)
const StripTopologyspecificTopology () const
const Topologytopology () const
 ~GEMEtaPartitionSpecs ()

Private Attributes

std::string _n
std::vector< float > _p
StripTopology_top

Detailed Description

Storage of the parameters of the GEM Chamber using standard topologies

Author:
M. Maggi - INFN Bari

Definition at line 19 of file GEMEtaPartitionSpecs.h.


Member Typedef Documentation

typedef std::vector<float> GEMEtaPartitionSpecs::GEMSpecs

Definition at line 22 of file GEMEtaPartitionSpecs.h.


Constructor & Destructor Documentation

GEMEtaPartitionSpecs::GEMEtaPartitionSpecs ( SubDetector  rss,
const std::string &  name,
const GEMSpecs pars 
)

Definition at line 9 of file GEMEtaPartitionSpecs.cc.

References _p, _top, b, GeomDetEnumerators::GEM, h, and RecoTauPiZeroBuilderPlugins_cfi::strips.

  :  GeomDetType(name,rss),_p(pars),_n(name)
{
  if (rss == GEM ){
    float b = _p[0];
    float B = _p[1];
    float h = _p[2];
    float r0 = h*(B+b)/(B-b);
    float striplength = h*2;
    float strips = _p[3];
    float pitch = (b+B)/strips;
    int nstrip =static_cast<int>(strips);
    _top = new TrapezoidalStripTopology(nstrip,pitch,striplength,r0);
  } else {
    _top = 0;
  }
}
GEMEtaPartitionSpecs::~GEMEtaPartitionSpecs ( )

Definition at line 28 of file GEMEtaPartitionSpecs.cc.

References _top.

{
  if (_top)
    delete _top;
  _top=0;
}

Member Function Documentation

const std::string & GEMEtaPartitionSpecs::detName ( ) const

Definition at line 50 of file GEMEtaPartitionSpecs.cc.

References _n.

{
  return _n;
}
const StripTopology & GEMEtaPartitionSpecs::specificTopology ( ) const

Definition at line 43 of file GEMEtaPartitionSpecs.cc.

References _top.

Referenced by GEMEtaPartition::specificTopology().

{
  return *(_top);
}
const Topology & GEMEtaPartitionSpecs::topology ( ) const [virtual]

Implements GeomDetType.

Definition at line 37 of file GEMEtaPartitionSpecs.cc.

References _top.

Referenced by GEMEtaPartition::topology().

{
  return *(_top);
}

Member Data Documentation

std::string GEMEtaPartitionSpecs::_n [private]

Definition at line 37 of file GEMEtaPartitionSpecs.h.

Referenced by detName().

std::vector<float> GEMEtaPartitionSpecs::_p [private]

Definition at line 36 of file GEMEtaPartitionSpecs.h.

Referenced by GEMEtaPartitionSpecs().