1 #ifndef ConfigurableAnalysis_VariableHelper_H
2 #define ConfigurableAnalysis_VariableHelper_H
19 typedef std::map<std::string, const CachingVariable*>::const_iterator
iterator;
31 std::map<std::string, const CachingVariable*>
variables_;
62 std::cerr << user <<
" VariableHelper user already defined." << std::endl;
75 std::cerr <<
" none of VariableHelperUniqueInstance_ or SetVariableHelperUniqueInstance_ is valid." << std::endl;
111 std::cerr << user <<
" VariableHelper user not defined." << std::endl;
VariableHelper(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
VariableHelper & set(std::string user)
const CachingVariable * variable(std::string name) const
void watchPreModuleEvent(PreModuleEvent::slot_type const &iSlot)
void watchPostEvent(PostEvent::slot_type const &iSlot)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
VariableHelper * SetVariableHelperUniqueInstance_
std::string printValuesForEachEventCategory_
std::string const & moduleLabel() const
void postProcess(edm::StreamContext const &sc)
ModuleDescription const * moduleDescription() const
bool printValuesForEachEvent_
std::string printValues(const edm::Event &event) const
void preModule(edm::StreamContext const &, edm::ModuleCallingContext const &mcc)
std::map< std::string, const CachingVariable * > variables_
void setHolder(std::string hn)
std::map< std::string, const CachingVariable * >::const_iterator iterator
VariableHelperService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &r)
T getParameter(std::string const &) const
std::map< std::string, VariableHelper * > multipleInstance_
VariableHelper & init(std::string user, const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)