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 
34 
35 #include <vector>
36 #include <map>
37 #include <utility>
38 
47 public:
48  //constructor
50 
51  //destructor
52  virtual ~HcalDbHardcode() {}
53 
54  //setters
57  setHB_ = true;
58  }
61  setHE_ = true;
62  }
65  setHF_ = true;
66  }
69  setHO_ = true;
70  }
73  setHBUpgrade_ = true;
74  }
77  setHEUpgrade_ = true;
78  }
81  setHFUpgrade_ = true;
82  }
83  void useHBUpgrade(bool b) { useHBUpgrade_ = b; }
84  void useHEUpgrade(bool b) { useHEUpgrade_ = b; }
85  void useHOUpgrade(bool b) { useHOUpgrade_ = b; }
86  void useHFUpgrade(bool b) { useHFUpgrade_ = b; }
87  void testHFQIE10(bool b) { testHFQIE10_ = b; }
88  void testHEPlan1(bool b) { testHEPlan1_ = b; }
89  void setSiPMCharacteristics(std::vector<edm::ParameterSet> vps) { theSiPMCharacteristics_ = vps; }
90  void setKillHE(bool b) { killHE_ = b; }
91 
92  //getters
93  const bool useHBUpgrade() const { return useHBUpgrade_; }
94  const bool useHEUpgrade() const { return useHEUpgrade_; }
95  const bool useHOUpgrade() const { return useHOUpgrade_; }
96  const bool useHFUpgrade() const { return useHFUpgrade_; }
98  const int getGainIndex(HcalGenericDetId fId) const;
99  const bool killHE() const { return killHE_; }
100  HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology* topo, double intlumi);
101  HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology* topo, double intlumi);
102  HcalGain makeGain(HcalGenericDetId fId, bool fSmear = false) const;
108  HcalQIEShape makeQIEShape() const;
113  std::unique_ptr<HcalElectronicsMap> makeHardcodeMap(const std::vector<HcalGenericDetId>& cells) const;
114  std::unique_ptr<HcalDcsMap> makeHardcodeDcsMap() const;
115  void makeHardcodeFrontEndMap(HcalFrontEndMap& emap, const std::vector<HcalGenericDetId>& cells) const;
116  std::unique_ptr<HcalFrontEndMap> makeHardcodeFrontEndMap(const std::vector<HcalGenericDetId>& cells) const;
118  std::unique_ptr<HcalSiPMCharacteristics> makeHardcodeSiPMCharacteristics() const;
120  void makeHardcodeTPParameters(HcalTPParameters& tppar) const;
121  int getLayersInDepth(int ieta, int depth, const HcalTopology* topo);
122  bool isHEPlan1(HcalGenericDetId fId) const;
123 
124 private:
125  //member variables
131  std::vector<edm::ParameterSet> theSiPMCharacteristics_;
132  std::map<std::pair<int, int>, int> theLayersInDepths_;
133 };
134 
135 #endif
virtual ~HcalDbHardcode()
const bool useHEUpgrade() const
HcalHardcodeParameters theHOParameters_
std::map< std::pair< int, int >, int > theLayersInDepths_
void useHBUpgrade(bool b)
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
void setHBUpgrade(HcalHardcodeParameters p)
const HcalHardcodeParameters & getParameters(HcalGenericDetId fId) const
void testHEPlan1(bool b)
void useHFUpgrade(bool b)
const int getGainIndex(HcalGenericDetId fId) const
std::vector< edm::ParameterSet > theSiPMCharacteristics_
void setHF(HcalHardcodeParameters p)
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
HcalHardcodeParameters theDefaultParameters_
HcalHardcodeParameters theHEUpgradeParameters_
const bool killHE() const
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
HcalHardcodeParameters theHBUpgradeParameters_
void setHO(HcalHardcodeParameters p)
void setHFUpgrade(HcalHardcodeParameters p)
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
void setHE(HcalHardcodeParameters p)
void setKillHE(bool b)
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
bool isHEPlan1(HcalGenericDetId fId) const
Hardcode implementation of some conditions data.
void useHOUpgrade(bool b)
const bool useHBUpgrade() const
HcalHardcodeParameters theHBParameters_
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
HcalQIEType makeQIEType(HcalGenericDetId fId) const
void setHB(HcalHardcodeParameters p)
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
const bool useHOUpgrade() const
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
double b
Definition: hdecay.h:120
HcalQIEShape makeQIEShape() const
HcalCalibrationQIECoder makeCalibrationQIECoder(HcalGenericDetId fId) const
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
void useHEUpgrade(bool b)
HcalMCParam makeMCParam(HcalGenericDetId fId) const
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
HcalHardcodeParameters theHFParameters_
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology *topo, double intlumi)
HcalPFCut makePFCut(HcalGenericDetId fId) const
HcalHardcodeParameters theHEParameters_
const bool useHFUpgrade() const
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
void setHEUpgrade(HcalHardcodeParameters p)
HcalHardcodeParameters theHFUpgradeParameters_
void testHFQIE10(bool b)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology *topo, double intlumi)