Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
L1TRawToDigi
src
Packer.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
#include "
FWCore/Utilities/interface/EDMException.h
"
3
4
#include "
EventFilter/L1TRawToDigi/interface/Packer.h
"
5
6
EDM_REGISTER_PLUGINFACTORY
(
l1t::PackerFactoryT
,
"PackerFactory"
);
7
8
namespace
l1t {
9
const
PackerFactory
PackerFactory::instance_
;
10
11
std::shared_ptr<Packer>
12
PackerFactory::make
(
const
std::string
&
name
)
const
13
{
14
auto
unpacker = std::shared_ptr<Packer>(
PackerFactoryT::get
()->create(
"l1t::"
+ name));
15
16
if
(unpacker.get() == 0) {
17
throw
edm::Exception
(
edm::errors::Configuration
,
"NoSourceModule"
)
18
<<
"Cannot find a packer named "
<<
name
;
19
}
20
21
return
unpacker;
22
}
23
}
Exception
Definition:
hltDiff.cc:318
l1t::PackerFactory::make
std::shared_ptr< Packer > make(const std::string &) const
Definition:
Packer.cc:12
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
l1t::PackerFactory::instance_
static const PackerFactory instance_
Definition:
Packer.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
edm::errors::Configuration
Definition:
EDMException.h:37
EDMException.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
EDM_REGISTER_PLUGINFACTORY
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
Definition:
PluginFactory.h:90
Packer.h
reco::get
T get(const Candidate &c)
Definition:
component.h:55
Generated for CMSSW Reference Manual by
1.8.5