CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecoIdealDBLoader.cc
Go to the documentation of this file.
1 #include "DTRecoIdealDBLoader.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<<"DTRecoIdealDBLoader::DTRecoIdealDBLoader"<<std::endl;
32 }
33 
35 {
36  std::cout<<"DTRecoIdealDBLoader::~DTRecoIdealDBLoader"<<std::endl;
37 }
38 
39 void
41 {
44  if( !mydbservice.isAvailable() ){
45  edm::LogError("DTRecoIdealDBLoader")<<"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  dtgp.build( &cpv, *pMNDC, *rig );
58 
59  if ( mydbservice->isNewTagRequest("DTRecoGeometryRcd") ) {
60  mydbservice->createNewIOV<RecoIdealGeometry>(rig
61  , mydbservice->beginOfTime()
62  , mydbservice->endOfTime()
63  , "DTRecoGeometryRcd");
64  } else {
65  edm::LogError("DTRecoIdealDBLoader")<<"DTRecoGeometryRcd Tag is already present.";
66  }
67 }
virtual void beginRun(const edm::Run &, edm::EventSetup const &)
DTRecoIdealDBLoader(const edm::ParameterSet &iConfig)
type of data representation of DDCompactView
Definition: DDCompactView.h:81
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)
const T & get() const
Definition: EventSetup.h:55
tuple cout
Definition: gather_cfg.py:41
void build(const DDCompactView *cview, const MuonDDDConstants &muonConstants, RecoIdealGeometry &rig)
Definition: Run.h:32