ATLAS Offline Software
|
Classes | |
class | BasicFolder |
class | Cool2Json |
class | CrestFunctions |
class | FMDReadLock |
class | IovStore |
class | Json2Cool |
Produces cool objects from their JSON representation, storing them in a 'BasicFolder'. More... | |
class | ReadFromFileMetaData |
class | SafeReadFromFileMetaData |
Typedefs | |
typedef std::pair< std::string, std::string > | IovHashPair |
Enumerations | |
enum | FolderType { UNKNOWN =-1, AttrList =0, AttrListColl, PoolRef, PoolRefColl, CoraCool, CoolVector, JSON, NUM_FOLDER_TYPES } |
Functions | |
std::string | base64Encode (const coral::Blob &blob) |
coral::Blob | base64Decode (const std::string &base64String) |
std::ostream & | operator<< (std::ostream &o, const Cool2Json &c) |
FolderType | determineFolderType (const std::string &folderDescription, const std::string &spec, const std::vector< cool::ChannelId > &chans) |
Determine folder type with optional check using clid service to check clid matches typename. More... | |
FolderType | determineFolderType (const cool::IFolderPtr &pFolder, IClassIDSvc *clidsvc=nullptr) |
Determine folder type with optional check using clid service to check clid matches typename. More... | |
FolderType | determineFolderType (const CondAttrListCollection *pAttrListColl) |
Determine folder type using the CondAttrListCollection pointer. More... | |
FolderType | determineFolderType (const CondAttrListCollection &pAttrListColl) |
Determine folder typeusing the CondAttrListCollection reference. More... | |
FolderType | determineFolderType (const coral::AttributeSpecification &spec) |
Determine folder type using the coral::AttributeSpecification. More... | |
bool | poolCompatible (const cool::IRecordSpecification &rspec) |
Is the folder type compatible with Pool storage type? More... | |
bool | poolCompatible (const std::string &specString) |
bool | poolCompatible (const CondAttrListCollection *pAttrListColl) |
bool | poolCompatible (const CondAttrListCollection &attrListColl) |
std::string | folderTypeName (const FolderType f) |
Give a string name for the folder type. More... | |
const coral::AttributeListSpecification & | attrList2Spec (const coral::AttributeList &atrlist) |
return the AttributeListSpecification of an AttributeList More... | |
unsigned int | attributeSize (const coral::Attribute &attribute) |
return the size (in bytes) of an Attribute More... | |
bool | typeSizeIsKnown (const coral::Attribute &attribute) |
Return a bool indicating whether the size of a given Attribute can be determined. More... | |
unsigned int | attributeListSize (const coral::AttributeList &atrlist) |
return the size (in bytes) of an AttributeList More... | |
int | 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. More... | |
IOVTime | 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. More... | |
unsigned long long | iovTimeFromSeconds (const unsigned long long seconds) |
Create a long long time in ns from s. More... | |
unsigned long long | iovTimeFromRunLumi (const unsigned long long run, const unsigned long long lumi=0) |
Create a long long representing the IOV from run, lumi. More... | |
std::pair< unsigned long long, unsigned long long > | runLumiFromIovTime (const unsigned long long iovTime) |
Return a [run,lumi] pair from an IOV time. More... | |
IOVRange | makeRange (const cool::ValidityKey since, const cool::ValidityKey until, const bool timeIsEpoch) |
Make an IOVRange from two validity keys. More... | |
cool::ChannelId | 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. More... | |
std::pair< bool, std::string > | folderMetadata (IOVDbConn *pConnection, const std::string &folderName) |
Retrieve (bool) multiversion flag and folder description More... | |
std::pair< std::vector< cool::ChannelId >, std::vector< std::string > > | channelList (IOVDbConn *pConnection, const std::string &folderName, const bool named=false) |
Retrieve channel information. More... | |
template<class NumericType > | |
bool | 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. More... | |
template<class NumericType > | |
bool | inRange (const NumericType &val, const std::vector< std::pair< NumericType, NumericType > > &ranges) |
std::string | jsonAttribute (const coral::Attribute &) |
Produce a representation of a coral::Attribute as a json string. More... | |
std::string | jsonAttributeList (const coral::AttributeList &) |
Produce a representation of a coral::AttributeList as a json string. More... | |
std::string | spaceStrip (const std::string &input) |
Trim leading and trailing spaces,return a new trimmed string. More... | |
int | makeChannel (const std::string &strval, const int defchan) |
Produce a channel number from the string; default to 'defchan' if empty. More... | |
unsigned long long | iovFromTimeString (const std::string &iovString) |
Take a string integer giving a time in seconds and convert it to a ULL in nanoseconds. More... | |
unsigned long long | iovFromRunString (const std::string &runString) |
Take a string run number and convert it to an ULL representing run<<32. More... | |
unsigned long long | iovFromLumiBlockString (const std::string &lbString) |
String representation of lumiblock just converted to LL (as in original code) and returned as a ULL. More... | |
std::string | sanitiseJsonString (const std::string &dataString) |
Sanitise json string, escaping raw carriage returns. More... | |
int | parseClid (const std::string &addrHeaderStr) |
Extract the Class ID (an integer) from a string of form <addrHeader><address_header service_type="256" clid="12345" ></addrHeader> More... | |
std::string | parseTypename (const std::string &description) |
Extract the typename from a folder description. More... | |
std::string | deleteRegex (const std::string &original, const std::string ®ex) |
Delete characters of a matching regex from the input string. More... | |
std::string | quote (const std::string &sentence) |
Enclose a string in ". More... | |
std::string | unescapeQuotes (const std::string &original) |
std::string | unescapeBackslash (const std::string &original) |
std::string | sanitiseFilename (const std::string &fname) |
Replace the '/' of a file path with '^'. More... | |
std::string | sanitiseCrestTag (const std::string &fname) |
return valid CREST tag name from folder name More... | |
std::string | replaceNULL (const std::string &possibleNULL) |
replace an uppercase NULL (such as returned by oracle) in string with a lowercase null (such as used in JSON) More... | |
std::string | sanitiseXml (const std::string &pseudoXmlString) |
for use when converting cool folder description JSON More... | |
bool | looksLikeMagicTag (const std::string &candidateTag) |
Looks like it should be magic. More... | |
bool | tagIsMagic (const std::string &candidateTag) |
Resolve magic tag. More... | |
std::vector< std::string > | parseMagicTag (const std::string &candidateTag) |
Takes a tag of form TagInfo{Major|Minor}/<tag> or TagInfo{Major|Minor}/<prefix>/<tag> and resolve it to a string vector{"Major|Minor", <prefix>, <tag>} returns an empty vector if a match is not found. More... | |
std::vector< std::string > | parseLinkNames (const std::string &linktext) |
Parse string of format "A:X::B:C" to "A" , "X::B", "C". More... | |
std::pair< std::string, std::string > | tag2PrefixTarget (const std::vector< std::string > &parseResult) |
Takes a vector<string> containing {"<fulltag>", "Major|Minor", "<prefix>", "<tag>"} and returns a pair of {"<prefix>", "<tag>"}. More... | |
bool | replaceServiceType71 (std::string &addrHeader) |
template<class IntType > | |
std::vector< std::pair< IntType, IntType > > | parseChannelSpec (const std::string &chanspecString) |
Parse a channel specification string of the format ":3, 65:67,100:120, 130: " into a vector of pairs. More... | |
std::string | getTagInfo (const std::string &tag, const ITagInfoMgr *tagInfoMgr) |
Retrieve the TagInfo. More... | |
std::string | getGeoAtlasVersion () |
Get the GeoAtlas version directly from GeoModelSvc. More... | |
std::optional< bool > | checkTagLock (const cool::IFolderPtr &fptr, const std::string &tag) |
Check whether a tag is locked on a folder, if possible. More... | |
std::string | resolveUsingTagInfo (const std::string &tag, const ITagInfoMgr *tagInfoMgr) |
Variables | |
constexpr unsigned long long | ALL_LUMI_BLOCKS {0xFFFFFFFF} |
All the lumi blocks in one run. More... | |
typedef std::pair<std::string,std::string> IOVDbNamespace::IovHashPair |
Definition at line 28 of file CrestFunctions.h.
Enumerator | |
---|---|
UNKNOWN | |
AttrList | |
AttrListColl | |
PoolRef | |
PoolRefColl | |
CoraCool | |
CoolVector | |
JSON | |
NUM_FOLDER_TYPES |
Definition at line 26 of file FolderTypes.h.
unsigned int IOVDbNamespace::attributeListSize | ( | const coral::AttributeList & | atrlist | ) |
return the size (in bytes) of an AttributeList
Definition at line 72 of file IOVDbCoolFunctions.cxx.
unsigned int IOVDbNamespace::attributeSize | ( | const coral::Attribute & | attribute | ) |
return the size (in bytes) of an Attribute
Definition at line 57 of file IOVDbCoolFunctions.cxx.
const coral::AttributeListSpecification & IOVDbNamespace::attrList2Spec | ( | const coral::AttributeList & | atrlist | ) |
return the AttributeListSpecification of an AttributeList
Definition at line 52 of file IOVDbCoolFunctions.cxx.
coral::Blob IOVDbNamespace::base64Decode | ( | const std::string & | base64String | ) |
Definition at line 26 of file Base64Codec.cxx.
std::string IOVDbNamespace::base64Encode | ( | const coral::Blob & | blob | ) |
Definition at line 18 of file Base64Codec.cxx.
std::pair< std::vector< cool::ChannelId >, std::vector< std::string > > IOVDbNamespace::channelList | ( | IOVDbConn * | pConnection, |
const std::string & | folderName, | ||
const bool | named | ||
) |
std::optional< bool > IOVDbNamespace::checkTagLock | ( | const cool::IFolderPtr & | fptr, |
const std::string & | tag | ||
) |
Check whether a tag is locked on a folder, if possible.
Definition at line 43 of file TagFunctions.cxx.
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.
Definition at line 81 of file IOVDbCoolFunctions.cxx.
Delete characters of a matching regex from the input string.
Definition at line 79 of file IOVDbStringFunctions.cxx.
FolderType IOVDbNamespace::determineFolderType | ( | const CondAttrListCollection & | attrListColl | ) |
Determine folder typeusing the CondAttrListCollection reference.
Definition at line 74 of file FolderTypes.cxx.
FolderType IOVDbNamespace::determineFolderType | ( | const CondAttrListCollection * | pAttrListColl | ) |
Determine folder type using the CondAttrListCollection pointer.
Definition at line 57 of file FolderTypes.cxx.
FolderType IOVDbNamespace::determineFolderType | ( | const cool::IFolderPtr & | pFolder, |
IClassIDSvc * | |||
) |
Determine folder type with optional check using clid service to check clid matches typename.
Definition at line 36 of file FolderTypes.cxx.
FolderType IOVDbNamespace::determineFolderType | ( | const coral::AttributeSpecification & | spec | ) |
Determine folder type using the coral::AttributeSpecification.
Definition at line 90 of file FolderTypes.cxx.
FolderType IOVDbNamespace::determineFolderType | ( | const std::string & | folderDescription, |
const std::string & | spec, | ||
const std::vector< cool::ChannelId > & | chans | ||
) |
Determine folder type with optional check using clid service to check clid matches typename.
Definition at line 17 of file FolderTypes.cxx.
std::pair< bool, std::string > IOVDbNamespace::folderMetadata | ( | IOVDbConn * | pConnection, |
const std::string & | folderName | ||
) |
Retrieve (bool) multiversion flag and folder description
Definition at line 136 of file IOVDbCoolFunctions.cxx.
std::string IOVDbNamespace::folderTypeName | ( | const FolderType | f | ) |
std::string IOVDbNamespace::getGeoAtlasVersion | ( | ) |
Get the GeoAtlas version directly from GeoModelSvc.
Definition at line 33 of file TagFunctions.cxx.
std::string IOVDbNamespace::getTagInfo | ( | const std::string & | tag, |
const ITagInfoMgr * | tagInfoMgr | ||
) |
unsigned long long IOVDbNamespace::iovFromLumiBlockString | ( | const std::string & | lbString | ) |
String representation of lumiblock just converted to LL (as in original code) and returned as a ULL.
Definition at line 45 of file IOVDbStringFunctions.cxx.
unsigned long long IOVDbNamespace::iovFromRunString | ( | const std::string & | runString | ) |
Take a string run number and convert it to an ULL representing run<<32.
Definition at line 38 of file IOVDbStringFunctions.cxx.
unsigned long long IOVDbNamespace::iovFromTimeString | ( | const std::string & | iovString | ) |
Take a string integer giving a time in seconds and convert it to a ULL in nanoseconds.
Definition at line 31 of file IOVDbStringFunctions.cxx.
unsigned long long IOVDbNamespace::iovTimeFromRunLumi | ( | const unsigned long long | run, |
const unsigned long long | lumi | ||
) |
Create a long long representing the IOV from run, lumi.
Definition at line 103 of file IOVDbCoolFunctions.cxx.
unsigned long long IOVDbNamespace::iovTimeFromSeconds | ( | const unsigned long long | seconds | ) |
Create a long long time in ns from s.
Definition at line 98 of file IOVDbCoolFunctions.cxx.
std::string IOVDbNamespace::jsonAttribute | ( | const coral::Attribute & | attr | ) |
Produce a representation of a coral::Attribute as a json string.
Definition at line 15 of file IOVDbJsonStringFunctions.cxx.
std::string IOVDbNamespace::jsonAttributeList | ( | const coral::AttributeList & | atrlist | ) |
Produce a representation of a coral::AttributeList as a json string.
Definition at line 40 of file IOVDbJsonStringFunctions.cxx.
bool IOVDbNamespace::looksLikeMagicTag | ( | const std::string & | candidateTag | ) |
Looks like it should be magic.
Definition at line 151 of file IOVDbStringFunctions.cxx.
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.
Definition at line 128 of file IOVDbCoolFunctions.cxx.
Produce a channel number from the string; default to 'defchan' if empty.
Definition at line 23 of file IOVDbStringFunctions.cxx.
IOVRange IOVDbNamespace::makeRange | ( | const cool::ValidityKey | since, |
const cool::ValidityKey | until, | ||
const bool | timeIsEpoch | ||
) |
Definition at line 201 of file Cool2Json.cxx.
std::vector<std::pair<IntType, IntType> > IOVDbNamespace::parseChannelSpec | ( | const std::string & | chanspecString | ) |
Parse a channel specification string of the format ":3, 65:67,100:120, 130: " into a vector of pairs.
Definition at line 34 of file IOVDbStringFunctions.h.
int IOVDbNamespace::parseClid | ( | const std::string & | addrHeaderStr | ) |
Extract the Class ID (an integer) from a string of form <addrHeader><address_header service_type="256" clid="12345" ></addrHeader>
Definition at line 59 of file IOVDbStringFunctions.cxx.
std::vector< std::string > IOVDbNamespace::parseLinkNames | ( | const std::string & | linktext | ) |
Parse string of format "A:X::B:C" to "A" , "X::B", "C".
Definition at line 178 of file IOVDbStringFunctions.cxx.
std::vector< std::string > IOVDbNamespace::parseMagicTag | ( | const std::string & | v | ) |
Takes a tag of form TagInfo{Major|Minor}/<tag> or TagInfo{Major|Minor}/<prefix>/<tag> and resolve it to a string vector{"Major|Minor", <prefix>, <tag>} returns an empty vector if a match is not found.
Definition at line 164 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::parseTypename | ( | const std::string & | description | ) |
Extract the typename from a folder description.
Definition at line 70 of file IOVDbStringFunctions.cxx.
bool IOVDbNamespace::poolCompatible | ( | const CondAttrListCollection & | attrListColl | ) |
Definition at line 128 of file FolderTypes.cxx.
bool IOVDbNamespace::poolCompatible | ( | const CondAttrListCollection * | pAttrListColl | ) |
Definition at line 121 of file FolderTypes.cxx.
bool IOVDbNamespace::poolCompatible | ( | const cool::IRecordSpecification & | rspec | ) |
Is the folder type compatible with Pool storage type?
Definition at line 97 of file FolderTypes.cxx.
bool IOVDbNamespace::poolCompatible | ( | const std::string & | specString | ) |
Definition at line 103 of file FolderTypes.cxx.
std::string IOVDbNamespace::quote | ( | const std::string & | sentence | ) |
std::string IOVDbNamespace::replaceNULL | ( | const std::string & | possibleNULL | ) |
replace an uppercase NULL (such as returned by oracle) in string with a lowercase null (such as used in JSON)
Definition at line 127 of file IOVDbStringFunctions.cxx.
bool IOVDbNamespace::replaceServiceType71 | ( | std::string & | addrHeader | ) |
Definition at line 212 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::resolveUsingTagInfo | ( | const std::string & | tag, |
const ITagInfoMgr * | tagInfoMgr | ||
) |
Definition at line 54 of file TagFunctions.cxx.
std::pair< unsigned long long, unsigned long long > IOVDbNamespace::runLumiFromIovTime | ( | const unsigned long long | iovTime | ) |
Return a [run,lumi] pair from an IOV time.
Definition at line 108 of file IOVDbCoolFunctions.cxx.
std::string IOVDbNamespace::sanitiseCrestTag | ( | const std::string & | fname | ) |
return valid CREST tag name from folder name
Definition at line 121 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::sanitiseFilename | ( | const std::string & | fname | ) |
Replace the '/' of a file path with '^'.
Definition at line 110 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::sanitiseJsonString | ( | const std::string & | dataString | ) |
Sanitise json string, escaping raw carriage returns.
Definition at line 52 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::sanitiseXml | ( | const std::string & | pseudoXmlString | ) |
for use when converting cool folder description JSON
Definition at line 135 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::spaceStrip | ( | const std::string & | input | ) |
Trim leading and trailing spaces,return a new trimmed string.
Definition at line 11 of file IOVDbStringFunctions.cxx.
std::pair< std::string, std::string > IOVDbNamespace::tag2PrefixTarget | ( | const std::vector< std::string > & | parseResult | ) |
Takes a vector<string> containing {"<fulltag>", "Major|Minor", "<prefix>", "<tag>"} and returns a pair of {"<prefix>", "<tag>"}.
Note "<prefix>" is optional in the input and if missing will be an empty string on output.
Definition at line 198 of file IOVDbStringFunctions.cxx.
bool IOVDbNamespace::tagIsMagic | ( | const std::string & | candidateTag | ) |
bool IOVDbNamespace::typeSizeIsKnown | ( | const coral::Attribute & | attribute | ) |
Return a bool indicating whether the size of a given Attribute can be determined.
Definition at line 67 of file IOVDbCoolFunctions.cxx.
std::string IOVDbNamespace::unescapeBackslash | ( | const std::string & | original | ) |
Definition at line 102 of file IOVDbStringFunctions.cxx.
std::string IOVDbNamespace::unescapeQuotes | ( | const std::string & | original | ) |
Definition at line 95 of file IOVDbStringFunctions.cxx.
|
constexpr |
All the lumi blocks in one run.
Definition at line 36 of file IOVDbCoolFunctions.h.