CMS 3D CMS Logo

cond::FWIncantation Class Reference

#include <CondCore/Utilities/interface/CondPyInterface.h>

List of all members.

Public Member Functions

 FWIncantation ()
 ~FWIncantation ()

Private Attributes

boost::shared_ptr< impl::FWMagicmagic


Detailed Description

Definition at line 26 of file CondPyInterface.h.


Constructor & Destructor Documentation

cond::FWIncantation::FWIncantation (  ) 

Definition at line 51 of file CondPyInterface.cc.

References edmplugin::standard::config(), edm::ServiceRegistry::createSet(), edm::PresenceFactory::get(), magic, edm::makeParameterSets(), and params_.

00051                                : magic(new impl::FWMagic) {
00052 
00053     // B.  Load the message service plug-in.  Forget this and bad things happen!
00054     //     In particular, the job hangs as soon as the output buffer fills up.
00055     //     That's because, without the message service, there is no mechanism for
00056     //     emptying the buffers.
00057     boost::shared_ptr<edm::Presence> theMessageServicePresence;
00058     theMessageServicePresence = boost::shared_ptr<edm::Presence>(edm::PresenceFactory::get()->
00059       makePresence("MessageServicePresence").release());
00060 
00061     // C.  Manufacture a configuration and establish it.
00062     std::string config =
00063       "process x = {"
00064       "service = MessageLogger {"
00065       "untracked vstring destinations = {'infos.mlog','warnings.mlog'}"
00066       "untracked PSet infos = {"
00067       "untracked string threshold = 'INFO'"
00068       "untracked PSet default = {untracked int32 limit = 1000000}"
00069       "untracked PSet FwkJob = {untracked int32 limit = 0}"
00070       "}"
00071       "untracked PSet warnings = {"
00072       "untracked string threshold = 'WARNING'"
00073       "untracked PSet default = {untracked int32 limit = 1000000}"
00074       "}"
00075       "untracked vstring fwkJobReports = {'FrameworkJobReport.xml'}"
00076       "untracked vstring categories = {'FwkJob'}"
00077       "untracked PSet FrameworkJobReport.xml = {"
00078       "untracked PSet default = {untracked int32 limit = 0}"
00079       "untracked PSet FwkJob = {untracked int32 limit = 10000000}"
00080       "}"
00081       "}"
00082       "service = JobReportService{}"
00083       "service = SiteLocalConfigService{}"
00084       "}";
00085     
00086     
00087     boost::shared_ptr<std::vector<edm::ParameterSet> > pServiceSets;
00088     boost::shared_ptr<edm::ParameterSet>          params_;
00089     edm::makeParameterSets(config, params_, pServiceSets);
00090     
00091     // D.  Create the services.
00092     edm::ServiceToken tempToken(edm::ServiceRegistry::createSet(*pServiceSets.get()));
00093     
00094     // E.  Make the services available.
00095     magic->operate.reset(new edm::ServiceRegistry::Operate(tempToken));
00096     
00097   }

cond::FWIncantation::~FWIncantation (  ) 

Definition at line 48 of file CondPyInterface.cc.

00048 {}


Member Data Documentation

boost::shared_ptr<impl::FWMagic> cond::FWIncantation::magic [private]

Definition at line 33 of file CondPyInterface.h.

Referenced by FWIncantation().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:36:44 2009 for CMSSW by  doxygen 1.5.4