|
|
Go to the documentation of this file.
86 : inputLabel_(conf.getParameter<
edm::
InputTag>(
"digiLabel")),
87 forceSOI_(conf.getParameter<
int>(
"forceSOI")),
88 soiShift_(conf.getParameter<
int>(
"soiShift")),
89 dropZSmarkedPassed_(conf.getParameter<
bool>(
"dropZSmarkedPassed")),
90 tsFromDB_(conf.getParameter<
bool>(
"tsFromDB")),
91 reco_(conf.getParameter<
bool>(
"sumAllTimeSlices")) {
96 produces<HFPreRecHitCollection>();
109 unsigned pmtCount = 0;
115 for (
unsigned i = 0;
i < sz; ++
i) {
124 for (
unsigned i = 1;
i < sz; ++
i) {
126 if (baseId != previousBaseId) {
127 previousBaseId = baseId;
156 const unsigned inputSize = digi->
size();
173 if (
frame.zsMarkAndPass())
188 tsToUse =
frame.presamples();
193 if (
info.id().rawId())
203 paramTS_ = std::make_unique<HcalRecoParams>(*
p.product());
213 std::unique_ptr<HFPreRecHitCollection>
out(std::make_unique<HFPreRecHitCollection>());
218 out->reserve(pmtCount);
222 for (
unsigned i = 1;
i <= sz; ++
i) {
223 bool appendData =
i == sz;
226 if (baseId == previousBaseId)
230 previousBaseId = baseId;
272 desc.
add<
int>(
"forceSOI", -1);
273 desc.
add<
int>(
"soiShift", 0);
274 desc.
add<
bool>(
"dropZSmarkedPassed");
275 desc.
add<
bool>(
"tsFromDB");
276 desc.
add<
bool>(
"sumAllTimeSlices");
T const * product() const
edm::EDGetTokenT< QIE10DigiCollection > tok_hfQIE10_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::vector< HFQIE10Info > qie10Infos_
HFPreReconstructor(const edm::ParameterSet &)
U second(std::pair< T, U > const &p)
void produce(edm::Event &, const edm::EventSetup &) override
void beginRun(const edm::Run &, const edm::EventSetup &) override
HFQIE10Info reconstruct(const QIE10DataFrame &digi, int tsToUse, const HcalCoder &coder, const HcalCalibrations &calibs) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
std::unique_ptr< HcalRecoParams > paramTS_
#define DEFINE_FWK_MODULE(type)
void fillInfos(const edm::Event &e, const edm::EventSetup &eventSetup)
std::pair< PmtAnodeId, const HFQIE10Info * > QIE10InfoWithId
std::vector< QIE10InfoWithId > sortedQIE10Infos_
edm::InputTag inputLabel_
~HFPreReconstructor() override
const_iterator begin() const
The iterator returned can not safely be used across threads.
constexpr unsigned int firstSample() const
std::pair< HcalDetId, int > PmtAnodeId
void addDefault(ParameterSetDescription const &psetDescription)
const_iterator end() const