1 #ifndef Mu_MuBaseFlatTableProducer_h 2 #define Mu_MuBaseFlatTableProducer_h 67 const std::vector<T> &vec,
69 table->template addColumn<T, std::vector<T>>(
name, vec, descr);
virtual void fillTable(edm::Event &ev)=0
Fill ntuple.
void endRun(const edm::Run &, const edm::EventSetup &) final
Empty, needed by interface.
virtual void getFromES(const edm::EventSetup &environment)
Get info from the ES for a given event.
static constexpr double DEFAULT_DOUBLE_VAL
Definition of default values for float variables.
void addColumn(std::unique_ptr< nanoaod::FlatTable > &table, const std::string name, const std::vector< T > &vec, const std::string descr)
void beginRun(const edm::Run &run, const edm::EventSetup &config) final
Configure event setup for each run.
static constexpr int DEFAULT_INT_VAL_POS
Definition of default values for positive int variables.
MuBaseFlatTableProducer(const edm::ParameterSet &)
Constructor.
std::string m_name
The label name of the FlatTableProducer.
static constexpr double DEFAULT_DOUBLE_VAL_POS
Definition of default values for positive float variables.
virtual void getFromES(const edm::Run &run, const edm::EventSetup &environment)
Get info from the ES by run.
void produce(edm::Event &, const edm::EventSetup &) final
Fill ntuples event by event.
static constexpr int DEFAULT_INT_VAL
Definition of default values for int variables.
static constexpr int8_t DEFAULT_INT8_VAL
Definition of default values for int8 variables.