Main Page
Namespaces
Classes
Package Documentation
DataFormats
Streamer
src
StreamedProducts.cc
Go to the documentation of this file.
1
#include "
DataFormats/Streamer/interface/StreamedProducts.h
"
2
#include "
FWCore/Utilities/interface/EDMException.h
"
3
#include "
DataFormats/Common/interface/WrapperBase.h
"
4
5
namespace
edm
{
6
StreamedProduct::StreamedProduct
(
WrapperBase
const
*
prod
,
7
BranchDescription
const
& desc,
8
bool
present,
9
std::vector<BranchID>
const
*
parents
) :
10
prod_(prod), desc_(&desc), present_(present), parents_(parents) {
11
if
(
present_
&& prod ==
nullptr
) {
12
std::string
branchName
= desc.
branchName
();
13
if
(branchName.empty()) {
14
BranchDescription
localCopy(desc);
15
localCopy.
initBranchName
();
16
branchName = localCopy.
branchName
();
17
}
18
throw
edm::Exception
(
edm::errors::LogicError
,
"StreamedProduct::StreamedProduct\n"
)
19
<<
"A product with a status of 'present' is not actually present.\n"
20
<<
"The branch name is "
<< branchName <<
"\n"
21
<<
"Contact a framework developer.\n"
;
22
}
23
}
24
25
void
26
SendJobHeader::initializeTransients
() {
27
for
(
BranchDescription
&
desc
: descs_) {
28
desc
.
init
();
29
}
30
}
31
}
32
parseEventContent.prod
prod
Definition:
parseEventContent.py:154
edm::BranchDescription::branchName
std::string const & branchName() const
Definition:
BranchDescription.h:119
edm::BranchDescription::init
void init()
Definition:
BranchDescription.h:60
parents
TPRegexp parents
Definition:
eve_filter.cc:21
edm::StreamedProduct::present_
bool present_
Definition:
StreamedProducts.h:61
Exception
Definition:
hltDiff.cc:292
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EDMException.h
WrapperBase.h
edm::StreamedProduct::desc
BranchDescription const * desc() const
Definition:
StreamedProducts.h:43
edm::BranchDescription
Definition:
BranchDescription.h:32
edm::SendJobHeader::initializeTransients
void initializeTransients()
Definition:
StreamedProducts.cc:26
StreamedProducts.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::WrapperBase
Definition:
WrapperBase.h:23
edm::StreamedProduct::StreamedProduct
StreamedProduct()
Definition:
StreamedProducts.h:34
electrons_cff.branchName
branchName
Definition:
electrons_cff.py:527
edm::BranchDescription::initBranchName
void initBranchName()
Definition:
BranchDescription.cc:112
edm::errors::LogicError
Definition:
EDMException.h:37
Generated for CMSSW Reference Manual by
1.8.11