CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PTrackerParametersDBBuilder.cc
Go to the documentation of this file.
2 
12 
13 void
15 {
18  if( !mydbservice.isAvailable())
19  {
20  edm::LogError( "PTrackerParametersDBBuilder" ) << "PoolDBOutputService unavailable";
21  return;
22  }
24  es.get<IdealGeometryRecord>().get( cpv );
25 
27  builder.build( &(*cpv), *ptp );
28 
29  if( mydbservice->isNewTagRequest( "PTrackerParametersRcd" ))
30  {
31  mydbservice->createNewIOV<PTrackerParameters>( ptp, mydbservice->beginOfTime(), mydbservice->endOfTime(), "PTrackerParametersRcd" );
32  } else
33  {
34  edm::LogError( "PTrackerParametersDBBuilder" ) << "PTrackerParameters and PTrackerParametersRcd Tag already present";
35  }
36 }
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)
virtual void beginRun(const edm::Run &, edm::EventSetup const &)
const T & get() const
Definition: EventSetup.h:55
bool build(const DDCompactView *, PTrackerParameters &)
Definition: Run.h:41