Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:34

0001 #ifndef Integration_HierarchicalAlgorithms_h
0002 #define Integration_HierarchicalAlgorithms_h
0003 
0004 /** \class alg_1 and alg_2
0005  *
0006  ************************************************************/
0007 
0008 #include <vector>
0009 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0010 
0011 namespace edmtest {
0012 
0013   class alg_2 {
0014   public:
0015     explicit alg_2(const edm::ParameterSet& ps)
0016         : flavor_(ps.getParameter<std::string>("flavor")), debugLevel_(ps.getUntrackedParameter<int>("debug", 0)) {}
0017 
0018     std::string& flavor() { return flavor_; }
0019 
0020   private:
0021     std::string flavor_;
0022     int debugLevel_;
0023   };
0024 
0025   class alg_1 {
0026   public:
0027     explicit alg_1(const edm::ParameterSet& ps)
0028         : count_(ps.getParameter<int>("count")), inner_alg_(ps.getParameterSet("nest_2")) {}
0029 
0030   private:
0031     int count_;
0032     alg_2 inner_alg_;
0033   };
0034 
0035 }  // namespace edmtest
0036 
0037 #endif