CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
RPCRollSpecs Class Reference

#include <RPCRollSpecs.h>

Inheritance diagram for RPCRollSpecs:
GeomDetType

Public Types

typedef std::vector< float > RPCSpecs
 
- Public Types inherited from GeomDetType
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 

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 ()
 
- Public Member Functions inherited from GeomDetType
 GeomDetType (const std::string &name, SubDetector subdet)
 
bool isBarrel () const
 
bool isCSC () const
 
bool isDT () const
 
bool isEndcap () const
 
bool isGEM () const
 
bool isMuon () const
 
bool isRPC () const
 
bool isTracker () const
 
bool isTrackerPixel () const
 
bool isTrackerStrip () const
 
const std::string & name () const
 
SubDetector subDetector () const
 
virtual ~GeomDetType ()
 

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.

10  : GeomDetType(name,rss),_p(pars),_n(name)
11 {
12  if (rss == RPCBarrel ){
13  int nstrip =static_cast<int>( _p[2]);
14  float pitch = _p[0]*2/_p[2];
15  float striplength = _p[1]*2;
16  _top = new RectangularStripTopology(nstrip,pitch,striplength);
17  }else if (rss == RPCEndcap ){
18  float b = _p[0];
19  float B = _p[1];
20  float h = _p[2];
21  float r0 = h*(B+b)/(B-b);
22  float striplength = h*2;
23  float strips = _p[3];
24  float pitch = (b+B)/strips;
25  int nstrip =static_cast<int>(strips);
26 
27  _top = new TrapezoidalStripTopology(nstrip,pitch,striplength,r0);
28  } else {
29  _top = 0;
30  }
31 }
std::string _n
Definition: RPCRollSpecs.h:37
double_binary B
Definition: DDStreamer.cc:234
StripTopology * _top
Definition: RPCRollSpecs.h:35
const std::string & name() const
Definition: GeomDetType.h:20
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
GeomDetType(const std::string &name, SubDetector subdet)
Definition: GeomDetType.cc:5
double b
Definition: hdecay.h:120
std::vector< float > _p
Definition: RPCRollSpecs.h:36
RPCRollSpecs::~RPCRollSpecs ( )

Definition at line 34 of file RPCRollSpecs.cc.

References _top.

35 {
36  if (_top)
37  delete _top;
38  _top=0;
39 }
StripTopology * _top
Definition: RPCRollSpecs.h:35

Member Function Documentation

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

Definition at line 56 of file RPCRollSpecs.cc.

References _n.

57 {
58  return _n;
59 }
std::string _n
Definition: RPCRollSpecs.h:37
const StripTopology & RPCRollSpecs::specificTopology ( ) const

Definition at line 49 of file RPCRollSpecs.cc.

References _top.

Referenced by RPCRoll::specificTopology().

50 {
51  return *(_top);
52 }
StripTopology * _top
Definition: RPCRollSpecs.h:35
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().

StripTopology* RPCRollSpecs::_top
private

Definition at line 35 of file RPCRollSpecs.h.

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