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
61  void useHBUpgrade(bool b) { useHBUpgrade_ = b; }
62  void useHEUpgrade(bool b) { useHEUpgrade_ = b; }
63  void useHOUpgrade(bool b) { useHOUpgrade_ = b; }
64  void useHFUpgrade(bool b) { useHFUpgrade_ = b; }
65  void testHFQIE10(bool b) { testHFQIE10_ = b; }
66  void testHEPlan1(bool b) { testHEPlan1_ = b; }
67  void setSiPMCharacteristics(std::vector<edm::ParameterSet> vps) { theSiPMCharacteristics_ = vps; }
68  void setKillHE(bool b) { killHE_ = b; }
69 
70  //getters
71  const bool useHBUpgrade() const { return useHBUpgrade_; }
72  const bool useHEUpgrade() const { return useHEUpgrade_; }
73  const bool useHOUpgrade() const { return useHOUpgrade_; }
74  const bool useHFUpgrade() const { return useHFUpgrade_; }
76  const int getGainIndex(HcalGenericDetId fId) const;
77  const bool killHE() const { return killHE_; }
78  HcalPedestal makePedestal (HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology* topo, double intlumi);
79  HcalPedestalWidth makePedestalWidth (HcalGenericDetId fId, bool eff, const HcalTopology* topo, double intlumi);
80  HcalGain makeGain (HcalGenericDetId fId, bool fSmear = false) const;
85  HcalQIEShape makeQIEShape () const;
90  std::unique_ptr<HcalElectronicsMap> makeHardcodeMap(const std::vector<HcalGenericDetId>& cells) const;
91  std::unique_ptr<HcalDcsMap> makeHardcodeDcsMap() const;
92  void makeHardcodeFrontEndMap(HcalFrontEndMap& emap, const std::vector<HcalGenericDetId>& cells) const;
93  std::unique_ptr<HcalFrontEndMap> makeHardcodeFrontEndMap(const std::vector<HcalGenericDetId>& cells) const;
95  std::unique_ptr<HcalSiPMCharacteristics> makeHardcodeSiPMCharacteristics () const;
97  void makeHardcodeTPParameters (HcalTPParameters& tppar) const;
98  int getLayersInDepth(int ieta, int depth, const HcalTopology* topo);
99  bool isHEPlan1(HcalGenericDetId fId) const;
100 
101  private:
102  //member variables
108  std::vector<edm::ParameterSet> theSiPMCharacteristics_;
109  std::map<std::pair<int,int>,int> theLayersInDepths_;
110 };
111 
112 #endif
const bool useHOUpgrade() const
virtual ~HcalDbHardcode()
HcalMCParam makeMCParam(HcalGenericDetId fId) const
HcalHardcodeParameters theHOParameters_
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:120
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)
std::map< std::pair< int, int >, int > theLayersInDepths_
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)