test
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
GEMEtaPartitionSpecs Class Reference

#include <GEMEtaPartitionSpecs.h>

Inheritance diagram for GEMEtaPartitionSpecs:
GeomDetType

Public Types

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

Public Member Functions

const std::string & detName () const
 
 GEMEtaPartitionSpecs (SubDetector rss, const std::string &name, const GEMSpecs &pars)
 
const TopologypadTopology () const
 
const GEMSpecsparameters () const
 
const StripTopologyspecificPadTopology () const
 
const StripTopologyspecificTopology () const
 
const Topologytopology () const
 
 ~GEMEtaPartitionSpecs ()
 
- 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 isME0 () 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
 topology of strips More...
 
StripTopology_top_pad
 topology of trigger pads (pad = bundle of strips, basically, a "fat" strip) More...
 

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 23 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, _top_pad, b, GeomDetEnumerators::GEM, h, gen::npad, and RecoTauPiZeroBuilderPlugins_cfi::strips.

10  : GeomDetType(name, rss), _p(pars), _n(name)
11 {
12  if (rss == GEM )
13  {
14  float b = _p[0];
15  float B = _p[1];
16  float h = _p[2];
17  float r0 = h*(B + b)/(B - b);
18  float striplength = h*2;
19  float strips = _p[3];
20  float pitch = (b + B)/strips;
21  int nstrip =static_cast<int>(strips);
22  _top = new TrapezoidalStripTopology(nstrip, pitch, striplength, r0);
23 
24  float pads = _p[4];
25  float pad_pitch = (b + B)/pads;
26  int npad =static_cast<int>(pads);
27  _top_pad = new TrapezoidalStripTopology(npad, pad_pitch, striplength, r0);
28  } else {
29  _top = nullptr;
30  _top_pad = nullptr;
31  }
32 }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
double_binary B
Definition: DDStreamer.cc:234
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a &quot;fat&quot; strip)
const std::string & name() const
Definition: GeomDetType.h:20
std::vector< float > _p
GeomDetType(const std::string &name, SubDetector subdet)
Definition: GeomDetType.cc:5
double b
Definition: hdecay.h:120
StripTopology * _top
topology of strips
GEMEtaPartitionSpecs::~GEMEtaPartitionSpecs ( )

Definition at line 35 of file GEMEtaPartitionSpecs.cc.

References _top, and _top_pad.

36 {
37  if (_top) delete _top;
38  if (_top_pad) delete _top_pad;
39 }
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a &quot;fat&quot; strip)
StripTopology * _top
topology of strips

Member Function Documentation

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

Definition at line 69 of file GEMEtaPartitionSpecs.cc.

References _n.

70 {
71  return _n;
72 }
const Topology & GEMEtaPartitionSpecs::padTopology ( ) const

Definition at line 56 of file GEMEtaPartitionSpecs.cc.

References _top_pad.

Referenced by GEMEtaPartition::padTopology().

57 {
58  return *_top_pad;
59 }
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a &quot;fat&quot; strip)
const std::vector< float > & GEMEtaPartitionSpecs::parameters ( void  ) const

Definition at line 76 of file GEMEtaPartitionSpecs.cc.

References _p.

77 {
78  return _p;
79 }
std::vector< float > _p
const StripTopology & GEMEtaPartitionSpecs::specificPadTopology ( ) const

Definition at line 62 of file GEMEtaPartitionSpecs.cc.

References _top_pad.

Referenced by GEMEtaPartition::specificPadTopology().

63 {
64  return *_top_pad;
65 }
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a &quot;fat&quot; strip)
const StripTopology & GEMEtaPartitionSpecs::specificTopology ( ) const

Definition at line 49 of file GEMEtaPartitionSpecs.cc.

References _top.

Referenced by GEMTrackMatch::setGeometry(), and GEMEtaPartition::specificTopology().

50 {
51  return *_top;
52 }
StripTopology * _top
topology of strips
const Topology & GEMEtaPartitionSpecs::topology ( ) const
virtual

Implements GeomDetType.

Definition at line 43 of file GEMEtaPartitionSpecs.cc.

References _top.

Referenced by GEMTrivialModel::simulateSignal(), and GEMEtaPartition::topology().

44 {
45  return *_top;
46 }
StripTopology * _top
topology of strips

Member Data Documentation

std::string GEMEtaPartitionSpecs::_n
private

Definition at line 50 of file GEMEtaPartitionSpecs.h.

Referenced by detName().

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

Definition at line 49 of file GEMEtaPartitionSpecs.h.

Referenced by GEMEtaPartitionSpecs(), and parameters().

StripTopology* GEMEtaPartitionSpecs::_top
private

topology of strips

Definition at line 44 of file GEMEtaPartitionSpecs.h.

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

StripTopology* GEMEtaPartitionSpecs::_top_pad
private

topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)

Definition at line 47 of file GEMEtaPartitionSpecs.h.

Referenced by GEMEtaPartitionSpecs(), padTopology(), specificPadTopology(), and ~GEMEtaPartitionSpecs().