CMS 3D CMS Logo

cond Namespace Reference


Classes

class  BaseValueExtractor
class  BlobReader
class  BlobStreamingService
 implementation builder template for the IBlobStreamingService interface More...
class  BlobWriter
struct  ClassID
class  ClassIDRegistry
class  ClassInfo
class  CommonOptions
class  CondDB
class  ConfigSessionFromParameterSet
class  Connection
class  ConnectionConfiguration
class  ConnectionHandler
class  ContainerIterator
class  CoralConnectionProxy
class  CoralTransaction
class  DBSession
class  DecodingKey
class  DefaultBlobStreamingService
class  EmptyIOVSource
class  Exception
struct  ExtractWhat
struct  ExtractWhat< Pedestals >
class  FileReader
class  FipProtocolParser
class  FrontierProxy
class  FWIncantation
class  GenericRef
class  IConnectionProxy
class  IOV
class  IOVEditor
class  IOVEditorImpl
class  IOVElement
struct  IOVInfo
class  IOVIterator
class  IOVIteratorImpl
class  IOVNames
class  IOVProxy
class  IOVRevIteratorImpl
class  IOVSchemaUtility
class  IOVService
class  IOVServiceImpl
class  ITransaction
class  ITransactionObserver
class  LogDBEntry
class  LogDBNames
class  Logger
class  MetaData
class  MetaDataDuplicateEntryException
class  MetaDataEntry
class  MetaDataNames
class  MetaDataSchemaUtility
class  noDataForRequiredTimeException
struct  NoDictPrereq
 default dictionary prerequisite template argument, always true More...
class  nonExistentGlobalTagException
class  nonExistentGlobalTagInventoryException
class  NullUserLogInfo
class  ObjectRelationalMappingUtility
class  OracleProxy
class  PayLoadInspector
class  PoolConnectionProxy
class  PoolContainerManager
class  PoolTransaction
class  PoolTransactionSentry
struct  PrimitiveContainerDictPrereq
class  RDBMS
struct  RealTimeType
struct  RealTimeType< lumiid >
struct  RealTimeType< runnumber >
struct  RealTimeType< timestamp >
struct  RealTimeType< userid >
class  RefException
class  SequenceManager
class  SessionConfiguration
struct  SessionMonitor
 The session related book-keeping of monitored events. More...
class  SQLiteProxy
class  SQLMonitoringService
class  SQLReport
class  TagCollectionRetriever
class  TagDBNames
class  TagInfo
class  TagMetadata
class  TBufferBlobReader
class  TBufferBlobStreamingService
class  TBufferBlobTypeInfo
class  TBufferBlobWriter
class  TechnologyProxy
struct  TimeTypeSpecs
struct  TimeTypeTraits
class  TokenBuilder
class  TokenInterpreter
class  TransactionException
class  TypedRef
 typed Ref smart pointer More...
class  UnregisteredRecordException
class  UserLogInfo
class  ValueExtractor
class  ValueExtractor< L1TriggerScaler >
class  ValueExtractor< Pedestals >
class  ValueExtractor< RunInfo >
class  ValueExtractor< RunNumber >
class  ValueExtractor< RunSummary >

Namespaces

namespace  idCategories
namespace  impl
namespace  service
namespace  XMLAuthenticationService

Typedefs

typedef
edmplugin::PluginFactory
< ClassInfo *() > 
ClassInfoFactory
typedef std::vector
< coral::monitor::Event::Record > 
EventStream
 The raw stream of recorder monitoring events.
typedef
edmplugin::PluginFactory
< edm::eventsetup::DataProxy
*(cond::Connection *, std::map
< std::string, std::string >
::iterator &) 
ProxyFactory )
typedef std::map< std::string,
SessionMonitor
Repository
 The repository of monitored events for all sessions where event streams are identified by session key.
typedef
edmplugin::PluginFactory
< cond::TechnologyProxy
*(const std::string &) > 
TechnologyProxyFactory
typedef unsigned long long Time_t
typedef std::pair< Time_t, Time_tValidityInterval

Enumerations

enum  AuthenticationMethod { Env, XML }
enum  MessageLevel { Error, Warning, Debug, Info }
enum  TimeType { runnumber = 0, timestamp, lumiid, userid }

Functions

std::string classID (std::string const &token)
boost::shared_ptr< ClassInfoclassInfo (std::string const &token)
std::string const errmsg ("Unable to load class for token ")
const TimeTypeSpecsfindSpecs (std::string const &name)
std::string id (const std::type_info &t)
bool loadClassByToken (std::string const &token)
std::string const orimsg (". Original error msg was ")
const char * pluginCategory ()
ROOT::Reflex::Type reflexTypeByToken (std::string const &token)
static const Time_t TIMELIMIT (0xFFFFFFFF)
template<class T>
std::string to_string (const T &t)
bool validToken (const std::string &tokenString)
 check if the token is valid

Variables

const unsigned int TIMETYPE_LIST_MAX = 4
const cond::TimeType timeTypeList [TIMETYPE_LIST_MAX]
const std::string timeTypeNames []
const TimeTypeSpecs timeTypeSpecs []
const cond::TimeType timeTypeValues []


Typedef Documentation

typedef edmplugin::PluginFactory<ClassInfo*() > cond::ClassInfoFactory

Definition at line 65 of file ClassID.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.

typedef edmplugin::PluginFactory< edm::eventsetup::DataProxy* ( cond::Connection*, std::map<std::string,std::string>::iterator& ) cond::ProxyFactory)

Definition at line 30 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.

typedef edmplugin::PluginFactory< cond::TechnologyProxy*(const std::string&) > cond::TechnologyProxyFactory

Definition at line 7 of file TechnologyProxyFactory.h.

typedef unsigned long long cond::Time_t

Definition at line 12 of file Time.h.

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

Definition at line 13 of file Time.h.


Enumeration Type Documentation

enum cond::AuthenticationMethod

Enumerator:
Env 
XML 

Definition at line 4 of file AuthenticationMethod.h.

enum cond::MessageLevel

Enumerator:
Error 
Warning 
Debug 
Info 

Definition at line 4 of file MessageLevel.h.

enum cond::TimeType

Enumerator:
runnumber 
timestamp 
lumiid 
userid 

Definition at line 14 of file Time.h.


Function Documentation

std::string cond::classID ( std::string const &  token  ) 

Definition at line 13 of file ClassInfoLoader.cc.

References e, and s.

Referenced by classInfo(), cond::IOVServiceImpl::deleteAll(), pyInfo(), reflexTypeByToken(), and cond::TokenInterpreter::TokenInterpreter().

00013                                              {
00014     static std::string const clid("CLID=");
00015     std::string::size_type s = token.find(clid) + clid.size();
00016     std::string::size_type e = token.find(']',s);
00017     return token.substr(s,e-s);
00018 
00019   }

boost::shared_ptr< ClassInfo > cond::classInfo ( std::string const &  token  ) 

Definition at line 22 of file ClassInfoLoader.cc.

References classID(), cond::idCategories::dictIDCategory(), DBSPlugin::get(), and prof2calltree::prefix.

Referenced by loadClassByToken().

00022                                                                 {
00023     static std::string const prefix = cond::idCategories::dictIDCategory + "/";
00024     std::string pluginName = prefix + classID(token);
00025     return boost::shared_ptr<ClassInfo>(ClassInfoFactory::get()->create(pluginName));
00026   }

std::string const cond::@1760::errmsg ( "Unable to load class for token "   )  [static]

Referenced by evf::FUEventProcessor::attachDqmToShm(), evf::SMProxy::createFragmentChain(), evf::FUEventProcessor::detachDqmFromShm(), reflexTypeByToken(), evf::BUProxy::sendAllocate(), evf::FUResourceTable::sendData(), evf::SMProxy::sendDataEvent(), evf::BUProxy::sendDiscard(), evf::SMProxy::sendDqmEvent(), and evf::SMProxy::sendErrorEvent().

const TimeTypeSpecs& cond::findSpecs ( std::string const &  name  )  [inline]

Definition at line 87 of file Time.h.

References Exception, i, TIMETYPE_LIST_MAX, and timeTypeSpecs.

Referenced by cond::service::PoolDBOutputService::PoolDBOutputService().

00087                                                                  {
00088     size_t i=0;
00089     for (; i<TIMETYPE_LIST_MAX; i++)
00090       if (name==timeTypeSpecs[i].name) return timeTypeSpecs[i];
00091     throw cond::Exception("invalid timetype: "+name);
00092     return timeTypeSpecs[0]; // compiler happy
00093   }

std::string cond::@1759::id ( const std::type_info &  t  )  [static]

Definition at line 12 of file ClassID.cc.

References pool::genMD5(), name, s, and StDecayID::status.

Referenced by cond::ClassInfo::pluginName().

00012                                         {
00013       const ROOT::Reflex::Type type=ROOT::Reflex::Type::ByTypeInfo(t);
00014       std::string s;
00015       if (type) {
00016         ROOT::Reflex::PropertyList pl = type.Properties();
00017         if ( pl.HasProperty("ClassID") )  {
00018           s = pl.PropertyAsString("ClassID");
00019         }
00020         else  {
00021           char buff[20];
00022           pool::genMD5(type.Name(ROOT::Reflex::SCOPED),buff);
00023           s = ((pool::Guid*)buff)->toString();
00024         }
00025 //       std::cout << "CondCore::ClassID: CLID for Reflex type " << type.Name(ROOT::Reflex::SCOPED) 
00026 //                 << " is " << s << std::endl;
00027       }
00028       else {
00029         // only for test
00030         int status=0;
00031         std::string name = __cxxabiv1::__cxa_demangle(t.name(), 0, 0, &status);
00032 //      std::cout << "CondCore::ClassID: Warning no Reflex type for " << name << std::endl;
00033         char buff[20];
00034         pool::genMD5(name,buff);
00035         s = ((pool::Guid*)buff)->toString();
00036       }
00037       return s;
00038     }

bool cond::loadClassByToken ( std::string const &  token  ) 

Definition at line 29 of file ClassInfoLoader.cc.

References classInfo().

Referenced by reflexTypeByToken().

00029                                                  {
00030      boost::shared_ptr<ClassInfo> ci = classInfo(token);
00031      // will never return false as pluginMgr throw!
00032      return ci.get()!=0;
00033   }

std::string const cond::@1760::orimsg ( ". Original error msg was "   )  [static]

Referenced by reflexTypeByToken().

const char * cond::pluginCategory (  ) 

Definition at line 29 of file ProxyFactory.cc.

Referenced by fillRecordToTypeMap().

00030 {
00031   return  "CondProxyFactory";
00032 }

ROOT::Reflex::Type cond::reflexTypeByToken ( std::string const &  token  ) 

Definition at line 42 of file ClassInfoLoader.cc.

References classID(), e, errmsg(), Exception, loadClassByToken(), orimsg(), and cms::Exception::what().

Referenced by cond::IOVServiceImpl::exportIOVRangeWithPayload(), cond::GenericRef::GenericRef(), and cond::impl::IOVImpl::IOVImpl().

00042                                                             {
00043     const pool::Guid guid(cond::classID(token));
00044     {
00045       // look if already loaded
00046       ROOT::Reflex::Type type = pool::DbReflex::forGuid(guid);
00047       if (type) return type;
00048     }
00049     try {
00050       // plugin mgr will throw fist: still
00051       if (!cond::loadClassByToken(token)) 
00052         throw cond::Exception(errmsg+token);
00053     }
00054     catch (cms::Exception const & e) {
00055       throw cond::Exception(errmsg+token+orimsg+e.what());
00056     }
00057     ROOT::Reflex::Type type = pool::DbReflex::forGuid(guid);
00058     if (!type) throw cond::Exception(errmsg+token +". Problem with DbReflex");
00059     return type;
00060   }

static const Time_t cond::TIMELIMIT ( 0xFFFFFFFF   )  [static]

template<class T>
std::string cond::to_string ( const T &  t  )  [inline]

Definition at line 26 of file Logger.cc.

References ss.

Referenced by cond::Logger::logFailedOperationNow(), and cond::Logger::logOperationNow().

00026                                  {
00027     std::stringstream ss;
00028     ss<<t;
00029     return ss.str();
00030   }

bool cond::validToken ( const std::string &  tokenString  ) 

check if the token is valid

Definition at line 6 of file TokenInterpreter.cc.

Referenced by cond::TokenInterpreter::isValid().

00006                                                 {
00007     // well a bit simplistic...
00008     return tokenString.find('[')==0;
00009   }


Variable Documentation

const unsigned int cond::TIMETYPE_LIST_MAX = 4

Definition at line 15 of file Time.h.

Referenced by findSpecs().

const cond::TimeType cond::timeTypeList[TIMETYPE_LIST_MAX]

Initial value:

Definition at line 17 of file Time.h.

const std::string cond::timeTypeNames[]

Initial value:

    {"runnumber","timestamp","lumiid","userid"}

Definition at line 23 of file Time.h.

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

const TimeTypeSpecs cond::timeTypeSpecs[]

Initial value:

 {
    TimeTypeTraits<runnumber>::specs(),
    TimeTypeTraits<timestamp>::specs(),
    TimeTypeTraits<lumiid>::specs(),
    TimeTypeTraits<userid>::specs(),
  }

Definition at line 79 of file Time.h.

Referenced by cond::IOVEditorImpl::append(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::endOfTime(), cond::IOVServiceImpl::exportIOVRangeWithPayload(), findSpecs(), cond::IOVEditorImpl::freeInsert(), cond::IOV::timeType(), l1t::DataWriter::updateIOV(), cond::IOVEditorImpl::validTime(), l1t::DataWriter::writeKey(), and l1t::DataWriter::writeKeyList().

const cond::TimeType cond::timeTypeValues[]

Initial value:

Definition at line 20 of file Time.h.


Generated on Tue Jun 9 18:36:43 2009 for CMSSW by  doxygen 1.5.4