CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RPCRollSpecs Class Reference

#include <RPCRollSpecs.h>

Inheritance diagram for RPCRollSpecs:
GeomDetType

List of all members.

Public Types

typedef std::vector< float > RPCSpecs

Public Member Functions

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

Private Attributes

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

Detailed Description

Storage of the parameters of the RPC Chamber using standard topologies

Author:
M. Maggi - INFN Bari

Definition at line 19 of file RPCRollSpecs.h.


Member Typedef Documentation

typedef std::vector<float> RPCRollSpecs::RPCSpecs

Definition at line 22 of file RPCRollSpecs.h.


Constructor & Destructor Documentation

RPCRollSpecs::RPCRollSpecs ( SubDetector  rss,
const std::string &  name,
const RPCSpecs pars 
)

Definition at line 9 of file RPCRollSpecs.cc.

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

  :  GeomDetType(name,rss),_p(pars),_n(name)
{
  if (rss == RPCBarrel ){
    int nstrip =static_cast<int>( _p[2]);
    float pitch = _p[0]*2/_p[2];
    float striplength = _p[1]*2;
    _top = new RectangularStripTopology(nstrip,pitch,striplength);
  }else if (rss == RPCEndcap ){
    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;
  }
}
RPCRollSpecs::~RPCRollSpecs ( )

Definition at line 34 of file RPCRollSpecs.cc.

References _top.

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

Member Function Documentation

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

Definition at line 56 of file RPCRollSpecs.cc.

References _n.

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

Definition at line 49 of file RPCRollSpecs.cc.

References _top.

Referenced by RPCRoll::specificTopology().

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

Member Data Documentation

std::string RPCRollSpecs::_n [private]

Definition at line 37 of file RPCRollSpecs.h.

Referenced by detName().

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

Definition at line 36 of file RPCRollSpecs.h.

Referenced by RPCRollSpecs().

Definition at line 35 of file RPCRollSpecs.h.

Referenced by RPCRollSpecs(), specificTopology(), topology(), and ~RPCRollSpecs().