ATLAS Offline Software
Loading...
Searching...
No Matches
IOVDbCoolFunctions.h File Reference
#include "CoolKernel/ChannelId.h"
#include "CoolKernel/ValidityKey.h"
#include "AthenaKernel/IOVTime.h"
#include <utility>
#include <vector>
#include <algorithm>
#include <functional>
#include <string>
Include dependency graph for IOVDbCoolFunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  coral
namespace  cool
namespace  IOVDbNamespace

Functions

template<class NumericType>
bool IOVDbNamespace::inRange (const NumericType &val, const std::pair< NumericType, NumericType > &range)
 Function to check whether a number is in the inclusive range, given as a pair.
template<class NumericType>
bool IOVDbNamespace::inRange (const NumericType &val, const std::vector< std::pair< NumericType, NumericType > > &ranges)
const coral::AttributeListSpecification & IOVDbNamespace::attrList2Spec (const coral::AttributeList &atrlist)
 return the AttributeListSpecification of an AttributeList
unsigned int IOVDbNamespace::attributeSize (const coral::Attribute &attribute)
 return the size (in bytes) of an Attribute
bool IOVDbNamespace::typeSizeIsKnown (const coral::Attribute &attribute)
 Return a bool indicating whether the size of a given Attribute can be determined.
unsigned int IOVDbNamespace::attributeListSize (const coral::AttributeList &atrlist)
 return the size (in bytes) of an AttributeList
int IOVDbNamespace::countSelectedChannels (const std::vector< cool::ChannelId > &channels, const cool::ChannelSelection &selected)
 Count the number of selected channels in a vector of channels according to cool::Channel selection.
IOVTime IOVDbNamespace::makeEpochOrRunLumi (const cool::ValidityKey key, const bool timeIsEpoch)
 Create an IOVTime in ns of epoch or run-lumi (determined by the bool) from a ValidityKey.
unsigned long long IOVDbNamespace::iovTimeFromSeconds (const unsigned long long seconds)
 Create a long long time in ns from s.
unsigned long long IOVDbNamespace::iovTimeFromRunLumi (const unsigned long long run, const unsigned long long lumi=0)
 Create a long long representing the IOV from run, lumi.
std::pair< unsigned long long, unsigned long long > IOVDbNamespace::runLumiFromIovTime (const unsigned long long iovTime)
 Return a [run,lumi] pair from an IOV time.
IOVRange IOVDbNamespace::makeRange (const cool::ValidityKey since, const cool::ValidityKey until, const bool timeIsEpoch)
 Make an IOVRange from two validity keys.
cool::ChannelId IOVDbNamespace::makeChannel (const std::string &strval, const cool::ChannelId defchan)
 Create a ChannelId from a string; if string is empty, return the default channel number given.
std::pair< bool, std::string > IOVDbNamespace::folderMetadata (IOVDbConn *pConnection, const std::string &folderName)
 Retrieve (bool) multiversion flag and folder description.
std::pair< std::vector< cool::ChannelId >, std::vector< std::string > > IOVDbNamespace::channelList (IOVDbConn *pConnection, const std::string &folderName, const bool named=false)
 Retrieve channel information.

Variables

constexpr unsigned long long IOVDbNamespace::ALL_LUMI_BLOCKS {0xFFFFFFFF}
 All the lumi blocks in one run.