Public Types | |
typedef std::auto_ptr < MuonDDDConstants > | ReturnType |
Public Member Functions | |
void | initializeMuonDDDConstants (const IdealGeometryRecord &igr) |
MuonNumberingInitialization (const edm::ParameterSet &) | |
ReturnType | produce (const MuonNumberingRecord &) |
~MuonNumberingInitialization () | |
Private Attributes | |
std::string | label_ |
MuonDDDConstants * | muonDDDConst_ |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 38 of file MuonNumberingInitialization.cc.
typedef std::auto_ptr<MuonDDDConstants> MuonNumberingInitialization::ReturnType |
Definition at line 43 of file MuonNumberingInitialization.cc.
MuonNumberingInitialization::MuonNumberingInitialization | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 54 of file MuonNumberingInitialization.cc.
References edm::eventsetup::dependsOn(), initializeMuonDDDConstants(), and edm::ESProducer::setWhatProduced().
: muonDDDConst_(0) { // std::cout <<"constructing MuonNumberingInitialization" << std::endl; setWhatProduced(this, dependsOn(&MuonNumberingInitialization::initializeMuonDDDConstants)); }
MuonNumberingInitialization::~MuonNumberingInitialization | ( | ) |
Definition at line 61 of file MuonNumberingInitialization.cc.
{ }
void MuonNumberingInitialization::initializeMuonDDDConstants | ( | const IdealGeometryRecord & | igr | ) |
Definition at line 78 of file MuonNumberingInitialization.cc.
References edm::eventsetup::EventSetupRecord::get(), label_, and muonDDDConst_.
Referenced by MuonNumberingInitialization().
{ edm::ESTransientHandle<DDCompactView> pDD; igr.get(label_, pDD ); // std::cout << "in MuonNumberingInitialization::initializeMuonDDDConstants" << std::endl; if ( muonDDDConst_ != 0 ) { delete muonDDDConst_; } // std::cout << "about to make my new muonDDDConst_" << std::endl; muonDDDConst_ = new MuonDDDConstants( *pDD ); }
MuonNumberingInitialization::ReturnType MuonNumberingInitialization::produce | ( | const MuonNumberingRecord & | iRecord | ) |
Definition at line 67 of file MuonNumberingInitialization.cc.
References benchmark_cfg::cerr, and muonDDDConst_.
{ // std::cout << "in MuonNumberingInitialization::produce" << std::endl; using namespace edm::es; if ( muonDDDConst_ == 0 ) { std::cerr << "MuonNumberingInitialization::produceMuonDDDConstants has NOT been initialized!" << std::endl; throw; } return std::auto_ptr<MuonDDDConstants> (muonDDDConst_) ; }
std::string MuonNumberingInitialization::label_ [private] |
Definition at line 50 of file MuonNumberingInitialization.cc.
Referenced by initializeMuonDDDConstants().
Definition at line 51 of file MuonNumberingInitialization.cc.
Referenced by initializeMuonDDDConstants(), and produce().