CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1ABCDebugger.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: SiStripTools
4 // Class: L1ABCDebugger
5 //
13 //
14 // Original Author: Andrea Venturi
15 // Created: Tue Jul 19 11:56:00 CEST 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
24 #include "TH1F.h"
25 #include "TProfile.h"
26 #include <vector>
27 #include <string>
28 
31 
35 
38 
40 
42 //
43 // class decleration
44 //
45 
47  public:
48  explicit L1ABCDebugger(const edm::ParameterSet&);
50 
51 
52  private:
53  virtual void beginJob() ;
54  virtual void beginRun(const edm::Run&, const edm::EventSetup&) ;
55  virtual void endRun(const edm::Run&, const edm::EventSetup&) ;
56  virtual void analyze(const edm::Event&, const edm::EventSetup&);
57  virtual void endJob() ;
58 
59  // ----------member data ---------------------------
60 
62 };
63 
64 //
65 // constants, enums and typedefs
66 //
67 
68 //
69 // static data member definitions
70 //
71 
72 //
73 // constructors and destructor
74 //
76  _l1abccollection(iConfig.getParameter<edm::InputTag>("l1ABCCollection"))
77 {
78  //now do what ever initialization is needed
79 
80 }
81 
82 
84 {
85 
86  // do anything here that needs to be done at desctruction time
87  // (e.g. close files, deallocate resources etc.)
88 
89 }
90 
91 
92 //
93 // member functions
94 //
95 
96 // ------------ method called to for each event ------------
97 void
99 {
100  using namespace edm;
101 
103  iEvent.getByLabel(_l1abccollection,pIn);
104 
105  // offset computation
106 
107  edm::LogInfo("L1ABCDebug") << "Dump of L1AcceptBunchCrossing Collection";
108 
109  for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
110  edm::LogVerbatim("L1ABCDebug") << *l1abc;
111  }
112 
113 }
114 
115 void
117 {}
118 
119 void
121 {
122 }
123 
124 
125 // ------------ method called once each job just before starting event loop ------------
126 void
128 {
129 
130 }
131 
132 // ------------ method called once each job just after ending the event loop ------------
133 void
135 {
136 }
137 
138 
139 //define this as a plug-in
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:243
L1ABCDebugger(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
virtual void endJob()
edm::InputTag _l1abccollection
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
virtual void beginJob()
virtual void endRun(const edm::Run &, const edm::EventSetup &)
Definition: Run.h:33