6 #include <boost/shared_ptr.hpp> 42 std::vector<double> parVecVec(functionPtr->parameters());
43 std::vector<double>::const_iterator parVec = parVecVec.begin();
44 std::vector<int> functionId(functionPtr->identifiers());
45 std::vector<int>::const_iterator
id = functionId.begin();
46 std::cout <<
"total number of parameters read from database = parVecVec.size() = " << parVecVec.size() << std::endl;
48 for( ;
id != functionId.end(); ++
id, ++iFunc ) {
49 int parNum = functionPtr->function(iFunc)->parNum();
50 std::cout <<
"For function id = " << *
id <<
", with "<<parNum<<
" parameters: " << std::endl;
51 for(
int par=0; par<parNum; ++par ) {
52 std::cout <<
"par["<<par<<
"] = " << *parVec << std::endl;
void analyze(const edm::Event &, const edm::EventSetup &) override
void initialize(const edm::EventSetup &iSetup)
DBReader(const edm::ParameterSet &)
boost::shared_ptr< MomentumScaleCorrector > corrector_
void printParameters(const T &functionPtr)
boost::shared_ptr< ResolutionFunction > resolution_
boost::shared_ptr< BackgroundFunction > background_