74 std::unique_ptr<AbsHFPhase1Algo>
reco_;
78 std::unique_ptr<HcalHF_S9S1algorithm>
hfS9S1_;
79 std::unique_ptr<HcalHF_S9S1algorithm>
hfS8S1_;
80 std::unique_ptr<HcalHF_PETalgorithm>
hfPET_;
88 : algoConfigClass_(conf.getParameter<
std::
string>(
"algoConfigClass")),
89 setNoiseFlags_(conf.getParameter<
bool>(
"setNoiseFlags")),
90 runHFStripFilter_(conf.getParameter<
bool>(
"runHFStripFilter")),
91 useChannelQualityFromDB_(conf.getParameter<
bool>(
"useChannelQualityFromDB")),
92 checkChannelQualityForDepth3and4_(conf.getParameter<
bool>(
"checkChannelQualityForDepth3and4")),
96 throw cms::Exception(
"HFPhase1BadConfig") <<
"Invalid HFPhase1Reconstructor algorithm configuration" << std::endl;
101 hfS9S1_ = std::make_unique<HcalHF_S9S1algorithm>(psS9S1.
getParameter<std::vector<double> >(
"short_optimumSlope"),
102 psS9S1.
getParameter<std::vector<double> >(
"shortEnergyParams"),
103 psS9S1.
getParameter<std::vector<double> >(
"shortETParams"),
104 psS9S1.
getParameter<std::vector<double> >(
"long_optimumSlope"),
105 psS9S1.
getParameter<std::vector<double> >(
"longEnergyParams"),
106 psS9S1.
getParameter<std::vector<double> >(
"longETParams"),
111 hfS8S1_ = std::make_unique<HcalHF_S9S1algorithm>(psS8S1.
getParameter<std::vector<double> >(
"short_optimumSlope"),
112 psS8S1.
getParameter<std::vector<double> >(
"shortEnergyParams"),
113 psS8S1.
getParameter<std::vector<double> >(
"shortETParams"),
114 psS8S1.
getParameter<std::vector<double> >(
"long_optimumSlope"),
115 psS8S1.
getParameter<std::vector<double> >(
"longEnergyParams"),
116 psS8S1.
getParameter<std::vector<double> >(
"longETParams"),
121 hfPET_ = std::make_unique<HcalHF_PETalgorithm>(psPET.
getParameter<std::vector<double> >(
"short_R"),
122 psPET.
getParameter<std::vector<double> >(
"shortEnergyParams"),
123 psPET.
getParameter<std::vector<double> >(
"shortETParams"),
125 psPET.
getParameter<std::vector<double> >(
"longEnergyParams"),
126 psPET.
getParameter<std::vector<double> >(
"longETParams"),
142 produces<HFRecHitCollection>();
151 if (
reco_->isConfigurable()) {
155 <<
"Invalid HFPhase1Reconstructor \"algoConfigClass\" parameter value \"" <<
algoConfigClass_ <<
'"'
159 <<
"Failed to configure HFPhase1Reconstructor algorithm from EventSetup" << std::endl;
184 std::unique_ptr<HFRecHitCollection> rec(std::make_unique<HFRecHitCollection>());
185 rec->reserve(preRecHits->
size());
192 const bool thisIsSingleAnodePMT =
false;
195 bool taggedBadByDb[2] = {
false,
false};
199 anodeIds[0] = it->id();
201 for (
unsigned i = 0;
i < 2; ++
i) {
208 taggedBadByDb[0] =
b;
209 taggedBadByDb[1] =
b;
232 int depth =
i->id().depth();
233 int ieta =
i->id().ieta();
236 hfPET_->HFSetFlagFromPET(*
i, *rec, myqual, mySeverity);
241 int depth =
i->id().depth();
242 int ieta =
i->id().ieta();
245 hfS8S1_->HFSetFlagFromS9S1(*
i, *rec, myqual, mySeverity);
250 int depth =
i->id().depth();
251 int ieta =
i->id().ieta();
254 hfS9S1_->HFSetFlagFromS9S1(*
i, *rec, myqual, mySeverity);
266 #define add_param_set(name) \
267 edm::ParameterSetDescription name; \
268 name.setAllowAnything(); \
269 desc.add<edm::ParameterSetDescription>(#name, name)
277 desc.
add<
bool>(
"setNoiseFlags");
278 desc.
add<
bool>(
"runHFStripFilter",
false);
279 desc.
add<
bool>(
"useChannelQualityFromDB");
280 desc.
add<
bool>(
"checkChannelQualityForDepth3and4");