CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
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 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_
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
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
void setHO(HcalHardcodeParameters p)
void setHFUpgrade(HcalHardcodeParameters p)
void setHE(HcalHardcodeParameters p)
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_
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
void setHB(HcalHardcodeParameters p)
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) 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)
const HcalHardcodeParameters & getParameters(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)
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)