Main Page
Namespaces
Classes
Package Documentation
CondCore
PhysicsToolsPlugins
src
PerformanceRecordPlugin.cc
Go to the documentation of this file.
1
#include "
CondCore/ESSources/interface/registration_macros.h
"
2
3
#include "
CondFormats/DataRecord/interface/PerformancePayloadRecord.h
"
4
#include "
CondFormats/DataRecord/interface/PerformanceWPRecord.h
"
5
#include "
CondFormats/DataRecord/interface/PFCalibrationRcd.h
"
6
7
#include "
CondFormats/PhysicsToolsObjects/interface/PerformancePayload.h
"
8
#include "
CondFormats/PhysicsToolsObjects/interface/PerformanceWorkingPoint.h
"
9
10
#include "
CondFormats/PhysicsToolsObjects/interface/PerformancePayloadFromBinnedTFormula.h
"
11
#include "
CondFormats/PhysicsToolsObjects/interface/PerformancePayloadFromTFormula.h
"
12
#include "
CondFormats/PhysicsToolsObjects/interface/PerformancePayloadFromTable.h
"
13
14
#include "
CondCore/CondDB/interface/Serialization.h
"
15
16
namespace
cond
{
17
template
<> std::unique_ptr<PerformancePayload>
deserialize<PerformancePayload>
(
const
std::string
& payloadType,
18
const
Binary
& payloadData,
19
const
Binary
& streamerInfoData ){
20
// DESERIALIZE_BASE_CASE( PerformancePayload ); abstract
21
DESERIALIZE_POLIMORPHIC_CASE
(
PerformancePayload
,
PerformancePayloadFromTFormula
);
22
DESERIALIZE_POLIMORPHIC_CASE
(
PerformancePayload
,
PerformancePayloadFromBinnedTFormula
);
23
DESERIALIZE_POLIMORPHIC_CASE
(
PerformancePayload
,
PerformancePayloadFromTable
);
24
// here we come if none of the deserializations above match the payload type:
25
throwException
(
std::string
(
"Type mismatch, target object is type \""
)+payloadType+
"\""
,
26
"createPayload"
);
27
}
28
}
29
30
namespace
{
31
struct
InitPerformancePayload {
void
operator()(
PerformancePayload
&
e
){ e.
initialize
();}};
32
}
33
34
REGISTER_PLUGIN_INIT
(
PerformancePayloadRecord
,
PerformancePayload
, InitPerformancePayload);
35
REGISTER_PLUGIN
(
PerformanceWPRecord
,
PerformanceWorkingPoint
);
36
REGISTER_PLUGIN_INIT
(
PFCalibrationRcd
,
PerformancePayload
, InitPerformancePayload);
PerformancePayloadRecord
Definition:
PerformancePayloadRecord.h:6
cond::deserialize< PerformancePayload >
std::unique_ptr< PerformancePayload > deserialize< PerformancePayload >(const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData)
Definition:
PerformanceRecordPlugin.cc:17
PFCalibrationRcd.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PerformancePayloadFromTFormula.h
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
PerformancePayloadFromBinnedTFormula
Definition:
PerformancePayloadFromBinnedTFormula.h:17
PerformancePayloadRecord.h
PerformancePayloadFromTable
Definition:
PerformancePayloadFromTable.h:15
cond::throwException
void throwException(const std::string &message, const std::string &methodName)
Definition:
Exception.cc:21
PerformancePayloadFromBinnedTFormula.h
Serialization.h
PerformanceWorkingPoint.h
PerformanceWPRecord.h
PFCalibrationRcd
Definition:
PFCalibrationRcd.h:6
PerformancePayload::initialize
virtual void initialize()
Definition:
PerformancePayload.h:27
DESERIALIZE_POLIMORPHIC_CASE
#define DESERIALIZE_POLIMORPHIC_CASE(BASETYPENAME, DERIVEDTYPENAME)
Definition:
Serialization.h:126
cond::Binary
Definition:
Binary.h:15
PerformancePayload
Definition:
PerformancePayload.h:15
PerformancePayloadFromTable.h
PerformanceWorkingPoint
Definition:
PerformanceWorkingPoint.h:8
cond
Definition:
plugin.cc:24
REGISTER_PLUGIN
#define REGISTER_PLUGIN(record_, type_)
Definition:
registration_macros.h:37
PerformancePayload.h
registration_macros.h
PerformancePayloadFromTFormula
Definition:
PerformancePayloadFromTFormula.h:17
REGISTER_PLUGIN_INIT
#define REGISTER_PLUGIN_INIT(record_, type_, initializer_)
Definition:
registration_macros.h:47
PerformanceWPRecord
Definition:
PerformanceWPRecord.h:6
Generated for CMSSW Reference Manual by
1.8.11