Project
Loading...
Searching...
No Matches
o2::tpc::CDBStorage Class Reference

#include <CDBInterface.h>

Public Types

using MetaData_t = std::map< std::string, std::string >
 

Public Member Functions

void setURL (std::string_view url)
 
void clearMetaData ()
 
void setResponsible (std::string_view responsible)
 
void setReason (std::string_view reason)
 
void setIntervention (CDBIntervention const intervention)
 
void setJIRA (std::string_view jira)
 
void setComment (std::string_view comment)
 
void setRunNumber (int run)
 
const auto & getMetaData () const
 
std::string getMetaDataString () const
 
void setSimulate (bool sim=true)
 
bool getSimulate () const
 
template<typename T >
void storeObject (T *obj, CDBType const type, MetaData_t const &metadata, long start, long end)
 
template<typename T >
void storeObject (T *obj, CDBType const type, long start, long end)
 
void uploadNoiseAndPedestal (std::string_view fileName, long first=-1, long last=o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP)
 
void uploadGainMap (std::string_view fileName, bool isFull=true, long first=-1, long last=o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP)
 
void uploadPulserOrCEData (CDBType type, std::string_view fileName, long first=-1, long last=o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP)
 
void uploadFEEConfigPad (std::string_view fileName, long first=-1, long last=o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP)
 
void uploadTimeGain (std::string_view fileName, long first=-1, long last=o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP)
 

Detailed Description

Simple interface to store TPC CCDB types. Also provide interface functions to upload data from a file.

Definition at line 331 of file CDBInterface.h.

Member Typedef Documentation

◆ MetaData_t

using o2::tpc::CDBStorage::MetaData_t = std::map<std::string, std::string>

Definition at line 334 of file CDBInterface.h.

Member Function Documentation

◆ clearMetaData()

void o2::tpc::CDBStorage::clearMetaData ( )
inline

Definition at line 340 of file CDBInterface.h.

◆ getMetaData()

const auto & o2::tpc::CDBStorage::getMetaData ( ) const
inline

Definition at line 375 of file CDBInterface.h.

◆ getMetaDataString()

std::string CDBStorage::getMetaDataString ( ) const

Definition at line 626 of file CDBInterface.cxx.

◆ getSimulate()

bool o2::tpc::CDBStorage::getSimulate ( ) const
inline

Definition at line 381 of file CDBInterface.h.

◆ setComment()

void o2::tpc::CDBStorage::setComment ( std::string_view  comment)
inline

Definition at line 365 of file CDBInterface.h.

◆ setIntervention()

void o2::tpc::CDBStorage::setIntervention ( CDBIntervention const  intervention)
inline

Definition at line 355 of file CDBInterface.h.

◆ setJIRA()

void o2::tpc::CDBStorage::setJIRA ( std::string_view  jira)
inline

Definition at line 360 of file CDBInterface.h.

◆ setReason()

void o2::tpc::CDBStorage::setReason ( std::string_view  reason)
inline

Definition at line 350 of file CDBInterface.h.

◆ setResponsible()

void o2::tpc::CDBStorage::setResponsible ( std::string_view  responsible)
inline

Definition at line 345 of file CDBInterface.h.

◆ setRunNumber()

void o2::tpc::CDBStorage::setRunNumber ( int  run)
inline

Definition at line 370 of file CDBInterface.h.

◆ setSimulate()

void o2::tpc::CDBStorage::setSimulate ( bool  sim = true)
inline

Definition at line 379 of file CDBInterface.h.

◆ setURL()

void o2::tpc::CDBStorage::setURL ( std::string_view  url)
inline

Definition at line 335 of file CDBInterface.h.

◆ storeObject() [1/2]

template<typename T >
void o2::tpc::CDBStorage::storeObject ( T *  obj,
CDBType const  type,
long  start,
long  end 
)
inline

Definition at line 397 of file CDBInterface.h.

◆ storeObject() [2/2]

template<typename T >
void o2::tpc::CDBStorage::storeObject ( T *  obj,
CDBType const  type,
MetaData_t const &  metadata,
long  start,
long  end 
)
inline

Definition at line 384 of file CDBInterface.h.

◆ uploadFEEConfigPad()

void CDBStorage::uploadFEEConfigPad ( std::string_view  fileName,
long  first = -1,
long  last = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP 
)

Definition at line 692 of file CDBInterface.cxx.

◆ uploadGainMap()

void CDBStorage::uploadGainMap ( std::string_view  fileName,
bool  isFull = true,
long  first = -1,
long  last = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP 
)

Definition at line 658 of file CDBInterface.cxx.

◆ uploadNoiseAndPedestal()

void CDBStorage::uploadNoiseAndPedestal ( std::string_view  fileName,
long  first = -1,
long  last = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP 
)

Definition at line 633 of file CDBInterface.cxx.

◆ uploadPulserOrCEData()

void CDBStorage::uploadPulserOrCEData ( CDBType  type,
std::string_view  fileName,
long  first = -1,
long  last = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP 
)

Definition at line 672 of file CDBInterface.cxx.

◆ uploadTimeGain()

void CDBStorage::uploadTimeGain ( std::string_view  fileName,
long  first = -1,
long  last = o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP 
)

Definition at line 708 of file CDBInterface.cxx.


The documentation for this class was generated from the following files: