CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
ME0EtaPartitionSpecs Class Reference

#include <ME0EtaPartitionSpecs.h>

Inheritance diagram for ME0EtaPartitionSpecs:
GeomDetType

Public Types

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

Public Member Functions

const std::string & detName () const
 
 ME0EtaPartitionSpecs (SubDetector rss, const std::string &name, const ME0Specs &pars)
 
const TopologypadTopology () const
 
const ME0Specsparameters () const
 
const StripTopologyspecificPadTopology () const
 
const StripTopologyspecificTopology () const
 
const Topologytopology () const override
 
 ~ME0EtaPartitionSpecs () 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 isME0 () const
 
bool isMuon () 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 ME0 Chamber using standard topologies

Author
M. Maggi - INFN Bari

Definition at line 19 of file ME0EtaPartitionSpecs.h.

Member Typedef Documentation

typedef std::vector<float> ME0EtaPartitionSpecs::ME0Specs

Definition at line 23 of file ME0EtaPartitionSpecs.h.

Constructor & Destructor Documentation

ME0EtaPartitionSpecs::ME0EtaPartitionSpecs ( SubDetector  rss,
const std::string &  name,
const ME0Specs pars 
)

Definition at line 9 of file ME0EtaPartitionSpecs.cc.

References _p, _top, _top_pad, TtFullHadDaughter::B, b, h, GeomDetEnumerators::ME0, gen::npad, and RecoTauPiZeroBuilderPlugins_cfi::strips.

10  : GeomDetType(name, rss), _p(pars), _n(name)
11 {
12  if (rss == ME0 )
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.
std::vector< float > _p
const std::string & name() const
Definition: GeomDetType.h:20
StripTopology * _top
topology of strips
static const std::string B
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)
GeomDetType(const std::string &name, SubDetector subdet)
Definition: GeomDetType.cc:5
double b
Definition: hdecay.h:120
ME0EtaPartitionSpecs::~ME0EtaPartitionSpecs ( )
override

Definition at line 35 of file ME0EtaPartitionSpecs.cc.

References _top, and _top_pad.

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

Member Function Documentation

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

Definition at line 69 of file ME0EtaPartitionSpecs.cc.

References _n.

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

Definition at line 56 of file ME0EtaPartitionSpecs.cc.

References _top_pad.

Referenced by ME0EtaPartition::padTopology().

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

Definition at line 75 of file ME0EtaPartitionSpecs.cc.

References _p.

Referenced by ME0PreRecoGaussianModel::correctSigmaU(), and ME0PreRecoGaussianModel::simulateNoise().

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

Definition at line 62 of file ME0EtaPartitionSpecs.cc.

References _top_pad, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ME0EtaPartition::specificPadTopology().

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

Definition at line 49 of file ME0EtaPartitionSpecs.cc.

References _top.

Referenced by ME0EtaPartition::specificTopology().

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

Implements GeomDetType.

Definition at line 43 of file ME0EtaPartitionSpecs.cc.

References _top.

Referenced by ME0EtaPartition::topology().

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

Member Data Documentation

std::string ME0EtaPartitionSpecs::_n
private

Definition at line 50 of file ME0EtaPartitionSpecs.h.

Referenced by detName().

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

Definition at line 49 of file ME0EtaPartitionSpecs.h.

Referenced by ME0EtaPartitionSpecs(), and parameters().

StripTopology* ME0EtaPartitionSpecs::_top
private

topology of strips

Definition at line 44 of file ME0EtaPartitionSpecs.h.

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

StripTopology* ME0EtaPartitionSpecs::_top_pad
private

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

Definition at line 47 of file ME0EtaPartitionSpecs.h.

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