CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CSCDigiDump Class Reference

#include <CSCDigiDump.h>

Inheritance diagram for CSCDigiDump:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &c)
 
 CSCDigiDump (edm::ParameterSet const &conf)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

edm::InputTag comparatorDigiTag_
 
edm::InputTag stripDigiTag_
 
edm::InputTag wireDigiTag_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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.

14 : wireDigiTag_(conf.getParameter<edm::InputTag>("wireDigiTag")),
15  stripDigiTag_(conf.getParameter<edm::InputTag>("stripDigiTag")),
16  comparatorDigiTag_(conf.getParameter<edm::InputTag>("comparatorDigiTag"))
17 {
18 }
edm::InputTag stripDigiTag_
Definition: CSCDigiDump.h:15
tuple conf
Definition: dbtoconf.py:185
edm::InputTag wireDigiTag_
Definition: CSCDigiDump.h:14
edm::InputTag comparatorDigiTag_
Definition: CSCDigiDump.h:16

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_.

21  {
25 
26  std::cout << "Event " << e.id() << std::endl;
27 
28  e.getByLabel(wireDigiTag_, wires);
29  for (CSCWireDigiCollection::DigiRangeIterator j=wires->begin(); j!=wires->end(); j++) {
30  std::cout << "Wire digis from "<< CSCDetId((*j).first) << std::endl;
31  std::vector<CSCWireDigi>::const_iterator digiItr = (*j).second.first;
32  std::vector<CSCWireDigi>::const_iterator last = (*j).second.second;
33  for( ; digiItr != last; ++digiItr) {
34  digiItr->print();
35  }
36  }
37 
38  e.getByLabel(stripDigiTag_, strips);
39 
40  for (CSCStripDigiCollection::DigiRangeIterator j=strips->begin(); j!=strips->end(); j++) {
41  std::cout << "Strip digis from "<< CSCDetId((*j).first) << std::endl;
42  std::vector<CSCStripDigi>::const_iterator digiItr = (*j).second.first;
43  std::vector<CSCStripDigi>::const_iterator last = (*j).second.second;
44  for( ; digiItr != last; ++digiItr) {
45  digiItr->print();
46  }
47  }
48 
49  e.getByLabel(comparatorDigiTag_, comparators);
50 
51  for (CSCComparatorDigiCollection::DigiRangeIterator j=comparators->begin();
52  j!=comparators->end(); j++)
53  {
54  std::cout << "Comparator digis from "<< CSCDetId((*j).first) << std::endl;
55  std::vector<CSCComparatorDigi>::const_iterator digiItr = (*j).second.first;
56  std::vector<CSCComparatorDigi>::const_iterator last = (*j).second.second;
57  for( ; digiItr != last; ++digiItr) {
58  digiItr->print();
59  }
60  }
61 }
edm::InputTag stripDigiTag_
Definition: CSCDigiDump.h:15
int j
Definition: DBlmapReader.cc:9
edm::InputTag wireDigiTag_
Definition: CSCDigiDump.h:14
tuple cout
Definition: gather_cfg.py:121
edm::InputTag comparatorDigiTag_
Definition: CSCDigiDump.h:16

Member Data Documentation

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().