66 barrelOnly_(iConfig.getParameter<bool>(
"BarrelOnly")),
67 tcpFormat_(iConfig.getParameter<bool>(
"TcpOutput")),
68 debug_(iConfig.getParameter<bool>(
"Debug")),ps_(iConfig)
71 produces <EcalTrigPrimDigiCollection >();
72 if (
tcpFormat_) produces <EcalTrigPrimDigiCollection >(
"formatTCP");
101 if (
find(names.begin(), names.end(), std::string(
"binOfMaximum"))
110 for (edm::ProductRegistry::ProductList::const_iterator it = reg->
productList().begin();
129 edm::LogWarning(
"EcalTPG")<<
"Could not find product registry of EBDigiCollection (label ecalUnsuppressedDigis), had to set the following parameters by Hand: binOfMaximum="<<
binOfMaximum_;
166 algo_->
setPointers(ecaltpLin,ecaltpPed,ecaltpgSlidW,ecaltpgWeightMap,ecaltpgWeightGroup,ecaltpgFgStripEE,ecaltpgBadX,ecaltpgStripStatus);
198 algo_->
setPointers2(ecaltpgFgEBGroup,ecaltpgLutGroup,ecaltpgLut,ecaltpgFineGrainEB,ecaltpgFineGrainTowerEE,ecaltpgBadTT,ecaltpgSpike);
234 if (!barrel && !endcap) {
238 if (!
barrelOnly_)
LogDebug(
"EcalTPG") <<
" =================> Treating event "<<e.
id()<<
", Number of EBDataFrames "<<ebDigis.
product()->size()<<
", Number of EEDataFrames "<<eeDigis.
product()->size() ;
239 else LogDebug(
"EcalTPG") <<
" =================> Treating event "<<e.
id()<<
", Number of EBDataFrames "<<ebDigis.
product()->size();
251 algo_->
run(iSetup,ebdc,*pOut,*pOutTcp);
256 algo_->
run(iSetup,eedc,*pOut,*pOutTcp);
259 edm::LogInfo(
"produce") <<
"For Barrel + Endcap, "<<pOut->size()<<
" TP Digis were produced";
263 for (
unsigned int i=0;
i<pOut->size();++
i) {
265 for (
int isam=0;isam<(*pOut)[
i].size();++isam) {
266 if ((*pOut)[
i][isam].raw()) print=
true;
268 if (print)
LogDebug(
"EcalTPG") <<
" For tower "<<(((*pOut)[
i])).id()<<
", TP is "<<(*pOut)[
i];
270 if (
barrelOnly_)
LogDebug(
"EcalTPG") <<
"\n =================> For Barrel , "<<pOut->size()<<
" TP Digis were produced (including zero ones)";
271 else LogDebug(
"EcalTPG") <<
"\n =================> For Barrel + Endcap, "<<pOut->size()<<
" TP Digis were produced (including zero ones)";
std::string instanceNameEE_
T getParameter(std::string const &) const
unsigned long long cacheIdentifier() const
void setPointers2(const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup, const EcalTPGLutIdMap *ecaltpgLut, const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB, const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGTowerStatus *ecaltpgBadTT, const EcalTPGSpike *ecaltpgSpike)
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
ParameterSet const & getParameterSet(ParameterSetID const &id)
EcalTrigPrimFunctionalAlgo * algo_
EcalTrigPrimProducer(const edm::ParameterSet &conf)
std::string instanceNameEB_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
ParameterSetID const & psetID() const
void beginRun(edm::Run &run, const edm::EventSetup &es)
unsigned long long cacheID_
std::string const & moduleLabel() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~EcalTrigPrimProducer()
void run(const edm::EventSetup &, const EBDigiCollection *col, EcalTrigPrimDigiCollection &result, EcalTrigPrimDigiCollection &resultTcp)
unsigned long long getRecords(edm::EventSetup const &setup)
std::string const & friendlyClassName() const
std::vector< std::string > getParameterNames() const
void endRun(edm::Run &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &e, const edm::EventSetup &c)
T const * product() const
T const * product() const
void setPointers(const EcalTPGLinearizationConst *ecaltpLin, const EcalTPGPedestals *ecaltpPed, const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightIdMap *ecaltpgWeightMap, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE, const EcalTPGCrystalStatus *ecaltpgBadX, const EcalTPGStripStatus *ecaltpgStripStatus)
const edm::ParameterSet ps_
static const HistoName names[]
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
ProductList const & productList() const