64 barrelOnly_(iConfig.getParameter<bool>(
"BarrelOnly")),
65 tcpFormat_(iConfig.getParameter<bool>(
"TcpOutput")),
66 debug_(iConfig.getParameter<bool>(
"Debug")),
67 famos_(iConfig.getParameter<bool>(
"Famos")),
68 nSamples_(iConfig.getParameter<
int>(
"nOfSamples")),
69 binOfMaximum_(iConfig.getParameter<
int>(
"binOfMaximum"))
73 produces <EcalEBTrigPrimDigiCollection >();
74 if (
tcpFormat_) produces <EcalEBTrigPrimDigiCollection >(
"formatTCP");
137 algo_->setPointers(ecaltpLin,ecaltpPed,ecaltpgBadX,ecaltpgWeightMap,ecaltpgWeightGroup,ecaltpgSlidW,ecaltpgLutGroup,ecaltpgLut,ecaltpgBadTT, ecaltpgSpike);
180 auto pOut = std::make_unique<EcalEBTrigPrimDigiCollection>();
181 auto pOutTcp = std::make_unique<EcalEBTrigPrimDigiCollection>();
191 ebdigi=barrelDigiHandle.
product();
192 algo_->run(iSetup,ebdigi,*pOut,*pOutTcp);
195 if (
debug_ )
std::cout <<
"produce" <<
" For Barrel "<<pOut->size()<<
" TP Digis were produced" << std::endl;
200 for (
unsigned int i=0;
i<pOut->size();++
i) {
203 std::cout <<
"EcalTPG Printing only non zero TP " <<
" For tower "<<(((*pOut)[
i])).id()<<
", TP is "<<(*pOut)[
i];
204 for (
int isam=0;isam<(*pOut)[
i].size();++isam) {
206 if ( (*pOut)[
i][isam].encodedEt() > 0) {
208 std::cout <<
" (*pOut)[i][isam].raw() " << (*pOut)[
i][isam].raw() <<
" (*pOut)[i][isam].encodedEt() " << (*pOut)[
i][isam].encodedEt() << std::endl;
213 if (
debug_ )
std::cout <<
"EcalTPG" <<
"\n =================> For Barrel , "<<pOut->size()<<
" TP Digis were produced (including zero ones)" <<
" Non zero primitives were " << nonZeroTP << std::endl;
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
virtual ~EcalEBTrigPrimProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EcalEBTrigPrimProducer(const edm::ParameterSet &conf)
def setup(process, global_tag, zero_tesla=False)
edm::EDGetTokenT< EBDigiCollection > tokenEBdigi_
unsigned long long getRecords(edm::EventSetup const &setup)
unsigned long long cacheID_
std::unique_ptr< EcalEBTrigPrimTestAlgo > algo_
void produce(edm::Event &e, const edm::EventSetup &c) override
T const * product() const
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
char const * productInstance
void endRun(const edm::Run &, const edm::EventSetup &) override
T const * product() const