CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

MuonNumberingInitialization Class Reference

Inheritance diagram for MuonNumberingInitialization:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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_
MuonDDDConstantsmuonDDDConst_

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 39 of file MuonNumberingInitialization.cc.


Member Typedef Documentation

Definition at line 44 of file MuonNumberingInitialization.cc.


Constructor & Destructor Documentation

MuonNumberingInitialization::MuonNumberingInitialization ( const edm::ParameterSet iConfig)

Definition at line 55 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 62 of file MuonNumberingInitialization.cc.

{  }

Member Function Documentation

void MuonNumberingInitialization::initializeMuonDDDConstants ( const IdealGeometryRecord igr)

Definition at line 81 of file MuonNumberingInitialization.cc.

References gather_cfg::cout, edm::eventsetup::EventSetupRecord::get(), label_, and muonDDDConst_.

Referenced by MuonNumberingInitialization().

                                                                                             {

   edm::ESTransientHandle<DDCompactView> pDD;
   igr.get(label_, pDD );
#ifdef LOCAL_DEBUG
   std::cout << "in MuonNumberingInitialization::initializeMuonDDDConstants" << std::endl;
#endif
   if ( muonDDDConst_ != 0 ) {
     delete muonDDDConst_;
   }
#ifdef LOCAL_DEBUG
   std::cout << "about to make my new muonDDDConst_" << std::endl;
#endif
   muonDDDConst_ = new MuonDDDConstants( *pDD );
}
MuonNumberingInitialization::ReturnType MuonNumberingInitialization::produce ( const MuonNumberingRecord iRecord)

Definition at line 68 of file MuonNumberingInitialization.cc.

References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, and muonDDDConst_.

{
#ifdef LOCAL_DEBUG
  std::cout << "in MuonNumberingInitialization::produce" << std::endl;
#endif
   using namespace edm::es;
   if ( muonDDDConst_ == 0 ) {
     std::cerr << "MuonNumberingInitialization::produceMuonDDDConstants has NOT been initialized!" << std::endl;
     throw;
   }
   return std::auto_ptr<MuonDDDConstants> (muonDDDConst_) ;
}

Member Data Documentation

std::string MuonNumberingInitialization::label_ [private]

Definition at line 51 of file MuonNumberingInitialization.cc.

Referenced by initializeMuonDDDConstants().

Definition at line 52 of file MuonNumberingInitialization.cc.

Referenced by initializeMuonDDDConstants(), and produce().