CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
cond Namespace Reference

Namespaces

 ecalcond
 
 ecalped
 
 idCategories
 
 impl
 
 rpcobgas
 
 rpcobimon
 
 rpcobtemp
 
 rpcobvmon
 
 service
 
 time
 
 XMLAuthenticationService
 

Classes

class  BaseKeyed
 
class  BasePayloadProxy
 
class  BaseValueExtractor
 
class  BlobStreamingService
 
struct  ClassID
 
class  ClassIDRegistry
 
class  ClassInfo
 
class  CondDB
 
class  CondGetter
 
class  CoralServiceFactory
 
class  CoralServiceManager
 
class  DataProxyWrapperBase
 
class  DbConnection
 
class  DbConnectionConfiguration
 
class  DbScopedTransaction
 
class  DbSession
 
class  DbTransaction
 
class  DecodingKey
 
class  EmptyIOVSource
 
class  Exception
 
struct  ExtractWhat
 
struct  ExtractWhat< ecalcond::Container >
 
struct  ExtractWhat< EcalDAQTowerStatus >
 
struct  ExtractWhat< EcalDCSTowerStatus >
 
struct  ExtractWhat< EcalPedestals >
 
struct  ExtractWhat< Pedestals >
 
struct  ExtractWhat< RPCObGas >
 
struct  ExtractWhat< RPCObImon >
 
struct  ExtractWhat< RPCObTemp >
 
struct  ExtractWhat< RPCObVmon >
 
struct  ExtractWhat< SiStripSummary >
 
class  FileReader
 
class  FipProtocolParser
 
class  FrontierProxy
 
class  FWIncantation
 
class  GenericSummary
 
struct  Guid
 
class  IOV
 
class  IOVDescription
 
class  IOVEditor
 
class  IOVElement
 
class  IOVElementProxy
 
class  IOVKeysDescription
 
class  IOVNames
 
class  IOVProvenance
 
class  IOVProxy
 
class  IOVSchemaUtility
 
class  IOVSequence
 
class  IOVService
 
class  IOVUserMetaData
 
class  KeyedElement
 
class  KeyList
 
struct  LessFrame
 
class  LogDBEntry
 
class  LogDBNames
 
class  Logger
 
class  MetaData
 
class  MetaDataEntry
 
class  MetaDataNames
 
class  MetaDataSchemaUtility
 
class  noDataForRequiredTimeException
 
class  nonExistentGlobalTagException
 
class  nonExistentGlobalTagInventoryException
 
class  NullUserLogInfo
 
class  OracleProxy
 
class  PayLoadInspector
 
class  PayloadProxy
 
class  PayloadProxy< cond::KeyList >
 
class  PayloadRef
 
class  PfnEditor
 
class  PoolTransactionSentry
 
class  RDBMS
 
struct  RealTimeType
 
struct  RealTimeType< hash >
 
struct  RealTimeType< lumiid >
 
struct  RealTimeType< runnumber >
 
struct  RealTimeType< timestamp >
 
struct  RealTimeType< userid >
 
class  RefException
 
class  SequenceManager
 
class  SequenceState
 
class  SessionImpl
 
struct  SessionMonitor
 The session related book-keeping of monitored events. More...
 
struct  SharedLibraryName
 
class  SmallWORMDict
 
class  SQLiteProxy
 
class  SQLMonitoringService
 
class  SQLReport
 
class  Summary
 
class  TagCollectionRetriever
 
class  TagInfo
 
class  TagMetadata
 
class  TBufferBlobStreamingService
 
class  TBufferBlobTypeInfo
 
class  TechnologyProxy
 
struct  TimeTypeSpecs
 
struct  TimeTypeTraits
 
class  TransactionException
 
class  UnregisteredRecordException
 
class  UpdateStamp
 
class  UserLogInfo
 
class  Utilities
 
class  UtilitiesError
 
class  ValueExtractor
 
class  ValueExtractor< AlCaRecoTriggerBits >
 
class  ValueExtractor< DTCCBConfig >
 
class  ValueExtractor< DTDeadFlag >
 
class  ValueExtractor< DTHVStatus >
 
class  ValueExtractor< DTLVStatus >
 
class  ValueExtractor< DTMtime >
 
class  ValueExtractor< DTPerformance >
 
class  ValueExtractor< DTRangeT0 >
 
class  ValueExtractor< DTReadOutMapping >
 
class  ValueExtractor< DTStatusFlag >
 
class  ValueExtractor< DTT0 >
 
class  ValueExtractor< DTTPGParameters >
 
class  ValueExtractor< DTTtrig >
 
class  ValueExtractor< EcalADCToGeVConstant >
 
class  ValueExtractor< ecalcond::Container >
 
class  ValueExtractor< EcalDAQTowerStatus >
 
class  ValueExtractor< EcalDCSTowerStatus >
 
class  ValueExtractor< EcalGainRatios >
 
class  ValueExtractor< EcalLaserAPDPNRatios >
 
class  ValueExtractor< EcalMappingElectronics >
 
class  ValueExtractor< EcalPedestals >
 
class  ValueExtractor< EcalTBWeights >
 
class  ValueExtractor< EcalWeightXtalGroups >
 
class  ValueExtractor< L1TriggerScaler >
 
class  ValueExtractor< Pedestals >
 
class  ValueExtractor< RPCObGas >
 
class  ValueExtractor< RPCObImon >
 
class  ValueExtractor< RPCObPVSSmap >
 
class  ValueExtractor< RPCObTemp >
 
class  ValueExtractor< RPCObVmon >
 
class  ValueExtractor< RunInfo >
 
class  ValueExtractor< RunNumber >
 
class  ValueExtractor< RunSummary >
 
class  ValueExtractor< SiStripApvGain >
 
class  ValueExtractor< SiStripBadStrip >
 
class  ValueExtractor< SiStripConfObject >
 
class  ValueExtractor< SiStripDetVOff >
 
class  ValueExtractor< SiStripFedCabling >
 
class  ValueExtractor< SiStripLorentzAngle >
 
class  ValueExtractor< SiStripNoises >
 
class  ValueExtractor< SiStripPedestals >
 
class  ValueExtractor< SiStripRunSummary >
 
class  ValueExtractor< SiStripSummary >
 
class  ValueExtractor< SiStripThreshold >
 

Typedefs

typedef
edmplugin::PluginFactory
< ora::IBlobStreamingService *() > 
BlobStreamerPluginFactory
 
typedef
edmplugin::PluginFactory
< ClassInfo *() > 
ClassInfoFactory
 
typedef
edmplugin::PluginFactory
< coral::Service *(const
std::string &) > 
CoralServicePluginFactory
 
typedef std::vector
< coral::monitor::Event::Record > 
EventStream
 The raw stream of recorder monitoring events. More...
 
typedef std::set
< cond::TagMetadata
GlobalTag
 
typedef IOVSequence IOV
 
typedef
edmplugin::PluginFactory
< cond::DataProxyWrapperBase *() > 
ProxyFactory
 
typedef std::map< std::string,
SessionMonitor
Repository
 
typedef
edmplugin::PluginFactory
< cond::TechnologyProxy *() > 
TechnologyProxyFactory
 
typedef unsigned long long Time_t
 
typedef unsigned long long uint64_t
 
typedef std::pair< unsigned
int, unsigned int > 
UnpackedTime
 
typedef std::pair< Time_t, Time_tValidityInterval
 

Enumerations

enum  DbConfigurationDefaults {
  CoralDefaults, CmsDefaults, ProdDefaults, ToolDefaults,
  WebDefaults
}
 
enum  TimeType {
  runnumber =0, timestamp, lumiid, hash,
  userid
}
 

Functions

IOVbackportIOV (IOVSequence const &sequence)
 
std::auto_ptr
< cond::TechnologyProxy
buildTechnologyProxy (const std::string &userconnect, const DbConnection &connection)
 
char const * className (const std::type_info &t)
 
std::string classNameForTypeId (const std::type_info &typeInfo)
 
const TimeTypeSpecsfindSpecs (std::string const &name)
 
cond::Time_t fromIOVSyncValue (edm::IOVSyncValue const &time, cond::TimeType timetype)
 
void * genMD5 (void *buffer, unsigned long len, void *code)
 
void genMD5 (const std::string &s, void *code)
 
void genMD5 (const string &s, void *code)
 
unsigned long long hash64 (unsigned char *k, unsigned long long length, unsigned long long level)
 
const Time_t invalidTime (0)
 
const std::string invalidToken (" ")
 
edm::IOVSyncValue limitedIOVSyncValue (cond::Time_t time, cond::TimeType timetype)
 
edm::IOVSyncValue limitedIOVSyncValue (edm::IOVSyncValue const &time, cond::TimeType timetype)
 
Double_t linearF (Double_t *x, Double_t *par)
 
IOVSequencemigrateIOV (IOV const &iov)
 
std::pair< std::string, int > parseToken (const std::string &objectId)
 
const char * pluginCategory ()
 
const std::string tagInventoryTable ("TAGINVENTORY_TABLE")
 
const std::string tagTreeTablePrefix ("TAGTREE_TABLE")
 
void throwException (std::string const &message, std::string const &methodName)
 
const Time_t TIMELIMIT (std::numeric_limits< Time_t >::max())
 
std::string const & timeTypeNames (int)
 
template<class T >
std::string to_string (const T &t)
 
edm::IOVSyncValue toIOVSyncValue (cond::Time_t time, cond::TimeType timetype, bool startOrStop)
 
static void topinit ()
 
unsigned long long toUNIX (int date, int time)
 
std::string userInfo ()
 
std::string writeToken (const std::string &containerName, int oid0, int oid1, const std::string &className)
 
std::string writeTokenContainerFragment (const std::string &containerName, const std::string &className)
 

Variables

static const char * fmt_Guid = "%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX"
 
static const char * fmt_oid = "[OID=%08X-%08X]"
 
static const char * fmt_tech = "[TECH=%08X]"
 
static const char * guid_null = "00000000-0000-0000-0000-000000000000"
 
const std::string tagInventoryTable
 
const std::string tagTreeTablePrefix
 
const unsigned int TIMETYPE_LIST_MAX =5
 
const cond::TimeType timeTypeList [TIMETYPE_LIST_MAX]
 
const TimeTypeSpecs timeTypeSpecs []
 
const cond::TimeType timeTypeValues []
 

Typedef Documentation

Definition at line 8 of file BlobStreamerPluginFactory.h.

Definition at line 69 of file ClassID.h.

typedef edmplugin::PluginFactory< coral::Service*(const std::string&) > cond::CoralServicePluginFactory

Definition at line 24 of file CoralServiceFactory.h.

typedef std::vector<coral::monitor::Event::Record> cond::EventStream

The raw stream of recorder monitoring events.

Definition at line 24 of file SQLMonitoringService.h.

Definition at line 20 of file CondPyInterface.h.

Definition at line 16 of file IOVProxy.h.

Definition at line 25 of file ProxyFactory.h.

typedef std::map< std::string, SessionMonitor > cond::Repository

The repository of monitored events for all sessions where event streams are identified by session key

Definition at line 38 of file SQLMonitoringService.h.

Definition at line 10 of file TechnologyProxyFactory.h.

typedef unsigned long long cond::Time_t

Definition at line 16 of file Time.h.

typedef unsigned long long cond::uint64_t

Definition at line 15 of file Time.h.

typedef std::pair<unsigned int, unsigned int> cond::UnpackedTime

Definition at line 17 of file Time.h.

typedef std::pair<Time_t, Time_t> cond::ValidityInterval

Definition at line 19 of file Time.h.

Enumeration Type Documentation

Enumerator
runnumber 
timestamp 
lumiid 
hash 
userid 

Definition at line 21 of file Time.h.

Function Documentation

IOV * cond::backportIOV ( IOVSequence const &  sequence)

Definition at line 22 of file migrateIOV.cc.

References cond::IOVSequence::add(), ora::PVector< Tp >::back(), ora::PVector< Tp >::begin(), ora::PVector< Tp >::end(), cond::IOVSequence::firstSince(), cond::IOVSequence::iovs(), cond::IOVSequence::lastTill(), L1TEmulatorMonitor_cff::p, query::result, ora::PVector< Tp >::size(), and cond::IOVSequence::timeType().

22  {
23  IOV * result = new IOV(sequence.timeType(), sequence.firstSince());
24  (*result).iov.reserve(sequence.iovs().size());
25  for(IOVSequence::const_iterator p=sequence.iovs().begin();
26  p!=sequence.iovs().end()-1; p++) {
27  cond::Time_t till = (*(p+1)).sinceTime()-1;
28  (*result).add(till, (*p).wrapperToken());
29  }
30  (*result).add(sequence.lastTill(),sequence.iovs().back().wrapperToken());
31  return result;
32  }
size_t add(cond::Time_t time, std::string const &wrapperToken)
Definition: IOVSequence.cc:72
unsigned long long Time_t
Definition: Time.h:16
tuple result
Definition: query.py:137
IOVSequence IOV
Definition: IOVProxy.h:16
std::auto_ptr<cond::TechnologyProxy> cond::buildTechnologyProxy ( const std::string &  userconnect,
const DbConnection connection 
)
inline

Definition at line 16 of file DbSession.cc.

References SurfaceDeformationFactory::create(), edm::hlt::Exception, reco::get(), L1TEmulatorMonitor_cff::p, and pos.

Referenced by cond::DbSession::importMapping(), and cond::SessionImpl::open().

17  {
18  std::string protocol;
19  std::size_t pos=userconnect.find_first_of(':');
20  if( pos!=std::string::npos ){
21  protocol=userconnect.substr(0,pos);
22  std::size_t p=protocol.find_first_of('_');
23  if(p!=std::string::npos){
24  protocol=protocol.substr(0,p);
25  }
26  }else{
27  throw cond::Exception(userconnect +":connection string format error");
28  }
29  //std::cout<<"userconnect "<<userconnect<<std::endl;
30  //std::cout<<"protocol "<<protocol<<std::endl;
31  std::auto_ptr<cond::TechnologyProxy> ptr(cond::TechnologyProxyFactory::get()->create(protocol));
32  (*ptr).initialize(userconnect,connection);
33  return ptr;
34  }
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:56
char const * cond::className ( const std::type_info &  t)

Definition at line 8 of file ClassID.cc.

References ntuplemaker::status.

Referenced by cond::service::GetTokenFromPointer< T >::operator()().

8  {
9  int status=0;
10  return __cxxabiv1::__cxa_demangle(t.name(), 0, 0, &status);
11  }
tuple status
Definition: ntuplemaker.py:245
std::string cond::classNameForTypeId ( const std::type_info &  typeInfo)
inline

Definition at line 39 of file PoolDBOutputService.h.

Referenced by cond::service::GetTokenFromPointer< T >::classNameForPointer(), l1t::WriterProxyT< Record, Type >::save(), and l1t::DataWriter::writeKeyList().

39  {
40  Reflex::Type reflexType = Reflex::Type::ByTypeInfo( typeInfo );
41  //FIXME: should become Reflex::SCOPED?
42  return reflexType.Name();
43  }
const TimeTypeSpecs & cond::findSpecs ( std::string const &  name)

Definition at line 33 of file Time.cc.

References edm::hlt::Exception, i, TIMETYPE_LIST_MAX, and timeTypeSpecs.

Referenced by cond::service::PoolDBOutputService::fillRecord(), and cond::service::PoolDBOutputService::PoolDBOutputService().

33  {
34  size_t i=0;
35  for (; i<TIMETYPE_LIST_MAX; i++)
36  if (name==timeTypeSpecs[i].name) return timeTypeSpecs[i];
37  throw cms::Exception("invalid timetype: "+name);
38  return timeTypeSpecs[0]; // compiler happy
39  }
const TimeTypeSpecs timeTypeSpecs[]
Definition: Time.cc:22
int i
Definition: DBlmapReader.cc:9
const unsigned int TIMETYPE_LIST_MAX
Definition: Time.h:22
cond::Time_t cond::fromIOVSyncValue ( edm::IOVSyncValue const &  time,
cond::TimeType  timetype 
)

Definition at line 29 of file ConvertIOVSyncValue.cc.

References edm::IOVSyncValue::eventID(), lumiid, edm::IOVSyncValue::luminosityBlockNumber(), edm::EventID::run(), runnumber, edm::IOVSyncValue::time(), timestamp, edm::LuminosityBlockID::value(), and edm::Timestamp::value().

Referenced by CondDBESSource::setIntervalFor().

29  {
30  switch (timetype) {
31  case cond::runnumber :
32  return time.eventID().run();
33  case cond::lumiid :
34  {
35  edm::LuminosityBlockID lum(time.eventID().run(), time.luminosityBlockNumber());
36  return lum.value();
37  }
38  case cond::timestamp :
39  return time.time().value();
40  default:
41  return 0;
42  }
43  }
boost::uint64_t value() const
void * cond::genMD5 ( void *  buffer,
unsigned long  len,
void *  code 
)

Definition at line 358 of file GenMD5.cc.

Referenced by writeTokenContainerFragment().

358  {
359  MD5 checkSum((unsigned char*)buffer, len);
360  checkSum.raw_digest((unsigned char*)code);
361  return code;
362  }
void cond::genMD5 ( const std::string &  s,
void *  code 
)
void cond::genMD5 ( const string &  s,
void *  code 
)

Definition at line 363 of file GenMD5.cc.

363  {
364  MD5 checkSum((unsigned char*)s.c_str(), s.length());
365  checkSum.raw_digest((unsigned char*)code);
366  }
string s
Definition: asciidump.py:422
ub8 cond::hash64 ( unsigned char *  k,
unsigned long long  length,
unsigned long long  level 
)

Definition at line 45 of file hash64.cc.

References a, b, trackerHits::c, testEve_cfg::level, and mix64.

Referenced by cond::KeyedElement::convert().

49  {
50  register ub8 a,b,c,len;
51 
52  /* Set up the internal state */
53  len = length;
54  a = b = level; /* the previous hash value */
55  c = 0x9e3779b97f4a7c13LL; /* the golden ratio; an arbitrary value */
56 
57  /*---------------------------------------- handle most of the key */
58  if (((unsigned long)k)&7)
59  {
60  while (len >= 24)
61  {
62  a += (k[0] +((ub8)k[ 1]<< 8)+((ub8)k[ 2]<<16)+((ub8)k[ 3]<<24)
63  +((ub8)k[4 ]<<32)+((ub8)k[ 5]<<40)+((ub8)k[ 6]<<48)+((ub8)k[ 7]<<56));
64  b += (k[8] +((ub8)k[ 9]<< 8)+((ub8)k[10]<<16)+((ub8)k[11]<<24)
65  +((ub8)k[12]<<32)+((ub8)k[13]<<40)+((ub8)k[14]<<48)+((ub8)k[15]<<56));
66  c += (k[16] +((ub8)k[17]<< 8)+((ub8)k[18]<<16)+((ub8)k[19]<<24)
67  +((ub8)k[20]<<32)+((ub8)k[21]<<40)+((ub8)k[22]<<48)+((ub8)k[23]<<56));
68  mix64(a,b,c);
69  k += 24; len -= 24;
70  }
71  }
72  else
73  {
74  while (len >= 24) /* aligned */
75  {
76  a += *(ub8 *)(k+0);
77  b += *(ub8 *)(k+8);
78  c += *(ub8 *)(k+16);
79  mix64(a,b,c);
80  k += 24; len -= 24;
81  }
82  }
83 
84  /*------------------------------------- handle the last 23 bytes */
85  c += length;
86  switch(len) /* all the case statements fall through */
87  {
88  case 23: c+=((ub8)k[22]<<56);
89  case 22: c+=((ub8)k[21]<<48);
90  case 21: c+=((ub8)k[20]<<40);
91  case 20: c+=((ub8)k[19]<<32);
92  case 19: c+=((ub8)k[18]<<24);
93  case 18: c+=((ub8)k[17]<<16);
94  case 17: c+=((ub8)k[16]<<8);
95  /* the first byte of c is reserved for the length */
96  case 16: b+=((ub8)k[15]<<56);
97  case 15: b+=((ub8)k[14]<<48);
98  case 14: b+=((ub8)k[13]<<40);
99  case 13: b+=((ub8)k[12]<<32);
100  case 12: b+=((ub8)k[11]<<24);
101  case 11: b+=((ub8)k[10]<<16);
102  case 10: b+=((ub8)k[ 9]<<8);
103  case 9: b+=((ub8)k[ 8]);
104  case 8: a+=((ub8)k[ 7]<<56);
105  case 7: a+=((ub8)k[ 6]<<48);
106  case 6: a+=((ub8)k[ 5]<<40);
107  case 5: a+=((ub8)k[ 4]<<32);
108  case 4: a+=((ub8)k[ 3]<<24);
109  case 3: a+=((ub8)k[ 2]<<16);
110  case 2: a+=((ub8)k[ 1]<<8);
111  case 1: a+=((ub8)k[ 0]);
112  /* case 0: nothing left to add */
113  }
114  mix64(a,b,c);
115  /*-------------------------------------------- report the result */
116  return c;
117  }
#define mix64(a, b, c)
Definition: hash64.cc:22
unsigned long long ub8
Definition: hash64.cc:38
int k[5][pyjets_maxn]
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
tuple level
Definition: testEve_cfg.py:34
const Time_t cond::invalidTime ( )
const std::string cond::invalidToken ( " "  )
edm::IOVSyncValue cond::limitedIOVSyncValue ( cond::Time_t  time,
cond::TimeType  timetype 
)

Definition at line 46 of file ConvertIOVSyncValue.cc.

References edm::IOVSyncValue::invalidIOVSyncValue(), prof2calltree::l, lumiid, edm::LuminosityBlockID::luminosityBlock(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::run(), runnumber, and timestamp.

Referenced by CondDBESSource::setIntervalFor().

46  {
47  switch (timetype) {
48  case cond::runnumber :
49  // last lumi and event of this run
53  );
54  case cond::lumiid :
55  {
56  // the same lumiblock
58  return edm::IOVSyncValue(edm::EventID(l.run(),
59  l.luminosityBlock(),
61  );
62  }
63  case cond::timestamp :
64  // next event ?
66  default:
68  }
69  }
static EventNumber_t maxEventNumber()
Definition: EventID.h:106
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:92
edm::IOVSyncValue cond::limitedIOVSyncValue ( edm::IOVSyncValue const &  time,
cond::TimeType  timetype 
)

Definition at line 71 of file ConvertIOVSyncValue.cc.

References edm::IOVSyncValue::eventID(), edm::IOVSyncValue::invalidIOVSyncValue(), lumiid, edm::IOVSyncValue::luminosityBlockNumber(), edm::EventID::maxEventNumber(), edm::EventID::run(), runnumber, and timestamp.

71  {
72  switch (timetype) {
73  case cond::runnumber :
74  // last event of this run
75  return edm::IOVSyncValue(edm::EventID(time.eventID().run(),
78  );
79  case cond::lumiid :
80  // the same lumiblock
81  return edm::IOVSyncValue(edm::EventID(time.eventID().run(),
82  time.luminosityBlockNumber(),
84  );
85  case cond::timestamp :
86  // same lumiblock
87  return edm::IOVSyncValue(edm::EventID(time.eventID().run(),
88  time.luminosityBlockNumber(),
90  );
91  default:
93  }
94  }
static EventNumber_t maxEventNumber()
Definition: EventID.h:106
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:92
Double_t cond::linearF ( Double_t *  x,
Double_t *  par 
)

Definition at line 260 of file RPCObGasPyWrapper.cc.

References ExpressReco_HICollisions_FallBack::y.

Referenced by cond::PayLoadInspector< DataT >::plot().

260  {
261  Double_t y=0.;
262  y=par[0]*(*x);
263  return y;
264  }
const double par[8 *NPar][4]
IOVSequence * cond::migrateIOV ( IOV const &  iov)

Definition at line 10 of file migrateIOV.cc.

References cond::IOV::firstsince, cond::IOV::iov, L1TEmulatorMonitor_cff::p, query::result, and cond::IOV::timetype.

10  {
11  IOVSequence * result = new IOVSequence(iov.timetype,iov.iov.back().first,"");
12  // (*result).iovs().reserve(iov.iov.size());
13  cond::Time_t since = iov.firstsince;
14  for(IOV::const_iterator p=iov.iov.begin(); p!=iov.iov.end();p++) {
15  (*result).add(since, (*p).second);
16  since = (*p).first+1;
17  }
18  return result;
19  }
unsigned long long Time_t
Definition: Time.h:16
tuple iov
Definition: o2o.py:307
tuple result
Definition: query.py:137
std::pair< std::string, int > cond::parseToken ( const std::string &  objectId)

Definition at line 16 of file PoolToken.cc.

References fmt_oid, p1, p2, p3, LaserTracksInput_cfi::source, ora::throwException(), and tmp.

Referenced by cond::MetaData::addMapping(), cond::DbSession::deleteObject(), cond::PayLoadInspector< DataT >::dump(), cond::DbSession::getObject(), ora::CondMetadataTable::getObjectByName(), cond::DbSession::getTypedObject(), cond::DbSession::importObject(), cond::Logger::insertLogRecord(), cond::IOVService::payloadContainerName(), cond::IOVProxy::payloadContainerName(), and cond::DbSession::updateObject().

16  {
17  if( source.empty() ) ora::throwException("Provided token is empty.","PoolToken::parseToken");
18  std::string tmp = source;
19  std::pair<std::string,int> oid;
20  oid.first = "";
21  oid.second = -1;
22  for(char* p1 = (char*)tmp.c_str(); p1; p1 = ::strchr(++p1,'[')) {
23  char* p2 = ::strchr(p1, '=');
24  char* p3 = ::strchr(p1, ']');
25  if ( p2 && p3 ) {
26  char* val = p2+1;
27  if ( ::strncmp("[DB=", p1, 4) == 0 ) {
28  *p3 = 0;
29  } else if ( ::strncmp("[CNT=", p1, 5) == 0 ) {
30  *p3 = 0;
31  oid.first = val;
32  } else if ( ::strncmp(fmt_oid, p1, 5) == 0 ) {
33  int nn;
34  ::sscanf(p1, fmt_oid, &nn, &oid.second);
35  } else {
36  *p3 = *p2 = 0;
37  }
38  *p3 = ']';
39  *p2 = '=';
40  }
41  }
42  return oid;
43  }
static const char * fmt_oid
Definition: PoolToken.cc:13
double p2[4]
Definition: TauolaWrapper.h:90
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
double p1[4]
Definition: TauolaWrapper.h:89
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:10
double p3[4]
Definition: TauolaWrapper.h:91
const char * cond::pluginCategory ( )

Definition at line 33 of file ProxyFactory.cc.

34  {
35  return "CondProxyFactory";
36  }
const std::string cond::tagInventoryTable ( "TAGINVENTORY_TABLE"  )
const std::string cond::tagTreeTablePrefix ( "TAGTREE_TABLE"  )
void cond::throwException ( std::string const &  message,
std::string const &  methodName 
)

Definition at line 17 of file Exception.cc.

References edm::hlt::Exception.

Referenced by L1CondDBIOVWriter::analyze(), and L1CondDBPayloadWriter::analyze().

18  {
19  throw Exception( methodName + ": " + message );
20  }
string message
Definition: argparse.py:126
const Time_t cond::TIMELIMIT ( std::numeric_limits< Time_t >::  max())
std::string const & cond::timeTypeNames ( int  i)

Definition at line 15 of file Time.cc.

References i.

Referenced by cond::TimeTypeTraits< type >::specs().

15  {
16  static const std::string local[]=
17  {"runnumber","timestamp","lumiid","hash","userid"};
18  return local[i];
19  }
int i
Definition: DBlmapReader.cc:9
template<class T >
std::string cond::to_string ( const T &  t)
edm::IOVSyncValue cond::toIOVSyncValue ( cond::Time_t  time,
cond::TimeType  timetype,
bool  startOrStop 
)

Definition at line 7 of file ConvertIOVSyncValue.cc.

References edm::IOVSyncValue::invalidIOVSyncValue(), prof2calltree::l, lumiid, edm::LuminosityBlockID::luminosityBlock(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::run(), runnumber, and timestamp.

Referenced by CondDBESSource::setIntervalFor().

7  {
8  switch (timetype) {
9  case cond::runnumber :
11  startOrStop ? 0 : edm::EventID::maxEventNumber(),
12  startOrStop ? 0 : edm::EventID::maxEventNumber())
13  );
14  case cond::lumiid :
15  {
17  return edm::IOVSyncValue(edm::EventID(l.run(),
18  l.luminosityBlock(),
19  startOrStop ? 0 : edm::EventID::maxEventNumber())
20  );
21  }
22  case cond::timestamp :
24  default:
26  }
27  }
static EventNumber_t maxEventNumber()
Definition: EventID.h:106
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:92
static void cond::topinit ( )
static
unsigned long long cond::toUNIX ( int  date,
int  time 
)

Definition at line 240 of file RPCObImonPyWrapper.cc.

References cond::rpcobgas::day, min, and LaserDQM_cfi::mon.

Referenced by cond::PayLoadInspector< DataT >::plot().

241  {
242  int yea_ = (int)date/100;
243  int yea = 2000 + (date - yea_*100);
244  int mon_ = (int)yea_/100;
245  int mon = yea_ - mon_*100;
246  int day = (int)yea_/100;
247  int sec_ = (int)time/100;
248  int sec = time - sec_*100;
249  int min_ = (int)sec_/100;
250  int min = sec_ - min_*100;
251  int hou = (int)sec_/100;
252  int nan = 0;
253  coral::TimeStamp TS;
254  TS = coral::TimeStamp(yea, mon, day, hou, min, sec, nan);
255 
256  long long UT = (TS.year()-1970)*31536000+static_cast<int>(trunc((TS.year()-1972)/4))*86400+
257  (((TS.month()-1)*31)*86400)+((TS.day()-1)*86400)+TS.hour()*3600+TS.minute()*60+TS.second();
258 
259  if (TS.month() == 3) UT = UT - 3*86400;
260  if (TS.month() == 4) UT = UT - 3*86400;
261  if (TS.month() == 5) UT = UT - 4*86400;
262  if (TS.month() == 6) UT = UT - 4*86400;
263  if (TS.month() == 7) UT = UT - 5*86400;
264  if (TS.month() == 8) UT = UT - 5*86400;
265  if (TS.month() == 9) UT = UT - 5*86400;
266  if (TS.month() == 10) UT = UT - 6*86400;
267  if (TS.month() == 11) UT = UT - 6*86400;
268  if (TS.month() == 12) UT = UT - 7*86400;
269 
270  return UT;
271  }
#define min(a, b)
Definition: mlp_lapack.h:161
std::string cond::userInfo ( )

Definition at line 9 of file IOVInfo.cc.

References createBeamHaloJobs::pwd, and hcal_dqm_sourceclient-file_cfg::user.

Referenced by cond::service::PoolDBOutputService::appendIOV(), cond::service::PoolDBOutputService::closeIOV(), cond::service::PoolDBOutputService::createNewIOV(), cond::IOVService::exportIOVRangeWithPayload(), and popcon::PopCon::write().

9  {
10  // this are really static stuff
11  std::ostringstream user_info;
12  char * user= ::getenv("USER");
13  std::vector<char> hname(1024,'\0');
14  char * hostname = &hname.front();
15  ::gethostname(hostname, 1024);
16  char * pwd = ::getenv("PWD");
17  if (user) { user_info<< "USER=" << user <<";" ;} else { user_info<< "USER="<< "??;";}
18  if (hostname[0] != '\0') {user_info<< "HOSTNAME=" << hostname <<";";}
19  else { user_info<< "HOSTNAME="<< "??;";}
20  if (pwd) {user_info<< "PWD=" << pwd <<";";} else {user_info<< "PWD="<< "??;";}
21  return user_info.str();
22  }
std::string cond::writeToken ( const std::string &  containerName,
int  oid0,
int  oid1,
const std::string &  className 
)

Definition at line 45 of file PoolToken.cc.

References fmt_oid, runonSM::text, and writeTokenContainerFragment().

Referenced by ora::CondMetadataTable::getNamesForObject(), cond::MetaData::getToken(), ora::CondMetadataTable::setObjectName(), and cond::DbSession::storeObject().

48  {
49  std::string str = writeTokenContainerFragment( containerName, className );
50  char text[128];
51  ::sprintf(text, fmt_oid, oid0, oid1);
52  str += text;
53  return str;
54  }
static const char * fmt_oid
Definition: PoolToken.cc:13
std::string writeTokenContainerFragment(const std::string &containerName, const std::string &className)
Definition: PoolToken.cc:56
tuple text
Definition: runonSM.py:42
std::string className(const T &t)
Definition: ClassName.h:30
std::string cond::writeTokenContainerFragment ( const std::string &  containerName,
const std::string &  className 
)

Definition at line 56 of file PoolToken.cc.

References fmt_tech, genMD5(), guid_null, runonSM::text, and cond::Guid::toString().

Referenced by ora::CondMetadataTable::getNamesForContainer(), and writeToken().

57  {
58 
59  char buff[20];
60  std::string clguid("");
61  // first lookup the class guid in the dictionary
62  Reflex::Type containerType = Reflex::Type::ByName( className );
63  if( containerType ){
64  Reflex::PropertyList props = containerType.Properties();
65  if( props.HasProperty("ClassID")){
66  clguid = props.PropertyAsString("ClassID");
67  }
68  }
69  // if not found, generate one...
70  if( clguid.empty() ){
71  genMD5(className,buff);
72  Guid* gd = reinterpret_cast<Guid*>(buff);
73  clguid = gd->toString();
74  }
75  int tech = 0xB01;
76  char text[128];
77  std::string str = "[DB="+std::string(guid_null)+"][CNT=" + containerName + "][CLID="+clguid+"]";
78  ::sprintf(text, fmt_tech, tech);
79  str += text;
80  return str;
81  }
static const char * fmt_tech
Definition: PoolToken.cc:12
void * genMD5(void *buffer, unsigned long len, void *code)
Definition: GenMD5.cc:358
static const char * guid_null
Definition: PoolToken.cc:14
tuple text
Definition: runonSM.py:42
std::string className(const T &t)
Definition: ClassName.h:30

Variable Documentation

const char* cond::fmt_Guid = "%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX"
static

Definition at line 9 of file Guid.h.

Referenced by cond::Guid::toString().

const char* cond::fmt_oid = "[OID=%08X-%08X]"
static

Definition at line 13 of file PoolToken.cc.

Referenced by parseToken(), and writeToken().

const char* cond::fmt_tech = "[TECH=%08X]"
static

Definition at line 12 of file PoolToken.cc.

Referenced by writeTokenContainerFragment().

const char* cond::guid_null = "00000000-0000-0000-0000-000000000000"
static

Definition at line 14 of file PoolToken.cc.

Referenced by writeTokenContainerFragment().

const std::string cond::tagInventoryTable
const std::string cond::tagTreeTablePrefix
const unsigned int cond::TIMETYPE_LIST_MAX =5

Definition at line 22 of file Time.h.

Referenced by findSpecs().

const cond::TimeType cond::timeTypeList
Initial value:

Definition at line 9 of file Time.cc.

const TimeTypeSpecs cond::timeTypeSpecs
Initial value:
= {
TimeTypeTraits<runnumber>::specs(),
TimeTypeTraits<timestamp>::specs(),
TimeTypeTraits<lumiid>::specs(),
TimeTypeTraits<hash>::specs(),
TimeTypeTraits<userid>::specs()
}

Definition at line 22 of file Time.cc.

Referenced by cond::IOVEditor::append(), cond::service::PoolDBOutputService::beginOfTime(), cond::IOVEditor::debugInfo(), cond::service::PoolDBOutputService::endOfTime(), findSpecs(), cond::IOVEditor::freeInsert(), cond::IOV::timeType(), cond::IOVSequence::timeType(), cond::service::PoolDBOutputService::Record::timetypestr(), and cond::IOVEditor::validTime().

const cond::TimeType cond::timeTypeValues
Initial value:

Definition at line 12 of file Time.cc.