PhysicsTools
SelectorUtils
interface
MakePyVIDClassBuilder.h
Go to the documentation of this file.
1
#ifndef __PhysicsTools_SelectorUtils_MakePyVIDClassBuilder_h__
2
#define __PhysicsTools_SelectorUtils_MakePyVIDClassBuilder_h__
3
4
#include "
PhysicsTools/SelectorUtils/interface/VersionedSelector.h
"
5
#include "
FWCore/ParameterSetReader/interface/ParameterSetReader.h
"
6
7
template
<
class
PhysObj>
8
struct
MakeVersionedSelector
{
9
MakeVersionedSelector
() {}
10
11
VersionedSelector<edm::Ptr<PhysObj>
>
operator()
(
const
std::string
&
pset
,
const
std::string
& which_config) {
12
const
edm::ParameterSet
&
temp
=
edm::readPSetsFrom
(
pset
)->getParameter<
edm::ParameterSet
>(which_config);
13
return
VersionedSelector<edm::Ptr<PhysObj>
>(
temp
);
14
}
15
16
VersionedSelector<edm::Ptr<PhysObj>
>
operator()
() {
return
VersionedSelector<edm::Ptr<PhysObj>
>(); }
17
};
18
19
#endif
MakeVersionedSelector::MakeVersionedSelector
MakeVersionedSelector()
Definition:
MakePyVIDClassBuilder.h:9
edm::readPSetsFrom
std::unique_ptr< edm::ParameterSet > readPSetsFrom(std::string const &fileOrString)
Definition:
ParameterSetReader.cc:23
groupFilesInBlocks.temp
list temp
Definition:
groupFilesInBlocks.py:142
MakeVersionedSelector::operator()
VersionedSelector< edm::Ptr< PhysObj > > operator()(const std::string &pset, const std::string &which_config)
Definition:
MakePyVIDClassBuilder.h:11
VersionedSelector
cut-flow versioning info in the event provenance
Definition:
VersionedSelector.h:46
ParameterSetReader.h
MakeVersionedSelector
Definition:
MakePyVIDClassBuilder.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MakeVersionedSelector::operator()
VersionedSelector< edm::Ptr< PhysObj > > operator()()
Definition:
MakePyVIDClassBuilder.h:16
edm::ParameterSet
Definition:
ParameterSet.h:47
VersionedSelector.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16