#include <CSCDigiDump.h>
Public Member Functions | |
virtual void | analyze (edm::Event const &e, edm::EventSetup const &c) |
CSCDigiDump (edm::ParameterSet const &conf) | |
Private Attributes | |
edm::InputTag | comparatorDigiTag_ |
edm::InputTag | stripDigiTag_ |
edm::InputTag | wireDigiTag_ |
Definition at line 8 of file CSCDigiDump.h.
CSCDigiDump::CSCDigiDump | ( | edm::ParameterSet const & | conf | ) | [explicit] |
Definition at line 13 of file CSCDigiDump.cc.
: wireDigiTag_(conf.getParameter<edm::InputTag>("wireDigiTag")), stripDigiTag_(conf.getParameter<edm::InputTag>("stripDigiTag")), comparatorDigiTag_(conf.getParameter<edm::InputTag>("comparatorDigiTag")) { }
void CSCDigiDump::analyze | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 21 of file CSCDigiDump.cc.
References comparatorDigiTag_, gather_cfg::cout, CSCDetId, edm::Event::getByLabel(), edm::EventBase::id(), j, prof2calltree::last, stripDigiTag_, RecoTauPiZeroBuilderPlugins_cfi::strips, and wireDigiTag_.
{ edm::Handle<CSCStripDigiCollection> strips; edm::Handle<CSCWireDigiCollection> wires; edm::Handle<CSCComparatorDigiCollection> comparators; std::cout << "Event " << e.id() << std::endl; e.getByLabel(wireDigiTag_, wires); for (CSCWireDigiCollection::DigiRangeIterator j=wires->begin(); j!=wires->end(); j++) { std::cout << "Wire digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCWireDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } e.getByLabel(stripDigiTag_, strips); for (CSCStripDigiCollection::DigiRangeIterator j=strips->begin(); j!=strips->end(); j++) { std::cout << "Strip digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCStripDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } e.getByLabel(comparatorDigiTag_, comparators); for (CSCComparatorDigiCollection::DigiRangeIterator j=comparators->begin(); j!=comparators->end(); j++) { std::cout << "Comparator digis from "<< CSCDetId((*j).first) << std::endl; std::vector<CSCComparatorDigi>::const_iterator digiItr = (*j).second.first; std::vector<CSCComparatorDigi>::const_iterator last = (*j).second.second; for( ; digiItr != last; ++digiItr) { digiItr->print(); } } }
edm::InputTag CSCDigiDump::comparatorDigiTag_ [private] |
Definition at line 16 of file CSCDigiDump.h.
Referenced by analyze().
edm::InputTag CSCDigiDump::stripDigiTag_ [private] |
Definition at line 15 of file CSCDigiDump.h.
Referenced by analyze().
edm::InputTag CSCDigiDump::wireDigiTag_ [private] |
Definition at line 14 of file CSCDigiDump.h.
Referenced by analyze().