Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Python
src
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
16
#include "
FWCore/Python/src/EventWrapper.h
"
17
18
#include "
FWCore/Framework/interface/Event.h
"
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
//
31
ConstEventWrapper::ConstEventWrapper
(
const
edm::Event
&
iEvent
):
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
//
Event.h
edm::python::ConstEventWrapper::ConstEventWrapper
ConstEventWrapper()
Definition:
EventWrapper.h:36
edm::python::ConstEventWrapper::getByLabel
void getByLabel(std::string const &, edm::GenericHandle &) const
Definition:
EventWrapper.cc:61
edm::python::ConstEventWrapper::event_
edm::Event const * event_
Definition:
EventWrapper.h:54
iEvent
int iEvent
Definition:
GenABIO.cc:243
EventWrapper.h
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:355
edm::Handle< GenericObject >
Definition:
GenericHandle.h:44
edm::Event
Definition:
Event.h:49
Generated for CMSSW Reference Manual by
1.8.5