CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions
CaloGeometryDBWriter Class Reference

#include <CaloGeometryDBWriter.h>

Public Types

typedef
CaloSubdetectorGeometry::DimVec 
DimVec
 
typedef
CaloSubdetectorGeometry::IVec 
IVec
 
typedef
CaloSubdetectorGeometry::TrVec 
TrVec
 

Public Member Functions

 CaloGeometryDBWriter ()
 
virtual ~CaloGeometryDBWriter ()
 

Static Public Member Functions

static void write (const TrVec &tvec, const DimVec &dvec, const IVec &ivec, std::string tag)
 
static bool writeFlag ()
 

Detailed Description

Definition at line 10 of file CaloGeometryDBWriter.h.

Member Typedef Documentation

Definition at line 15 of file CaloGeometryDBWriter.h.

Definition at line 16 of file CaloGeometryDBWriter.h.

Definition at line 14 of file CaloGeometryDBWriter.h.

Constructor & Destructor Documentation

CaloGeometryDBWriter::CaloGeometryDBWriter ( )
inline

Definition at line 52 of file CaloGeometryDBWriter.h.

52 {}
virtual CaloGeometryDBWriter::~CaloGeometryDBWriter ( )
inlinevirtual

Definition at line 53 of file CaloGeometryDBWriter.h.

53 {}

Member Function Documentation

static void CaloGeometryDBWriter::write ( const TrVec tvec,
const DimVec dvec,
const IVec ivec,
std::string  tag 
)
inlinestatic

Definition at line 20 of file CaloGeometryDBWriter.h.

References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), cond::service::PoolDBOutputService::endOfTime(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), and GlobalPosition_Frontier_DevDB_cff::tag.

24  {
25  PCaloGeometry* peg = new PCaloGeometry( tvec , dvec, ivec );
26 
28  if( !mydbservice.isAvailable() )
29  {
30  edm::LogError("PCaloDBGeometryBuilder")<<"PoolDBOutputService unavailable";
31  }
32  else
33  {
34  if ( mydbservice->isNewTagRequest( tag ) )
35  {
36  mydbservice->createNewIOV<PCaloGeometry>(
37  peg,
38  mydbservice->beginOfTime(),
39  mydbservice->endOfTime(),
40  tag ) ;
41  }
42  else
43  {
44  mydbservice->appendSinceTime<PCaloGeometry>(
45  peg,
46  mydbservice->currentTime(),
47  tag ) ;
48  }
49  }
50  }
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
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)
static bool CaloGeometryDBWriter::writeFlag ( )
inlinestatic

Definition at line 18 of file CaloGeometryDBWriter.h.

References funct::true.

18 { return true ; }