CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventWrapper.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Python
4 // Class : EventWrapper
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Wed Jun 28 11:21:52 CDT 2006
11 //
12 
13 // system include files
14 
15 // user include files
17 
19 
20 //
21 // constants, enums and typedefs
22 //
23 using namespace edm::python;
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32 event_(&iEvent)
33 {
34 }
35 
36 // EventWrapper::EventWrapper(const EventWrapper& rhs)
37 // {
38 // // do actual copying here;
39 // }
40 
41 //EventWrapper::~EventWrapper()
42 //{
43 //}
44 
45 //
46 // assignment operators
47 //
48 // const EventWrapper& EventWrapper::operator=(const EventWrapper& rhs)
49 // {
50 // //An exception safe implementation is
51 // EventWrapper temp(rhs);
52 // swap(rhs);
53 //
54 // return *this;
55 // }
56 
57 //
58 // member functions
59 //
60 void
61 ConstEventWrapper::getByLabel(std::string const& iLabel, edm::GenericHandle& oHandle) const
62 {
63  if(event_) {
64  event_->getByLabel(iLabel,oHandle);
65  }
66 }
67 
68 void
69 ConstEventWrapper::getByLabel(std::string const& iLabel, std::string const& iInstance, edm::GenericHandle& oHandle) const
70 {
71  if(event_) {
72  event_->getByLabel(iLabel,iInstance,oHandle);
73  }
74 }
75 //
76 // const member functions
77 //
78 
79 //
80 // static member functions
81 //
void getByLabel(std::string const &, edm::GenericHandle &) const
Definition: EventWrapper.cc:61
edm::Event const * event_
Definition: EventWrapper.h:54
int iEvent
Definition: GenABIO.cc:243
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355