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
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
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)
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ cells
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:118
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)
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)