86 etToken_ = produces<EtSumBxCollection>();
97 LogDebug(
"L1TZDCProducer") <<
"L1TZDCProducer::produce function called..." << std::endl;
108 for (
const auto& hcalTp : *hcalTPs) {
109 int ieta = hcalTp.id().ieta();
116 int iphi = hcalTp.id().iphi();
123 int nPresamples = hcalTp.presamples();
125 for (
int ibx = 0; ibx <
nSamples; ibx++) {
144 etsumsReduced.
push_back(ibx - nPresamples, CaloTools::etSumP4Demux(tempEt));
150 edm::LogWarning(
"L1TZDCProducer") <<
"hcalTps not valid; return empty ZDC Et Sum BXCollection" << std::endl;
162 desc.add<
int>(
"bxFirst", -2);
163 desc.add<
int>(
"bxLast", 2);
164 descriptions.
add(
"l1tZDCProducer",
desc);
T getParameter(std::string const &) const
int compressedEt() const
get the encoded/compressed Et
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::Event &, const edm::EventSetup &) override
void setType(EtSumType type)
edm::EDPutTokenT< EtSumBxCollection > etToken_
L1TZDCProducer(const edm::ParameterSet &ps)
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Log< level::Warning, false > LogWarning
void push_back(int bx, T object)
edm::EDGetTokenT< HcalTrigPrimDigiCollection > hcalTPSource