CMS 3D CMS Logo

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

#include <HcalTBSimParameterMap.h>

Inheritance diagram for HcalTBSimParameterMap:
CaloVSimParameterMap

Public Member Functions

HcalSimParameters hbParameters () const
 accessors More...
 
 HcalTBSimParameterMap ()
 hardcoded default parameters More...
 
 HcalTBSimParameterMap (const edm::ParameterSet &p)
 configurable parameters More...
 
HcalSimParameters heParameters () const
 
HcalSimParameters hoParameters () const
 
const CaloSimParameterssimParameters (const DetId &id) const override
 
 ~HcalTBSimParameterMap () override
 
- Public Member Functions inherited from CaloVSimParameterMap
virtual ~CaloVSimParameterMap ()=default
 

Private Attributes

HcalSimParameters theHBParameters
 
HcalSimParameters theHEParameters
 
HcalSimParameters theHOParameters
 

Detailed Description

Definition at line 8 of file HcalTBSimParameterMap.h.

Constructor & Destructor Documentation

◆ HcalTBSimParameterMap() [1/2]

HcalTBSimParameterMap::HcalTBSimParameterMap ( )

hardcoded default parameters

Definition at line 6 of file HcalTBSimParameterMap.cc.

7  : theHBParameters(2000., 117, 5, 10, 5, true, false, 1, std::vector<double>(16, 117.), 10.),
8  theHEParameters(2000., 178, 5, 10, 5, true, false, 16, std::vector<double>(16, 178.), 10.),
9  theHOParameters(4000., 217, 5, 10, 5, true, false, 1, std::vector<double>(16, 217.), 5.) {}

◆ HcalTBSimParameterMap() [2/2]

HcalTBSimParameterMap::HcalTBSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 18 of file HcalTBSimParameterMap.cc.

20  p.getUntrackedParameter<double>("photomultiplierGainTBHB", 2000.),
21  p.getUntrackedParameter<double>("samplingFactorTBHB", 117),
22  p.getUntrackedParameter<double>("timePhaseTBHB", 5),
23  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
24  p.getUntrackedParameter<int>("binOfMaximumTBHB", 5),
25  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
26  p.getUntrackedParameter<bool>("syncPhaseTB", true),
27  p.getUntrackedParameter<int>("firstRingTBHB", 1),
28  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHB", std::vector<double>(16, 117.)),
29  p.getUntrackedParameter<double>("sipmTauTBHB", 10.)),
31  p.getUntrackedParameter<double>("photomultiplierGainTBHE", 2000.),
32  p.getUntrackedParameter<double>("samplingFactorTBHE", 178),
33  p.getUntrackedParameter<double>("timePhaseTBHE", 5),
34  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
35  p.getUntrackedParameter<int>("binOfMaximumTBHE", 5),
36  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
37  p.getUntrackedParameter<bool>("syncPhaseTB", true),
38  p.getUntrackedParameter<int>("firstRingTBHE", 16),
39  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHE", std::vector<double>(16, 178.)),
40  p.getUntrackedParameter<double>("sipmTauTBHE", 10.)),
42  p.getUntrackedParameter<double>("photomultiplierGainTBHE", 4000.),
43  p.getUntrackedParameter<double>("samplingFactorTBHO", 217),
44  p.getUntrackedParameter<double>("timePhaseTBHO", 5),
45  p.getUntrackedParameter<int>("readoutFrameSizeTB", 10),
46  p.getUntrackedParameter<int>("binOfMaximumTBHO", 5),
47  p.getUntrackedParameter<bool>("doPhotostatisticsTB", true),
48  p.getUntrackedParameter<bool>("syncPhaseTB", true),
49  p.getUntrackedParameter<int>("firstRingTBHO", 1),
50  p.getUntrackedParameter<std::vector<double>>("samplingFactorsTBHO", std::vector<double>(16, 217.)),
51  p.getUntrackedParameter<double>("sipmTauTBHO", 5.)) {}

◆ ~HcalTBSimParameterMap()

HcalTBSimParameterMap::~HcalTBSimParameterMap ( )
inlineoverride

Definition at line 15 of file HcalTBSimParameterMap.h.

15 {}

Member Function Documentation

◆ hbParameters()

HcalSimParameters HcalTBSimParameterMap::hbParameters ( ) const
inline

accessors

Definition at line 20 of file HcalTBSimParameterMap.h.

20 { return theHBParameters; }

References theHBParameters.

◆ heParameters()

HcalSimParameters HcalTBSimParameterMap::heParameters ( ) const
inline

Definition at line 21 of file HcalTBSimParameterMap.h.

21 { return theHEParameters; }

References theHEParameters.

◆ hoParameters()

HcalSimParameters HcalTBSimParameterMap::hoParameters ( ) const
inline

Definition at line 22 of file HcalTBSimParameterMap.h.

22 { return theHOParameters; }

References theHOParameters.

◆ simParameters()

const CaloSimParameters & HcalTBSimParameterMap::simParameters ( const DetId id) const
overridevirtual

Implements CaloVSimParameterMap.

Definition at line 53 of file HcalTBSimParameterMap.cc.

53  {
54  HcalDetId hcalDetId(detId);
55  if (hcalDetId.subdet() == HcalBarrel) {
56  return theHBParameters;
57  } else if (hcalDetId.subdet() == HcalEndcap) {
58  return theHEParameters;
59  } else {
60  return theHOParameters;
61  }
62 }

References HcalBarrel, HcalEndcap, HcalDetId::subdet(), theHBParameters, theHEParameters, and theHOParameters.

Referenced by HcalTBDigiProducer::HcalTBDigiProducer(), and HcalTBDigiProducer::setPhaseShift().

Member Data Documentation

◆ theHBParameters

HcalSimParameters HcalTBSimParameterMap::theHBParameters
private

Definition at line 25 of file HcalTBSimParameterMap.h.

Referenced by hbParameters(), and simParameters().

◆ theHEParameters

HcalSimParameters HcalTBSimParameterMap::theHEParameters
private

Definition at line 26 of file HcalTBSimParameterMap.h.

Referenced by heParameters(), and simParameters().

◆ theHOParameters

HcalSimParameters HcalTBSimParameterMap::theHOParameters
private

Definition at line 27 of file HcalTBSimParameterMap.h.

Referenced by hoParameters(), and simParameters().

AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalBarrel
Definition: HcalAssistant.h:33
HcalTBSimParameterMap::theHEParameters
HcalSimParameters theHEParameters
Definition: HcalTBSimParameterMap.h:26
HcalDetId
Definition: HcalDetId.h:12
HcalTBSimParameterMap::theHBParameters
HcalSimParameters theHBParameters
Definition: HcalTBSimParameterMap.h:25
HcalTBSimParameterMap::theHOParameters
HcalSimParameters theHOParameters
Definition: HcalTBSimParameterMap.h:27
HcalEndcap
Definition: HcalAssistant.h:34