Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
edm::BranchDescription::branchName
std::string const & branchName() const
Definition:
BranchDescription.h:109
parents
TPRegexp parents
Definition:
eve_filter.cc:21
edm::StreamedProduct::present_
bool present_
Definition:
StreamedProducts.h:61
Exception
Definition:
hltDiff.cc:318
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::SendJobHeader::descs_
SendDescs descs_
Definition:
StreamedProducts.h:116
EDMException.h
WrapperBase.h
edm::BranchDescription
Definition:
BranchDescription.h:32
edm::SendJobHeader::initializeTransients
void initializeTransients()
Definition:
StreamedProducts.cc:26
StreamedProducts.h
edm::WrapperBase
Definition:
WrapperBase.h:18
edm::StreamedProduct::StreamedProduct
StreamedProduct()
Definition:
StreamedProducts.h:34
edm::BranchDescription::initBranchName
void initBranchName()
Definition:
BranchDescription.cc:107
parseEventContent.prod
dictionary prod
Definition:
parseEventContent.py:153
edm::errors::LogicError
Definition:
EDMException.h:38
Generated for CMSSW Reference Manual by
1.8.5