CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCDigiDump.cc
Go to the documentation of this file.
8 #include <iostream>
9 using std::endl;
10 using std::cout;
11 using std::string;
12 
14 : wireDigiTag_(conf.getParameter<edm::InputTag>("wireDigiTag")),
15  stripDigiTag_(conf.getParameter<edm::InputTag>("stripDigiTag")),
16  comparatorDigiTag_(conf.getParameter<edm::InputTag>("comparatorDigiTag"))
17 {
18 }
19 
20 
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 }
62 
63 
CSCDigiDump(edm::ParameterSet const &conf)
Definition: CSCDigiDump.cc:13
edm::InputTag stripDigiTag_
Definition: CSCDigiDump.h:15
int j
Definition: DBlmapReader.cc:9
virtual void analyze(edm::Event const &e, edm::EventSetup const &c)
Definition: CSCDigiDump.cc:21
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
tuple conf
Definition: dbtoconf.py:185
edm::InputTag wireDigiTag_
Definition: CSCDigiDump.h:14
edm::EventID id() const
Definition: EventBase.h:56
tuple cout
Definition: gather_cfg.py:41
edm::InputTag comparatorDigiTag_
Definition: CSCDigiDump.h:16