CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCRecoIdealDBLoader.cc
Go to the documentation of this file.
1 #include "RPCRecoIdealDBLoader.h"
2 
4 
15 
17 
20 
21 #include <iostream>
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include <sstream>
26 #include <algorithm>
27 using namespace std;
28 
30 {
31  std::cout<<"RPCRecoIdealDBLoader::RPCRecoIdealDBLoader"<<std::endl;
32 }
33 
35 {
36  std::cout<<"RPCRecoIdealDBLoader::~RPCRecoIdealDBLoader"<<std::endl;
37 }
38 
39 void
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:76
virtual void beginRun(const edm::Run &, edm::EventSetup const &)
bool isNewTagRequest(const std::string &recordName)
bool isAvailable() const
Definition: Service.h:46
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
const T & get() const
Definition: EventSetup.h:55
RPCRecoIdealDBLoader(const edm::ParameterSet &iConfig)
tuple cout
Definition: gather_cfg.py:121
Definition: Run.h:41