63 : barrelOnly_(iConfig.getParameter<
bool>(
"BarrelOnly")),
64 tcpFormat_(iConfig.getParameter<
bool>(
"TcpOutput")),
65 debug_(iConfig.getParameter<
bool>(
"Debug")),
66 famos_(iConfig.getParameter<
bool>(
"Famos")),
67 nSamples_(iConfig.getParameter<
int>(
"nOfSamples")),
68 binOfMaximum_(iConfig.getParameter<
int>(
"binOfMaximum")) {
71 produces<EcalEBTrigPrimDigiCollection>();
73 produces<EcalEBTrigPrimDigiCollection>(
"formatTCP");
131 algo_->setPointers(ecaltpLin,
159 <<
labels.productInstance <<
"!!!";
164 <<
" =================> Treating event " <<
nEvent_ <<
", Number of EB digis "
165 << barrelDigiHandle.
product()->
size() << std::endl;
167 auto pOut = std::make_unique<EcalEBTrigPrimDigiCollection>();
168 auto pOutTcp = std::make_unique<EcalEBTrigPrimDigiCollection>();
177 ebdigi = barrelDigiHandle.
product();
178 algo_->run(iSetup, ebdigi, *pOut, *pOutTcp);
182 <<
" For Barrel " << pOut->size() <<
" TP Digis were produced" << std::endl;
187 for (
unsigned int i = 0;
i < pOut->size(); ++
i) {
189 std::cout <<
"EcalTPG Printing only non zero TP "
190 <<
" For tower " << (((*pOut)[
i])).id() <<
", TP is " << (*pOut)[
i];
191 for (
int isam = 0; isam < (*pOut)[
i].size(); ++isam) {
192 if ((*pOut)[
i][isam].encodedEt() > 0) {
194 std::cout <<
" (*pOut)[i][isam].raw() " << (*pOut)[
i][isam].raw() <<
" (*pOut)[i][isam].encodedEt() "
195 << (*pOut)[
i][isam].encodedEt() << std::endl;
202 <<
"\n =================> For Barrel , " << pOut->size()
203 <<
" TP Digis were produced (including zero ones)"
204 <<
" Non zero primitives were " << nonZeroTP << std::endl;