CMS 3D CMS Logo

HcalDbHardcode.h
Go to the documentation of this file.
1 //
2 // F.Ratnikov (UMd), Dec. 14, 2005
3 //
4 #ifndef HcalDbHardcodeIn_h
5 #define HcalDbHardcodeIn_h
6 
33 
34 #include <vector>
35 #include <map>
36 #include <utility>
37 
46 public:
47  //constructor
49 
50  //destructor
51  virtual ~HcalDbHardcode() {}
52 
53  //setters
56  setHB_ = true;
57  }
60  setHE_ = true;
61  }
64  setHF_ = true;
65  }
68  setHO_ = true;
69  }
72  setHBUpgrade_ = true;
73  }
76  setHEUpgrade_ = true;
77  }
80  setHFUpgrade_ = true;
81  }
82  void useHBUpgrade(bool b) { useHBUpgrade_ = b; }
83  void useHEUpgrade(bool b) { useHEUpgrade_ = b; }
84  void useHOUpgrade(bool b) { useHOUpgrade_ = b; }
85  void useHFUpgrade(bool b) { useHFUpgrade_ = b; }
86  void testHFQIE10(bool b) { testHFQIE10_ = b; }
87  void testHEPlan1(bool b) { testHEPlan1_ = b; }
88  void setSiPMCharacteristics(std::vector<edm::ParameterSet> vps) { theSiPMCharacteristics_ = vps; }
89  void setKillHE(bool b) { killHE_ = b; }
90 
91  //getters
92  const bool useHBUpgrade() const { return useHBUpgrade_; }
93  const bool useHEUpgrade() const { return useHEUpgrade_; }
94  const bool useHOUpgrade() const { return useHOUpgrade_; }
95  const bool useHFUpgrade() const { return useHFUpgrade_; }
97  const int getGainIndex(HcalGenericDetId fId) const;
98  const bool killHE() const { return killHE_; }
99  HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology* topo, double intlumi);
100  HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology* topo, double intlumi);
101  HcalGain makeGain(HcalGenericDetId fId, bool fSmear = false) const;
106  HcalQIEShape makeQIEShape() const;
111  std::unique_ptr<HcalElectronicsMap> makeHardcodeMap(const std::vector<HcalGenericDetId>& cells) const;
112  std::unique_ptr<HcalDcsMap> makeHardcodeDcsMap() const;
113  void makeHardcodeFrontEndMap(HcalFrontEndMap& emap, const std::vector<HcalGenericDetId>& cells) const;
114  std::unique_ptr<HcalFrontEndMap> makeHardcodeFrontEndMap(const std::vector<HcalGenericDetId>& cells) const;
116  std::unique_ptr<HcalSiPMCharacteristics> makeHardcodeSiPMCharacteristics() const;
118  void makeHardcodeTPParameters(HcalTPParameters& tppar) const;
119  int getLayersInDepth(int ieta, int depth, const HcalTopology* topo);
120  bool isHEPlan1(HcalGenericDetId fId) const;
121 
122 private:
123  //member variables
129  std::vector<edm::ParameterSet> theSiPMCharacteristics_;
130  std::map<std::pair<int, int>, int> theLayersInDepths_;
131 };
132 
133 #endif
HcalPedestal.h
HcalElectronicsMap.h
HcalDbHardcode::makeQIECoder
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:185
HcalDbHardcode::useHOUpgrade
const bool useHOUpgrade() const
Definition: HcalDbHardcode.h:94
HcalQIEShape.h
HcalCalibrationQIECoder
Definition: HcalCalibrationQIECoder.h:17
HcalDbHardcode::makeHardcodeSiPMCharacteristics
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
Definition: HcalDbHardcode.cc:695
HcalDbHardcode::theHFParameters_
HcalHardcodeParameters theHFParameters_
Definition: HcalDbHardcode.h:125
HcalDbHardcode
Hardcode implementation of some conditions data.
Definition: HcalDbHardcode.h:45
HcalGenericDetId
Definition: HcalGenericDetId.h:15
HcalDbHardcode::makeMCParam
HcalMCParam makeMCParam(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:217
HcalDbHardcode::testHFQIE10_
bool testHFQIE10_
Definition: HcalDbHardcode.h:128
HcalDbHardcode::setHB
void setHB(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:54
HcalDbHardcode::setHE
void setHE(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:58
HcalTPParameters
Definition: HcalTPParameters.h:10
HcalDbHardcode::testHFQIE10
void testHFQIE10(bool b)
Definition: HcalDbHardcode.h:86
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalSiPMCharacteristics.h
HcalDbHardcode::makeGain
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
Definition: HcalDbHardcode.cc:158
HcalTopology
Definition: HcalTopology.h:26
HcalDbHardcode::getLayersInDepth
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
Definition: HcalDbHardcode.cc:616
HcalDbHardcode::setHEUpgrade_
bool setHEUpgrade_
Definition: HcalDbHardcode.h:127
HcalDbHardcode::killHE
const bool killHE() const
Definition: HcalDbHardcode.h:98
HcalCalibrationQIECoder.h
cells
const caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple cms::cuda::AtomicPairCounter const GPUCACell *__restrict__ cells
Definition: CAHitNtupletGeneratorKernelsImpl.h:33
HcalDbHardcode::setKillHE
void setKillHE(bool b)
Definition: HcalDbHardcode.h:89
HcalHardcodeParameters.h
HcalTPChannelParameters.h
HcalDbHardcode::makeHardcodeTPParameters
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
Definition: HcalDbHardcode.cc:723
HcalDbHardcode::killHE_
bool killHE_
Definition: HcalDbHardcode.h:127
HcalGenericDetId.h
HcalDbHardcode::theHOParameters_
HcalHardcodeParameters theHOParameters_
Definition: HcalDbHardcode.h:125
HcalZDCDetId.h
HcalZSThreshold
Definition: HcalZSThreshold.h:13
HcalDbHardcode::makeHardcodeFrontEndMap
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
HcalDbHardcode::useHOUpgrade_
bool useHOUpgrade_
Definition: HcalDbHardcode.h:128
HcalDbHardcode::makeTimingParam
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:455
HcalHardcodeParameters
Definition: HcalHardcodeParameters.h:9
HcalDbHardcode::setHO_
bool setHO_
Definition: HcalDbHardcode.h:127
HcalDbHardcode::testHEPlan1_
bool testHEPlan1_
Definition: HcalDbHardcode.h:128
HcalDbHardcode::useHEUpgrade_
bool useHEUpgrade_
Definition: HcalDbHardcode.h:128
HcalDbHardcode::isHEPlan1
bool isHEPlan1(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:633
HcalDbHardcode::HcalDbHardcode
HcalDbHardcode()
Definition: HcalDbHardcode.cc:18
HcalDbHardcode::makeHardcodeMap
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
Definition: HcalDbHardcode.cc:509
HcalDbHardcode::~HcalDbHardcode
virtual ~HcalDbHardcode()
Definition: HcalDbHardcode.h:51
HcalRecoParam
Definition: HcalRecoParam.h:16
HcalQIECoder.h
HcalTPParameters.h
HcalDcsDetId.h
HcalDbHardcode::makeHardcodeSiPMParameter
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
Definition: HcalDbHardcode.cc:643
HcalGain.h
HcalDbHardcode::getParameters
const HcalHardcodeParameters & getParameters(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:48
HcalDbHardcode::setHE_
bool setHE_
Definition: HcalDbHardcode.h:127
HcalDbHardcode::makePedestal
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology *topo, double intlumi)
Definition: HcalDbHardcode.cc:108
HcalDbHardcode::makeCalibrationQIECoder
HcalCalibrationQIECoder makeCalibrationQIECoder(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:205
HcalDbHardcode::setHBUpgrade_
bool setHBUpgrade_
Definition: HcalDbHardcode.h:127
HcalPedestal
Definition: HcalPedestal.h:15
HcalDbHardcode::useHEUpgrade
void useHEUpgrade(bool b)
Definition: HcalDbHardcode.h:83
b
double b
Definition: hdecay.h:118
HcalDbHardcode::useHBUpgrade_
bool useHBUpgrade_
Definition: HcalDbHardcode.h:128
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
HcalTPChannelParameter
Definition: HcalTPChannelParameter.h:7
HcalGain
Definition: HcalGain.h:16
HcalDbHardcode::setHFUpgrade_
bool setHFUpgrade_
Definition: HcalDbHardcode.h:127
HcalDbHardcode::theDefaultParameters_
HcalHardcodeParameters theDefaultParameters_
Definition: HcalDbHardcode.h:124
HcalDbHardcode::theSiPMCharacteristics_
std::vector< edm::ParameterSet > theSiPMCharacteristics_
Definition: HcalDbHardcode.h:129
HcalFrontEndMap.h
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
HcalDbHardcode::makeHardcodeDcsMap
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
Definition: HcalDbHardcode.cc:492
HcalDbHardcode::makeQIEShape
HcalQIEShape makeQIEShape() const
Definition: HcalDbHardcode.cc:215
HcalDcsMap.h
HcalDbHardcode::setHB_
bool setHB_
Definition: HcalDbHardcode.h:127
HcalDbHardcode::theHEParameters_
HcalHardcodeParameters theHEParameters_
Definition: HcalDbHardcode.h:125
HcalDbHardcode::makeGainWidth
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:173
HcalDbHardcode::useHFUpgrade
const bool useHFUpgrade() const
Definition: HcalDbHardcode.h:95
HcalDetId.h
HcalDbHardcode::theHBUpgradeParameters_
HcalHardcodeParameters theHBUpgradeParameters_
Definition: HcalDbHardcode.h:126
HcalDbHardcode::theHEUpgradeParameters_
HcalHardcodeParameters theHEUpgradeParameters_
Definition: HcalDbHardcode.h:126
HcalDbHardcode::useHEUpgrade
const bool useHEUpgrade() const
Definition: HcalDbHardcode.h:93
HcalRecoParam.h
HcalDbHardcode::theHFUpgradeParameters_
HcalHardcodeParameters theHFUpgradeParameters_
Definition: HcalDbHardcode.h:126
HcalQIECoder
Definition: HcalQIECoder.h:20
HcalQIEType.h
HcalDbHardcode::setSiPMCharacteristics
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
Definition: HcalDbHardcode.h:88
HcalMCParam
Definition: HcalMCParam.h:29
HcalTopology.h
HcalDbHardcode::makeQIEType
HcalQIEType makeQIEType(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:199
HcalDbHardcode::theLayersInDepths_
std::map< std::pair< int, int >, int > theLayersInDepths_
Definition: HcalDbHardcode.h:130
HcalPedestalWidth.h
HcalDbHardcode::makeZSThreshold
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:179
HcalDbHardcode::makeRecoParam
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:308
HcalFrontEndMap
Definition: HcalFrontEndMap.h:23
HcalDbHardcode::setHO
void setHO(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:66
HcalDbHardcode::useHOUpgrade
void useHOUpgrade(bool b)
Definition: HcalDbHardcode.h:84
HcalDbHardcode::useHBUpgrade
const bool useHBUpgrade() const
Definition: HcalDbHardcode.h:92
HcalQIEShape
Definition: HcalQIEShape.h:17
HcalDbHardcode::setHF
void setHF(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:62
HcalDbHardcode::makeHardcodeTPChannelParameter
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:715
HcalMCParam.h
HcalTimingParam
Definition: HcalTimingParam.h:7
HcalTimingParam.h
HcalDbHardcode::setHFUpgrade
void setHFUpgrade(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:78
HcalDbHardcode::setHEUpgrade
void setHEUpgrade(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:74
HcalDbHardcode::useHFUpgrade
void useHFUpgrade(bool b)
Definition: HcalDbHardcode.h:85
HcalGainWidth.h
HcalSiPMParameter.h
HcalPedestalWidth
Definition: HcalPedestalWidth.h:15
HcalQIEType
Definition: HcalQIEType.h:12
HcalDbHardcode::getGainIndex
const int getGainIndex(HcalGenericDetId fId) const
Definition: HcalDbHardcode.cc:90
ParameterSet.h
HcalDbHardcode::useHBUpgrade
void useHBUpgrade(bool b)
Definition: HcalDbHardcode.h:82
HcalZSThreshold.h
HcalDbHardcode::setHBUpgrade
void setHBUpgrade(HcalHardcodeParameters p)
Definition: HcalDbHardcode.h:70
HcalDbHardcode::useHFUpgrade_
bool useHFUpgrade_
Definition: HcalDbHardcode.h:128
HcalDbHardcode::makePedestalWidth
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology *topo, double intlumi)
Definition: HcalDbHardcode.cc:131
HcalDbHardcode::theHBParameters_
HcalHardcodeParameters theHBParameters_
Definition: HcalDbHardcode.h:125
HcalSiPMParameter
Definition: HcalSiPMParameter.h:7
HcalDbHardcode::testHEPlan1
void testHEPlan1(bool b)
Definition: HcalDbHardcode.h:87
HcalGainWidth
Definition: HcalGainWidth.h:15
HcalDbHardcode::setHF_
bool setHF_
Definition: HcalDbHardcode.h:127