#include <RPCRollSpecs.h>
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 StripTopology & | specificTopology () const |
const Topology & | topology () const |
~RPCRollSpecs () | |
Private Attributes | |
std::string | _n |
std::vector< float > | _p |
StripTopology * | _top |
Storage of the parameters of the RPC Chamber using standard topologies
Definition at line 19 of file RPCRollSpecs.h.
typedef std::vector<float> RPCRollSpecs::RPCSpecs |
Definition at line 22 of file RPCRollSpecs.h.
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 | ( | ) |
const std::string & RPCRollSpecs::detName | ( | ) | const |
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] |
Implements GeomDetType.
Definition at line 43 of file RPCRollSpecs.cc.
References _top.
Referenced by RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimAverageNoiseEffCls::simulate(), RPCSimTriv::simulate(), RPCSimSimple::simulate(), RPCSimAverage::simulate(), and RPCRoll::topology().
{ return *(_top); }
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().
StripTopology* RPCRollSpecs::_top [private] |
Definition at line 35 of file RPCRollSpecs.h.
Referenced by RPCRollSpecs(), specificTopology(), topology(), and ~RPCRollSpecs().