CMS 3D CMS Logo

Public Member Functions | Private Attributes

RPCRecoIdealDBLoader Class Reference

#include <RPCRecoIdealDBLoader.h>

Inheritance diagram for RPCRecoIdealDBLoader:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginRun (const edm::Run &, edm::EventSetup const &)
virtual void endJob ()
 RPCRecoIdealDBLoader (const edm::ParameterSet &iConfig)
 ~RPCRecoIdealDBLoader ()

Private Attributes

std::string label_
int rotNumSeed_

Detailed Description

Definition at line 11 of file RPCRecoIdealDBLoader.h.


Constructor & Destructor Documentation

RPCRecoIdealDBLoader::RPCRecoIdealDBLoader ( const edm::ParameterSet iConfig) [explicit]

Definition at line 29 of file RPCRecoIdealDBLoader.cc.

References gather_cfg::cout.

                                                                         : label_()
{
  std::cout<<"RPCRecoIdealDBLoader::RPCRecoIdealDBLoader"<<std::endl;
}
RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader ( )

Definition at line 34 of file RPCRecoIdealDBLoader.cc.

References gather_cfg::cout.

{
  std::cout<<"RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader"<<std::endl;
}

Member Function Documentation

virtual void RPCRecoIdealDBLoader::analyze ( const edm::Event ,
const edm::EventSetup  
) [inline, virtual]

Implements edm::EDAnalyzer.

Definition at line 17 of file RPCRecoIdealDBLoader.h.

{}
void RPCRecoIdealDBLoader::beginRun ( const edm::Run ,
edm::EventSetup const &  es 
) [virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file RPCRecoIdealDBLoader.cc.

References RPCGeometryParsFromDD::build(), edm::EventSetup::get(), edm::Service< T >::isAvailable(), and label_.

{
  RecoIdealGeometry* rig = new RecoIdealGeometry;
  edm::Service<cond::service::PoolDBOutputService> mydbservice;
  if( !mydbservice.isAvailable() ){
    edm::LogError("RPCRecoIdealDBLoader")<<"PoolDBOutputService unavailable";
    return;
  }

  edm::ESTransientHandle<DDCompactView> pDD;
  edm::ESHandle<MuonDDDConstants> pMNDC;
  es.get<IdealGeometryRecord>().get(label_, pDD );
  es.get<MuonNumberingRecord>().get( pMNDC );

  const DDCompactView& cpv = *pDD;
  RPCGeometryParsFromDD rpcpd;

  rpcpd.build( &cpv, *pMNDC, *rig );

  if ( mydbservice->isNewTagRequest("RPCRecoGeometryRcd") ) {
    mydbservice->createNewIOV<RecoIdealGeometry>(rig
                                                 , mydbservice->beginOfTime()
                                                 , mydbservice->endOfTime()
                                                 , "RPCRecoGeometryRcd");
  } else {
    edm::LogError("RPCRecoIdealDBLoader")<<"RPCRecoGeometryRcd Tag is already present.";
  }
}
virtual void RPCRecoIdealDBLoader::endJob ( void  ) [inline, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 18 of file RPCRecoIdealDBLoader.h.

{};

Member Data Documentation

std::string RPCRecoIdealDBLoader::label_ [private]

Definition at line 18 of file RPCRecoIdealDBLoader.h.

Referenced by beginRun().

Definition at line 22 of file RPCRecoIdealDBLoader.h.