Namespaces | |
concurrency | |
detail | |
Functions | |
void | Adler32 (char const *data, size_t len, uint32_t &a, uint32_t &b) |
uint32_t | Adler32 (char const *data, size_t len) |
def | cms_error |
def | config |
def | generate |
bool | operator!= (MD5Result const &a, MD5Result const &b) |
bool | operator< (MD5Result const &a, MD5Result const &b) |
std::ostream & | operator<< (std::ostream &os, MD5Result const &r) |
std::ostream & | operator<< (std::ostream &ost, Exception const &e) |
template<typename E , typename T > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type & | operator<< (E &e, T const &stuff) |
template<typename E , typename T > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, T const &stuff) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type & | operator<< (E &e, std::ostream &(*f)(std::ostream &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, std::ostream &(*f)(std::ostream &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type & | operator<< (E &e, std::ios_base &(*f)(std::ios_base &)) |
template<typename E > | |
detail::Desired< E, detail::is_derived_or_same < Exception, E >::value > ::type const & | operator<< (E const &e, std::ios_base &(*f)(std::ios_base &)) |
bool | operator== (MD5Result const &a, MD5Result const &b) |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < TCMETProducer > > | s_filler__LINE__ ("TCMETProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < GenMETProducer > > | s_filler__LINE__ ("GenMETProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < PFClusterMETProducer > > | s_filler__LINE__ ("PFClusterMETProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < ElseMETProducer > > | s_filler__LINE__ ("ElseMETProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < MuonMET > > | s_filler__LINE__ ("MuonMET") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < CaloMETProducer > > | s_filler__LINE__ ("CaloMETProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < METSignificanceProducer > > | s_filler__LINE__ ("METSignificanceProducer") |
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker < edm::ParameterSetDescriptionFiller < PFMETProducer > > | s_filler__LINE__ ("PFMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < TCMETProducer > > | s_maker__LINE__ ("TCMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < GenMETProducer > > | s_maker__LINE__ ("GenMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < PFClusterMETProducer > > | s_maker__LINE__ ("PFClusterMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < ElseMETProducer > > | s_maker__LINE__ ("ElseMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker< MuonMET > > | s_maker__LINE__ ("MuonMET") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < CaloMETProducer > > | s_maker__LINE__ ("CaloMETProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < METSignificanceProducer > > | s_maker__LINE__ ("METSignificanceProducer") |
static const edm::MakerPluginFactory::PMaker < edm::WorkerMaker < PFMETProducer > > | s_maker__LINE__ ("PFMETProducer") |
void | set_to_default (MD5Result &val) |
def | test_cms_environment |
Variables | |
static const char * | s_hexValues |
How ParameterSets are nested inside ParameterSets The main feature is that they're made persistent using a ParameterSetID, and only reconstituted as needed, when the value_ptr = 0;
This a basic exception type expected to be thrown by developer-written code. We recommend that you use it directly. It can also be used as a base class if needed.
Each Exception is identified by a category string. This category is a short word or phrase (no spaces) that described the problem that was encountered.
Information can be added to the Exception using the stream insertion operator (as one uses cout). We recommend using it in the following manner:
Example: if ((rc=func()) < 0) { throw cms::Exception("DataCorrupt") << "I died with rc = " << rc << std::endl; }
Derived types are expected to fix the category, either by 1) passing a string literal to the base class constructor, or 2) ensuring the developer gives a category name.
Example: class InfiniteLoop : public Exception { InfiniteLoop(const std::string& msg) : Exception("InfiniteLoop",msg) { } };
ExceptionCollector is a utility class that can be used to make sure that each function or functor in a sequence of calls is invoked even if a previous function throws. Each function/functor must take no arguments and return a void. std::bind can be used to convert a function taking arguments into a function taking no arguments. The exception strings are saved in a cms::Exception for optional rethrow.
Here is an example:
ExceptionCollector c("initialMessage");
c.call(std::bind(&MyClass::myFunction, myClassPtr)); c.call(std::bind(&MyClass::myOtherFunction, myClassPtr, myArgPtr)); c.call(std::bind(&myFreeFunction, myArgPtr)); if (c.hasThrown()) c.rethrow();
This insures that all three functions will be called before any exception is thrown.
void cms::Adler32 | ( | char const * | data, |
size_t | len, | ||
uint32_t & | a, | ||
uint32_t & | b | ||
) |
Definition at line 11 of file Adler32Calculator.cc.
References a, compareJSON::const, data, and MOD_ADLER.
Referenced by Adler32(), edm::StreamerInputSource::deserializeEvent(), edm::StreamerInputSource::deserializeRegistry(), evf::RecoEventOutputModuleForFU< Consumer >::doOutputHeader(), evf::RecoEventOutputModuleForFU< Consumer >::endLuminosityBlock(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), edm::StreamSerializer::serializeEvent(), edm::StreamSerializer::serializeRegistry(), OutputFile::write(), and RawEventOutputModuleForBU< Consumer >::write().
uint32_t cms::Adler32 | ( | char const * | data, |
size_t | len | ||
) |
Definition at line 33 of file Adler32Calculator.cc.
References a, Adler32(), and b.
def cms.cms_error | ( | ) |
def cms.generate | ( | kwds | ) |
Definition at line 87 of file cms.py.
References cms_error(), utils.code_generator(), cmsPerfStripChart.dict, and test_cms_environment().
|
inline |
bool cms::operator< | ( | MD5Result const & | a, |
MD5Result const & | b | ||
) |
|
inline |
Definition at line 46 of file Digest.h.
References cms::MD5Result::toString().
|
inline |
|
inline |
Definition at line 229 of file Exception.h.
References alignCSCRings::e.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool cms::operator== | ( | MD5Result const & | a, |
MD5Result const & | b | ||
) |
Definition at line 148 of file Digest.cc.
References cms::MD5Result::bytes, and cond::serialization::equal().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void cms::set_to_default | ( | MD5Result & | val | ) |
Definition at line 44 of file Digest.cc.
References cms::MD5Result::bytes.
Referenced by cms::MD5Result::fromHexifiedString(), and cms::MD5Result::MD5Result().
def cms.test_cms_environment | ( | tmpl | ) |
Test CMS environment and requirements to run within CMSSW_BASE. Return True if we fullfill requirements and False otherwise.
Definition at line 59 of file cms.py.
Referenced by generate().
|
static |
Definition at line 69 of file Digest.cc.
Referenced by cms::MD5Result::toString().