CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 setSiPMCharacteristics(std::vector<edm::ParameterSet> vps) { theSiPMCharacteristics_ = vps; }
66  void setKillHE(bool b) { killHE_ = b; }
67 
68  //getters
69  const bool useHBUpgrade() const { return useHBUpgrade_; }
70  const bool useHEUpgrade() const { return useHEUpgrade_; }
71  const bool useHOUpgrade() const { return useHOUpgrade_; }
72  const bool useHFUpgrade() const { return useHFUpgrade_; }
74  const int getGainIndex(HcalGenericDetId fId);
75  const bool killHE() const { return killHE_; }
76  HcalPedestal makePedestal (HcalGenericDetId fId, bool fSmear = false);
78  HcalGain makeGain (HcalGenericDetId fId, bool fSmear = false);
87  void makeHardcodeMap(HcalElectronicsMap& emap, const std::vector<HcalGenericDetId>& cells);
88  void makeHardcodeDcsMap(HcalDcsMap& dcs_map);
89  void makeHardcodeFrontEndMap(HcalFrontEndMap& emap, const std::vector<HcalGenericDetId>& cells);
94  int getLayersInDepth(int ieta, int depth, const HcalTopology* topo);
95 
96  private:
97  //member variables
103  std::vector<edm::ParameterSet> theSiPMCharacteristics_;
104  std::map<std::pair<int,int>,int> theLayersInDepths_;
105 };
106 
107 #endif
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 useHFUpgrade(bool b)
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo)
std::vector< edm::ParameterSet > theSiPMCharacteristics_
void setHF(HcalHardcodeParameters p)
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
HcalMCParam makeMCParam(HcalGenericDetId fId)
void makeHardcodeSiPMCharacteristics(HcalSiPMCharacteristics &sipm)
HcalHardcodeParameters theDefaultParameters_
HcalCalibrationQIECoder makeCalibrationQIECoder(HcalGenericDetId fId)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
const HcalHardcodeParameters & getParameters(HcalGenericDetId fId)
HcalHardcodeParameters theHEUpgradeParameters_
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells)
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId)
void makeHardcodeMap(HcalElectronicsMap &emap, const std::vector< HcalGenericDetId > &cells)
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()
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
Hardcode implementation of some conditions data.
void useHOUpgrade(bool b)
HcalHardcodeParameters theHBParameters_
void setHB(HcalHardcodeParameters p)
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)
HcalHardcodeParameters theHEParameters_
std::map< std::pair< int, int >, int > theLayersInDepths_
void setHEUpgrade(HcalHardcodeParameters p)
HcalHardcodeParameters theHFUpgradeParameters_
void testHFQIE10(bool b)