CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RPCRecoIdealDBLoader Class Reference

#include <RPCRecoIdealDBLoader.h>

Inheritance diagram for RPCRecoIdealDBLoader:
edm::EDAnalyzer

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 ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

std::string label_
 
int rotNumSeed_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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.

29  : label_()
30 {
31  std::cout<<"RPCRecoIdealDBLoader::RPCRecoIdealDBLoader"<<std::endl;
32 }
tuple cout
Definition: gather_cfg.py:121
RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader ( )

Definition at line 34 of file RPCRecoIdealDBLoader.cc.

References gather_cfg::cout.

35 {
36  std::cout<<"RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader"<<std::endl;
37 }
tuple cout
Definition: gather_cfg.py:121

Member Function Documentation

virtual void RPCRecoIdealDBLoader::analyze ( const edm::Event ,
const edm::EventSetup  
)
inlinevirtual

Implements edm::EDAnalyzer.

Definition at line 17 of file RPCRecoIdealDBLoader.h.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file RPCRecoIdealDBLoader.cc.

References cond::service::PoolDBOutputService::beginOfTime(), RPCGeometryParsFromDD::build(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), edm::EventSetup::get(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), and label_.

41 {
44  if( !mydbservice.isAvailable() ){
45  edm::LogError("RPCRecoIdealDBLoader")<<"PoolDBOutputService unavailable";
46  return;
47  }
48 
51  es.get<IdealGeometryRecord>().get(label_, pDD );
52  es.get<MuonNumberingRecord>().get( pMNDC );
53 
54  const DDCompactView& cpv = *pDD;
56 
57  rpcpd.build( &cpv, *pMNDC, *rig );
58 
59  if ( mydbservice->isNewTagRequest("RPCRecoGeometryRcd") ) {
60  mydbservice->createNewIOV<RecoIdealGeometry>(rig
61  , mydbservice->beginOfTime()
62  , mydbservice->endOfTime()
63  , "RPCRecoGeometryRcd");
64  } else {
65  edm::LogError("RPCRecoIdealDBLoader")<<"RPCRecoGeometryRcd Tag is already present.";
66  }
67 }
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rgeo)
type of data representation of DDCompactView
Definition: DDCompactView.h:77
bool isNewTagRequest(const std::string &recordName)
bool isAvailable() const
Definition: Service.h:47
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
virtual void RPCRecoIdealDBLoader::endJob ( void  )
inlinevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 18 of file RPCRecoIdealDBLoader.h.

18 {};

Member Data Documentation

std::string RPCRecoIdealDBLoader::label_
private
int RPCRecoIdealDBLoader::rotNumSeed_
private

Definition at line 22 of file RPCRecoIdealDBLoader.h.