CMS 3D CMS Logo

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 override
 
 ~GEMEtaPartitionSpecs () override
 
- 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 isInnerTracker () const
 
bool isME0 () const
 
bool isMuon () const
 
bool isOuterTracker () const
 
bool isRPC () const
 
bool isTiming () 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 18 of file GEMEtaPartitionSpecs.h.

Member Typedef Documentation

◆ GEMSpecs

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

Definition at line 20 of file GEMEtaPartitionSpecs.h.

Constructor & Destructor Documentation

◆ GEMEtaPartitionSpecs()

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

Definition at line 7 of file GEMEtaPartitionSpecs.cc.

8  : GeomDetType(name, rss), _p(pars), _n(name) {
9  if (rss == GEM) {
10  float b = _p[0];
11  float B = _p[1];
12  float h = _p[2];
13  float r0 = h * (B + b) / (B - b);
14  float striplength = h * 2;
15  float strips = _p[3];
16  float pitch = (b + B) / strips;
17  int nstrip = static_cast<int>(strips);
18  _top = new TrapezoidalStripTopology(nstrip, pitch, striplength, r0);
19 
20  float pads = _p[4];
21  float pad_pitch = (b + B) / pads;
22  int npad = static_cast<int>(pads);
23  _top_pad = new TrapezoidalStripTopology(npad, pad_pitch, striplength, r0);
24  } else {
25  _top = nullptr;
26  _top_pad = nullptr;
27  }
28 }

References _p, _top, _top_pad, TtFullHadDaughter::B, b, GeomDetEnumerators::GEM, gen::npad, and DigiDM_cff::strips.

◆ ~GEMEtaPartitionSpecs()

GEMEtaPartitionSpecs::~GEMEtaPartitionSpecs ( )
override

Definition at line 30 of file GEMEtaPartitionSpecs.cc.

30  {
31  if (_top)
32  delete _top;
33  if (_top_pad)
34  delete _top_pad;
35 }

References _top, and _top_pad.

Member Function Documentation

◆ detName()

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

Definition at line 45 of file GEMEtaPartitionSpecs.cc.

45 { return _n; }

References _n.

◆ padTopology()

const Topology & GEMEtaPartitionSpecs::padTopology ( ) const

Definition at line 41 of file GEMEtaPartitionSpecs.cc.

41 { return *_top_pad; }

References _top_pad.

Referenced by GEMEtaPartition::padTopology().

◆ parameters()

const std::vector< float > & GEMEtaPartitionSpecs::parameters ( void  ) const

Definition at line 47 of file GEMEtaPartitionSpecs.cc.

47 { return _p; }

References _p.

◆ specificPadTopology()

const StripTopology & GEMEtaPartitionSpecs::specificPadTopology ( ) const

Definition at line 43 of file GEMEtaPartitionSpecs.cc.

43 { return *_top_pad; }

References _top_pad.

Referenced by GEMEtaPartition::specificPadTopology().

◆ specificTopology()

const StripTopology & GEMEtaPartitionSpecs::specificTopology ( ) const

Definition at line 39 of file GEMEtaPartitionSpecs.cc.

39 { return *_top; }

References _top.

Referenced by GEMEtaPartition::specificTopology().

◆ topology()

const Topology & GEMEtaPartitionSpecs::topology ( ) const
overridevirtual

Implements GeomDetType.

Definition at line 37 of file GEMEtaPartitionSpecs.cc.

37 { return *_top; }

References _top.

Referenced by GEMEtaPartition::topology().

Member Data Documentation

◆ _n

std::string GEMEtaPartitionSpecs::_n
private

Definition at line 46 of file GEMEtaPartitionSpecs.h.

Referenced by detName().

◆ _p

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

Definition at line 45 of file GEMEtaPartitionSpecs.h.

Referenced by GEMEtaPartitionSpecs(), and parameters().

◆ _top

StripTopology* GEMEtaPartitionSpecs::_top
private

topology of strips

Definition at line 40 of file GEMEtaPartitionSpecs.h.

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

◆ _top_pad

StripTopology* GEMEtaPartitionSpecs::_top_pad
private

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

Definition at line 43 of file GEMEtaPartitionSpecs.h.

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

h
GeomDetType::name
const std::string & name() const
Definition: GeomDetType.h:19
TrapezoidalStripTopology
Definition: TrapezoidalStripTopology.h:21
GEMEtaPartitionSpecs::_top_pad
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)
Definition: GEMEtaPartitionSpecs.h:43
b
double b
Definition: hdecay.h:118
GEMEtaPartitionSpecs::_n
std::string _n
Definition: GEMEtaPartitionSpecs.h:46
GEMEtaPartitionSpecs::_p
std::vector< float > _p
Definition: GEMEtaPartitionSpecs.h:45
GEMEtaPartitionSpecs::_top
StripTopology * _top
topology of strips
Definition: GEMEtaPartitionSpecs.h:40
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9
GeomDetType::GeomDetType
GeomDetType(const std::string &name, SubDetector subdet)
Definition: GeomDetType.cc:5
GeomDetEnumerators::GEM
Definition: GeomDetEnumerators.h:21
gen::npad
int npad
Definition: Cascade2Hadronizer.cc:73
DigiDM_cff.strips
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
Definition: DigiDM_cff.py:32