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 
32 
33 #include <vector>
34 #include <map>
35 #include <utility>
36 
45  public:
46  //constructor
48 
49  //destructor
50  virtual ~HcalDbHardcode() {}
51 
52  //setters
60  void useHBUpgrade(bool b) { useHBUpgrade_ = b; }
61  void useHEUpgrade(bool b) { useHEUpgrade_ = b; }
62  void useHOUpgrade(bool b) { useHOUpgrade_ = b; }
63  void useHFUpgrade(bool b) { useHFUpgrade_ = b; }
64  void testHFQIE10(bool b) { testHFQIE10_ = b; }
65  void testHEPlan1(bool b) { testHEPlan1_ = b; }
66  void setSiPMCharacteristics(std::vector<edm::ParameterSet> vps) { theSiPMCharacteristics_ = vps; }
67  void setKillHE(bool b) { killHE_ = b; }
68 
69  //getters
70  const bool useHBUpgrade() const { return useHBUpgrade_; }
71  const bool useHEUpgrade() const { return useHEUpgrade_; }
72  const bool useHOUpgrade() const { return useHOUpgrade_; }
73  const bool useHFUpgrade() const { return useHFUpgrade_; }
75  const int getGainIndex(HcalGenericDetId fId);
76  const bool killHE() const { return killHE_; }
77  HcalPedestal makePedestal (HcalGenericDetId fId, bool fSmear = false);
79  HcalGain makeGain (HcalGenericDetId fId, bool fSmear = false);
88  std::unique_ptr<HcalElectronicsMap> makeHardcodeMap(const std::vector<HcalGenericDetId>& cells);
89  std::unique_ptr<HcalDcsMap> makeHardcodeDcsMap();
90  void makeHardcodeFrontEndMap(HcalFrontEndMap& emap, const std::vector<HcalGenericDetId>& cells);
91  std::unique_ptr<HcalFrontEndMap> makeHardcodeFrontEndMap(const std::vector<HcalGenericDetId>& cells);
93  std::unique_ptr<HcalSiPMCharacteristics> makeHardcodeSiPMCharacteristics ();
96  int getLayersInDepth(int ieta, int depth, const HcalTopology* topo);
97  bool isHEPlan1(HcalGenericDetId fId);
98 
99  private:
100  //member variables
106  std::vector<edm::ParameterSet> theSiPMCharacteristics_;
107  std::map<std::pair<int,int>,int> theLayersInDepths_;
108 };
109 
110 #endif
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap()
const bool useHOUpgrade() const
virtual ~HcalDbHardcode()
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
HcalHardcodeParameters theHOParameters_
void useHBUpgrade(bool b)
const bool useHBUpgrade() const
const bool killHE() const
void setHBUpgrade(HcalHardcodeParameters p)
void testHEPlan1(bool b)
void useHFUpgrade(bool b)
std::vector< edm::ParameterSet > theSiPMCharacteristics_
void setHF(HcalHardcodeParameters p)
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
HcalMCParam makeMCParam(HcalGenericDetId fId)
HcalHardcodeParameters theDefaultParameters_
const HcalHardcodeParameters & getParameters(HcalGenericDetId fId)
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics()
HcalCalibrationQIECoder makeCalibrationQIECoder(HcalGenericDetId fId)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
HcalHardcodeParameters theHEUpgradeParameters_
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells)
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId)
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
HcalHardcodeParameters theHBUpgradeParameters_
void setHO(HcalHardcodeParameters p)
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
void setHFUpgrade(HcalHardcodeParameters p)
void setHE(HcalHardcodeParameters p)
void setKillHE(bool b)
HcalQIEType makeQIEType(HcalGenericDetId fId)
const bool useHFUpgrade() const
HcalQIEShape makeQIEShape()
Hardcode implementation of some conditions data.
void useHOUpgrade(bool b)
HcalHardcodeParameters theHBParameters_
void setHB(HcalHardcodeParameters p)
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells)
const bool useHEUpgrade() const
void makeHardcodeTPParameters(HcalTPParameters &tppar)
double b
Definition: hdecay.h:120
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
void useHEUpgrade(bool b)
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
HcalHardcodeParameters theHFParameters_
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false)
const int getGainIndex(HcalGenericDetId fId)
bool isHEPlan1(HcalGenericDetId fId)
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_
void testHFQIE10(bool b)