CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCDigiDump Class Reference

#include <CSCDigiDump.h>

Inheritance diagram for CSCDigiDump:
edm::EDAnalyzer

List of all members.

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_

Detailed Description

Definition at line 8 of file CSCDigiDump.h.


Constructor & Destructor Documentation

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"))
{
}

Member Function Documentation

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();
    }
  }
}

Member Data Documentation

Definition at line 16 of file CSCDigiDump.h.

Referenced by analyze().

Definition at line 15 of file CSCDigiDump.h.

Referenced by analyze().

Definition at line 14 of file CSCDigiDump.h.

Referenced by analyze().