48 typedef std::unique_ptr<HcalSeverityLevelComputer>
ReturnType;
95 return std::make_unique<HcalSeverityLevelComputer>(
mConfig);
100 desc.
add<
unsigned int>(
"phase", 0);
101 desc.
add<std::vector<std::string>>(
"RecoveredRecHitBits", {
103 "TimingSubtractedBit",
107 vpsd1.
add<std::vector<std::string>>(
"RecHitFlags", {
110 vpsd1.
add<std::vector<std::string>>(
"ChannelStatus", {
113 vpsd1.
add<
int>(
"Level", 0);
114 std::vector<edm::ParameterSet> temp1;
118 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
121 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
125 temp1.push_back(temp2);
129 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
132 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
133 "HcalCellCaloTowerProb",
136 temp1.push_back(temp2);
140 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
149 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
150 "HcalCellExcludeFromHBHENoiseSummary",
153 temp1.push_back(temp2);
157 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
158 "HBHEHpdHitMultiplicity",
173 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
177 temp1.push_back(temp2);
181 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
186 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
190 temp1.push_back(temp2);
194 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
197 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
198 "HcalCellCaloTowerMask",
201 temp1.push_back(temp2);
205 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
208 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
212 temp1.push_back(temp2);
216 temp2.
addParameter<std::vector<std::string>>(
"RecHitFlags", {
219 temp2.
addParameter<std::vector<std::string>>(
"ChannelStatus", {
224 temp1.push_back(temp2);
226 desc.
addVPSet(
"SeverityLevels", vpsd1, temp1);
228 desc.
add<std::vector<std::string>>(
"DropChannelStatusBits", {
233 descriptions.
add(
"hcalRecAlgos", desc);
ParameterDescriptionBase * addVPSet(U const &iLabel, ParameterSetDescription const &validator, std::vector< ParameterSet > const &defaults)
std::unique_ptr< HcalSeverityLevelComputer > ReturnType
const edm::ParameterSet mConfig
~HcalRecAlgoESProducer() override
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
ReturnType produce(const HcalSeverityLevelComputerRcd &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addParameter(std::string const &name, T const &value)
HcalRecAlgoESProducer(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)