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() override ;
54  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
55  virtual void endJob() override ;
56 
57  // ----------member data ---------------------------
58 
60 };
61 
62 //
63 // constants, enums and typedefs
64 //
65 
66 //
67 // static data member definitions
68 //
69 
70 //
71 // constructors and destructor
72 //
74  _l1abccollectionToken(consumes<L1AcceptBunchCrossingCollection>(iConfig.getParameter<edm::InputTag>("l1ABCCollection")))
75 {
76  //now do what ever initialization is needed
77 
78 }
79 
80 
82 {
83 
84  // do anything here that needs to be done at desctruction time
85  // (e.g. close files, deallocate resources etc.)
86 
87 }
88 
89 
90 //
91 // member functions
92 //
93 
94 // ------------ method called to for each event ------------
95 void
97 {
98  using namespace edm;
99 
101  iEvent.getByToken(_l1abccollectionToken,pIn);
102 
103  // offset computation
104 
105  edm::LogInfo("L1ABCDebug") << "Dump of L1AcceptBunchCrossing Collection";
106 
107  for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
108  edm::LogVerbatim("L1ABCDebug") << *l1abc;
109  }
110 
111 }
112 
113 // ------------ method called once each job just before starting event loop ------------
114 void
116 {
117 
118 }
119 
120 // ------------ method called once each job just after ending the event loop ------------
121 void
123 {
124 }
125 
126 
127 //define this as a plug-in
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
edm::EDGetTokenT< L1AcceptBunchCrossingCollection > _l1abccollectionToken
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
int iEvent
Definition: GenABIO.cc:230
L1ABCDebugger(const edm::ParameterSet &)
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
virtual void endJob() override
virtual void beginJob() override