CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTRecoIdealDBLoader Class Reference

#include <DTRecoIdealDBLoader.h>

Inheritance diagram for DTRecoIdealDBLoader:
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 &)
 DTRecoIdealDBLoader (const edm::ParameterSet &iConfig)
virtual void endJob ()
 ~DTRecoIdealDBLoader ()

Private Attributes

std::string label_
int rotNumSeed_

Detailed Description

Definition at line 13 of file DTRecoIdealDBLoader.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file DTRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Definition at line 34 of file DTRecoIdealDBLoader.cc.

References gather_cfg::cout.

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

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 19 of file DTRecoIdealDBLoader.h.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file DTRecoIdealDBLoader.cc.

References DTGeometryParsFromDD::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("DTRecoIdealDBLoader")<<"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;
  DTGeometryParsFromDD dtgp;

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

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

Reimplemented from edm::EDAnalyzer.

Definition at line 20 of file DTRecoIdealDBLoader.h.

{};

Member Data Documentation

std::string DTRecoIdealDBLoader::label_ [private]

Definition at line 20 of file DTRecoIdealDBLoader.h.

Referenced by beginRun().

Definition at line 24 of file DTRecoIdealDBLoader.h.