CMS 3D CMS Logo

Classes | Enumerations | Functions
cond::hdf5 Namespace Reference

Classes

struct  DataProduct
 
struct  IOVSyncValue
 
struct  Record
 

Enumerations

enum  Compression { Compression::kNone, Compression::kZLIB, Compression::kLZMA }
 

Functions

IOVSyncValue convertSyncValue (edm::IOVSyncValue const &iFrom, bool iIsRunLumi)
 
edm::IOVSyncValue convertSyncValue (IOVSyncValue const &iFrom, bool iIsRunLumi)
 
std::vector< IOVSyncValue >::const_iterator findMatchingFirst (std::vector< IOVSyncValue > const &iIOVs, IOVSyncValue iMatch)
 
bool operator< (IOVSyncValue const &iLHS, IOVSyncValue const &iRHS)
 

Enumeration Type Documentation

◆ Compression

Enumerator
kNone 
kZLIB 
kLZMA 

Definition at line 28 of file Compression.h.

Function Documentation

◆ convertSyncValue() [1/2]

IOVSyncValue cond::hdf5::convertSyncValue ( edm::IOVSyncValue const &  iFrom,
bool  iIsRunLumi 
)
inline

Definition at line 30 of file convertSyncValue.h.

References edm::IOVSyncValue::eventID(), edm::EventID::luminosityBlock(), edm::Timestamp::microsecondOffset(), edm::EventID::run(), edm::IOVSyncValue::time(), and edm::Timestamp::unixTime().

Referenced by HDF5ProductResolver::indexForInterval(), and CondHDF5ESSource::setIntervalFor().

30  {
31  if (iIsRunLumi) {
32  return IOVSyncValue{iFrom.eventID().run(), iFrom.eventID().luminosityBlock()};
33  }
34  return IOVSyncValue{iFrom.time().unixTime(), iFrom.time().microsecondOffset()};
35  }

◆ convertSyncValue() [2/2]

edm::IOVSyncValue cond::hdf5::convertSyncValue ( IOVSyncValue const &  iFrom,
bool  iIsRunLumi 
)
inline

Definition at line 37 of file convertSyncValue.h.

References cond::hdf5::IOVSyncValue::high_, and cond::hdf5::IOVSyncValue::low_.

37  {
38  if (iIsRunLumi) {
39  return edm::IOVSyncValue{edm::EventID{iFrom.high_, iFrom.low_, 0}};
40  }
41  return edm::IOVSyncValue{edm::Timestamp{(static_cast<uint64_t>(iFrom.high_) << 32) + iFrom.low_}};
42  }
unsigned long long uint64_t
Definition: Time.h:13

◆ findMatchingFirst()

std::vector< IOVSyncValue >::const_iterator cond::hdf5::findMatchingFirst ( std::vector< IOVSyncValue > const &  iIOVs,
IOVSyncValue  iMatch 
)

Definition at line 19 of file IOVSyncValue.cc.

References pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and or.

Referenced by HDF5ProductResolver::indexForInterval(), and CondHDF5ESSource::setIntervalFor().

20  {
21  auto itFound = std::lower_bound(iIOVs.begin(), iIOVs.end(), iMatch);
22  if (itFound == iIOVs.end() or iMatch < *itFound) {
23  //need to back up one space
24  if (itFound == iIOVs.begin()) {
25  return iIOVs.end();
26  }
27  itFound -= 1;
28  }
29  return itFound;
30  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

◆ operator<()

bool cond::hdf5::operator< ( IOVSyncValue const &  iLHS,
IOVSyncValue const &  iRHS 
)
inline

Definition at line 34 of file IOVSyncValue.h.

References cond::hdf5::IOVSyncValue::high_, and cond::hdf5::IOVSyncValue::low_.

Referenced by FWConfigurationManager::guessAndReadFromFile().

34  {
35  if (iLHS.high_ < iRHS.high_)
36  return true;
37  if (iLHS.high_ > iRHS.high_)
38  return false;
39  return iLHS.low_ < iRHS.low_;
40  }