Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
MakeVersionedSelector::operator()
VersionedSelector< edm::Ptr< PhysObj > > operator()(const std::string &pset, const std::string &which_config)
Definition:
MakePyVIDClassBuilder.h:11
TrackValidation_cff.pset
tuple pset
Definition:
TrackValidation_cff.py:591
groupFilesInBlocks.temp
temp
Definition:
groupFilesInBlocks.py:142
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MakeVersionedSelector
Definition:
MakePyVIDClassBuilder.h:8
MakeVersionedSelector::operator()
VersionedSelector< edm::Ptr< PhysObj > > operator()()
Definition:
MakePyVIDClassBuilder.h:16
edm::readPSetsFrom
std::unique_ptr< edm::ParameterSet > readPSetsFrom(std::string const &fileOrString)
Definition:
ParameterSetReader.cc:23
edm::ParameterSet
Definition:
ParameterSet.h:47
VersionedSelector.h
VersionedSelector
cut-flow versioning info in the event provenance
Definition:
VersionedSelector.h:47
ParameterSetReader.h
Generated for CMSSW Reference Manual by
1.8.5