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
const bool useHOUpgrade() const
virtual ~HcalDbHardcode()
HcalMCParam makeMCParam(HcalGenericDetId fId) const
HcalHardcodeParameters theHOParameters_
std::map< std::pair< int, int >, int > theLayersInDepths_
void useHBUpgrade(bool b)
const bool useHBUpgrade() const
const HcalHardcodeParameters & getParameters(HcalGenericDetId fId) const
const bool killHE() const
HcalCalibrationQIECoder makeCalibrationQIECoder(HcalGenericDetId fId) const
void setHBUpgrade(HcalHardcodeParameters p)
void testHEPlan1(bool b)
void useHFUpgrade(bool b)
std::vector< edm::ParameterSet > theSiPMCharacteristics_
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
void setHF(HcalHardcodeParameters p)
bool isHEPlan1(HcalGenericDetId fId) const
HcalHardcodeParameters theDefaultParameters_
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
HcalHardcodeParameters theHEUpgradeParameters_
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
HcalHardcodeParameters theHBUpgradeParameters_
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
void setHO(HcalHardcodeParameters p)
void setHFUpgrade(HcalHardcodeParameters p)
void setHE(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
void setKillHE(bool b)
HcalQIEShape makeQIEShape() const
const bool useHFUpgrade() const
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
Hardcode implementation of some conditions data.
const int getGainIndex(HcalGenericDetId fId) const
void useHOUpgrade(bool b)
HcalHardcodeParameters theHBParameters_
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
void setHB(HcalHardcodeParameters p)
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
const bool useHEUpgrade() const
double b
Definition: hdecay.h:118
HcalQIEType makeQIEType(HcalGenericDetId fId) const
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
void useHEUpgrade(bool b)
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
HcalHardcodeParameters theHFParameters_
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology *topo, double intlumi)
HcalHardcodeParameters theHEParameters_
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
void setHEUpgrade(HcalHardcodeParameters p)
HcalHardcodeParameters theHFUpgradeParameters_
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
void testHFQIE10(bool b)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology *topo, double intlumi)