Project
Loading...
Searching...
No Matches
dcs-ccdb.cxx File Reference
#include "CCDB/CcdbApi.h"
#include "DetectorsDCS/DataPointIdentifier.h"
#include "DetectorsDCS/DataPointValue.h"
#include "DetectorsDCS/DataPointCreator.h"
#include "DetectorsDCS/DataPointCompositeObject.h"
#include <boost/program_options.hpp>
#include <ctime>
#include <iostream>
#include <map>
#include <numeric>
#include <regex>
#include <string>
#include <unordered_map>
#include <vector>
#include "subsysname.h"
#include <TFile.h>

Go to the source code of this file.

Typedefs

using DPID = o2::dcs::DataPointIdentifier
 
using DPVAL = o2::dcs::DataPointValue
 
using DPMAP = std::unordered_map< DPID, std::vector< DPVAL > >
 

Functions

float sum (float s, o2::dcs::DataPointValue v)
 
std::string CcdbDpConfName ()
 
std::pair< DPVAL, DPVALcomputeTimeRange (const std::vector< DPVAL > &dps)
 
void dump (const std::string what, DPMAP m, int verbose)
 
void doQueryHVLV (const std::string fileName)
 
void doQueryHVLV (const std::string ccdbUrl, uint64_t timestamp, bool hv, bool lv)
 
void doQueryDataPointConfig (const std::string ccdbUrl, uint64_t timestamp, const std::string dpConfName)
 
void makeCCDBEntryForDCS (const std::string ccdbUrl, uint64_t timestamp)
 
void makeDefaultCCDBEntry (const std::string ccdbUrl, uint64_t timestamp)
 
bool match (const std::vector< std::string > &queries, const char *pattern)
 
int main (int argc, char **argv)
 

Variables

int verboseLevel
 

Typedef Documentation

◆ DPID

Definition at line 35 of file dcs-ccdb.cxx.

◆ DPMAP

using DPMAP = std::unordered_map<DPID, std::vector<DPVAL> >

Definition at line 37 of file dcs-ccdb.cxx.

◆ DPVAL

Definition at line 36 of file dcs-ccdb.cxx.

Function Documentation

◆ CcdbDpConfName()

std::string CcdbDpConfName ( )

Definition at line 49 of file dcs-ccdb.cxx.

◆ computeTimeRange()

std::pair< DPVAL, DPVAL > computeTimeRange ( const std::vector< DPVAL > &  dps)

Definition at line 59 of file dcs-ccdb.cxx.

◆ doQueryDataPointConfig()

void doQueryDataPointConfig ( const std::string  ccdbUrl,
uint64_t  timestamp,
const std::string  dpConfName 
)

Definition at line 142 of file dcs-ccdb.cxx.

◆ doQueryHVLV() [1/2]

void doQueryHVLV ( const std::string  ccdbUrl,
uint64_t  timestamp,
bool  hv,
bool  lv 
)

Definition at line 123 of file dcs-ccdb.cxx.

◆ doQueryHVLV() [2/2]

void doQueryHVLV ( const std::string  fileName)

Definition at line 106 of file dcs-ccdb.cxx.

◆ dump()

void dump ( const std::string  what,
DPMAP  m,
int  verbose 
)

Definition at line 79 of file dcs-ccdb.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 234 of file dcs-ccdb.cxx.

◆ makeCCDBEntryForDCS()

void makeCCDBEntryForDCS ( const std::string  ccdbUrl,
uint64_t  timestamp 
)

Definition at line 158 of file dcs-ccdb.cxx.

◆ makeDefaultCCDBEntry()

void makeDefaultCCDBEntry ( const std::string  ccdbUrl,
uint64_t  timestamp 
)

Definition at line 183 of file dcs-ccdb.cxx.

◆ match()

bool match ( const std::vector< std::string > &  queries,
const char pattern 
)

Definition at line 229 of file dcs-ccdb.cxx.

◆ sum()

float sum ( float  s,
o2::dcs::DataPointValue  v 
)

Definition at line 39 of file dcs-ccdb.cxx.

Variable Documentation

◆ verboseLevel

int verboseLevel

Definition at line 54 of file dcs-ccdb.cxx.