|
|
Go to the documentation of this file.
9 #include <boost/ptr_container/ptr_vector.hpp>
20 else if (
type ==
"float")
22 else if (
type ==
"double")
24 else if (
type ==
"bool")
26 else if (
type ==
"candidatescalarsum")
29 else if (
type ==
"candidatesize")
31 else if (
type ==
"candidatesummass")
34 throw cms::Exception(
"Configuration",
"unsupported type " +
type +
" for variable " + vname);
37 produces<nanoaod::FlatTable>();
43 auto out = std::make_unique<nanoaod::FlatTable>(1,
"",
true);
65 template <
typename ValType>
70 template <
typename ValType>
76 template <
typename ColType,
typename ValType>
81 for (
const auto&
i :
x)
87 template <
typename ColType,
typename ValType>
92 for (
const auto&
i :
x)
98 template <
typename ColType,
typename ValType>
103 for (
const auto&
i :
x)
108 template <
typename ColType,
typename ValType>
115 for (
const auto&
i :
x)
120 template <
typename ColType,
typename ValType>
128 for (
const auto&
i :
x)
134 template <
typename ValType,
typename ColType = ValType,
typename Converter = Identity<ValType>>
~GlobalVariablesTableProducer() override
static ColType convert(ValType x)
VariableT(const std::string &aname, nanoaod::FlatTable::ColumnType atype, const edm::ParameterSet &cfg, edm::ConsumesCollector &&cc)
VariableT< double, float > DoubleVar
#define DEFINE_FWK_MODULE(type)
Variable(const std::string &aname, nanoaod::FlatTable::ColumnType atype, const edm::ParameterSet &cfg)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
static ColType convert(ValType x)
def convert(infile, ofile)
GlobalVariablesTableProducer(edm::ParameterSet const ¶ms)
static int convert(ValType x)
VariableT< bool, uint8_t > BoolVar
static ValType convert(ValType x)
const std::string & name() const
edm::EDGetTokenT< ValType > src_
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
boost::ptr_vector< Variable > vars_
VariableT< edm::View< reco::Candidate >, float, MassSum< float, edm::View< reco::Candidate > > > CandidateSumMassVar
T getParameter(std::string const &) const
VariableT< float > FloatVar
static ColType convert(ValType x)
nanoaod::FlatTable::ColumnType type_
static ColType convert(ValType x)
void fill(const edm::Event &iEvent, nanoaod::FlatTable &out) const override
virtual void fill(const edm::Event &iEvent, nanoaod::FlatTable &out) const =0
const nanoaod::FlatTable::ColumnType & type() const
static ColType convert(ValType x)
VariableT< edm::View< reco::Candidate >, int, Size< edm::View< reco::Candidate > > > CandidateSizeVar
VariableT< edm::View< reco::Candidate >, float, ScalarPtSum< float, edm::View< reco::Candidate > > > CandidateScalarSumVar