test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
virtual const CaloSimParameterssimParameters (const DetId &id) const
 
virtual ~HcalTBSimParameterMap ()
 

Private Attributes

HcalSimParameters theHBParameters
 
HcalSimParameters theHEParameters
 
HcalSimParameters theHOParameters
 

Detailed Description

Definition at line 8 of file HcalTBSimParameterMap.h.

Constructor & Destructor Documentation

HcalTBSimParameterMap::HcalTBSimParameterMap ( )

hardcoded default parameters

Definition at line 7 of file HcalTBSimParameterMap.cc.

7  :
8  theHBParameters(2000., std::vector<double>(16, 0.3305), 117, 5, 10, 5,
9  true, false, 1, std::vector<double>(16, 117.), 10.),
10  theHEParameters(2000., std::vector<double>(16, 0.3305), 178, 5, 10, 5,
11  true, false, 16, std::vector<double>(16, 178.), 10.),
12  theHOParameters(4000., std::vector<double>(16, 0.3065), 217, 5, 10, 5,
13  true, false, 1, std::vector<double>(16, 217.), 5.) {}
HcalSimParameters theHOParameters
HcalSimParameters theHEParameters
HcalSimParameters theHBParameters
HcalTBSimParameterMap::HcalTBSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 22 of file HcalTBSimParameterMap.cc.

22  :
23  theHBParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHB",2000.),
24  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHB",std::vector<double>(16, 0.3305)),
25  p.getUntrackedParameter<double>("samplingFactorTBHB",117),
26  p.getUntrackedParameter<double>("timePhaseTBHB",5),
27  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
28  p.getUntrackedParameter<int>("binOfMaximumTBHB",5),
29  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
30  p.getUntrackedParameter<bool>("syncPhaseTB",true),
31  p.getUntrackedParameter<int>("firstRingTBHB",1),
32  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHB", std::vector<double>(16, 117.)),
33  p.getUntrackedParameter<double>("sipmTauTBHB",10.) ),
34  theHEParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",2000.),
35  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHE",std::vector<double>(16, 0.3305)),
36  p.getUntrackedParameter<double>("samplingFactorTBHE",178),
37  p.getUntrackedParameter<double>("timePhaseTBHE",5),
38  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
39  p.getUntrackedParameter<int>("binOfMaximumTBHE",5),
40  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
41  p.getUntrackedParameter<bool>("syncPhaseTB",true),
42  p.getUntrackedParameter<int>("firstRingTBHE",16),
43  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHE", std::vector<double>(16, 178.)),
44  p.getUntrackedParameter<double>("sipmTauTBHE",10.) ),
45  theHOParameters(p.getUntrackedParameter<double>("photomultiplierGainTBHE",4000.),
46  p.getUntrackedParameter<std::vector<double> >("photoelectronsToAnalogTBHO",std::vector<double>(16, 3065)),
47  p.getUntrackedParameter<double>("samplingFactorTBHO",217),
48  p.getUntrackedParameter<double>("timePhaseTBHO",5),
49  p.getUntrackedParameter<int>("readoutFrameSizeTB",10),
50  p.getUntrackedParameter<int>("binOfMaximumTBHO",5),
51  p.getUntrackedParameter<bool>("doPhotostatisticsTB",true),
52  p.getUntrackedParameter<bool>("syncPhaseTB",true),
53  p.getUntrackedParameter<int>("firstRingTBHO",1),
54  p.getUntrackedParameter<std::vector<double> >("samplingFactorsTBHO", std::vector<double>(16, 217.)),
55  p.getUntrackedParameter<double>("sipmTauTBHO",5.) ) {}
T getUntrackedParameter(std::string const &, T const &) const
HcalSimParameters theHOParameters
HcalSimParameters theHEParameters
HcalSimParameters theHBParameters
virtual HcalTBSimParameterMap::~HcalTBSimParameterMap ( )
inlinevirtual

Definition at line 16 of file HcalTBSimParameterMap.h.

16 {}

Member Function Documentation

HcalSimParameters HcalTBSimParameterMap::hbParameters ( ) const
inline

accessors

Definition at line 21 of file HcalTBSimParameterMap.h.

References theHBParameters.

21 {return theHBParameters;}
HcalSimParameters theHBParameters
HcalSimParameters HcalTBSimParameterMap::heParameters ( ) const
inline

Definition at line 22 of file HcalTBSimParameterMap.h.

References theHEParameters.

22 {return theHEParameters;}
HcalSimParameters theHEParameters
HcalSimParameters HcalTBSimParameterMap::hoParameters ( ) const
inline

Definition at line 23 of file HcalTBSimParameterMap.h.

References theHOParameters.

23 {return theHOParameters;}
HcalSimParameters theHOParameters
const CaloSimParameters & HcalTBSimParameterMap::simParameters ( const DetId id) const
virtual

Implements CaloVSimParameterMap.

Definition at line 57 of file HcalTBSimParameterMap.cc.

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

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

57  {
58  HcalDetId hcalDetId(detId);
59  if(hcalDetId.subdet() == HcalBarrel) {
60  return theHBParameters;
61  } else if(hcalDetId.subdet() == HcalEndcap) {
62  return theHEParameters;
63  } else {
64  return theHOParameters;
65  }
66 }
HcalSimParameters theHOParameters
HcalSimParameters theHEParameters
HcalSimParameters theHBParameters

Member Data Documentation

HcalSimParameters HcalTBSimParameterMap::theHBParameters
private

Definition at line 26 of file HcalTBSimParameterMap.h.

Referenced by hbParameters(), and simParameters().

HcalSimParameters HcalTBSimParameterMap::theHEParameters
private

Definition at line 27 of file HcalTBSimParameterMap.h.

Referenced by heParameters(), and simParameters().

HcalSimParameters HcalTBSimParameterMap::theHOParameters
private

Definition at line 28 of file HcalTBSimParameterMap.h.

Referenced by hoParameters(), and simParameters().