Project
Loading...
Searching...
No Matches
bad-channels-ccdb.cxx File Reference
#include <boost/program_options.hpp>
#include <algorithm>
#include <ctime>
#include <fstream>
#include <iterator>
#include <numeric>
#include <regex>
#include <set>
#include <string>
#include <vector>
#include "CCDB/CcdbApi.h"
#include "DataFormatsMCH/DsChannelId.h"
#include "MCHConditions/DCSAliases.h"
#include "MCHConstants/DetectionElements.h"
#include "MCHGlobalMapping/DsIndex.h"
#include "MCHGlobalMapping/Mapper.h"
#include "MCHMappingInterface/Segmentation.h"
#include "MCHRawElecMap/Mapper.h"

Go to the source code of this file.

Typedefs

using BadChannelsVector = std::vector< o2::mch::DsChannelId >
 

Functions

std::string ccdbPath (const std::string badChannelType)
 
std::set< uint64_t > listTSWhenBadChannelsChange (const std::string ccdbUrl, const std::string badChannelType, uint64_t startTimestamp, uint64_t endTimestamp, bool verbose)
 
BadChannelsVector queryBadChannels (const std::string ccdbUrl, const std::string badChannelType, uint64_t timestamp, bool verbose)
 
void rejectDS (const o2::mch::raw::DsDetId &dsDetId, BadChannelsVector &bv)
 
void rejectSolars (const std::vector< uint16_t > solarIds, BadChannelsVector &bv)
 
void rejectDSs (const std::vector< uint16_t > dsIdxs, BadChannelsVector &bv)
 
void rejectHVLVs (const std::vector< std::string > dcsAliases, BadChannelsVector &bv)
 
void rejectDEs (const std::vector< uint16_t > deIds, BadChannelsVector &bv)
 
void uploadBadChannels (const std::string ccdbUrl, const std::string badChannelType, uint64_t startTimestamp, uint64_t endTimestamp, BadChannelsVector &bv, bool makeDefault)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ BadChannelsVector

Definition at line 33 of file bad-channels-ccdb.cxx.

Function Documentation

◆ ccdbPath()

std::string ccdbPath ( const std::string  badChannelType)

Definition at line 35 of file bad-channels-ccdb.cxx.

◆ listTSWhenBadChannelsChange()

std::set< uint64_t > listTSWhenBadChannelsChange ( const std::string  ccdbUrl,
const std::string  badChannelType,
uint64_t  startTimestamp,
uint64_t  endTimestamp,
bool  verbose 
)

Definition at line 40 of file bad-channels-ccdb.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 234 of file bad-channels-ccdb.cxx.

◆ queryBadChannels()

BadChannelsVector queryBadChannels ( const std::string  ccdbUrl,
const std::string  badChannelType,
uint64_t  timestamp,
bool  verbose 
)

Definition at line 123 of file bad-channels-ccdb.cxx.

◆ rejectDEs()

void rejectDEs ( const std::vector< uint16_t >  deIds,
BadChannelsVector bv 
)

Definition at line 189 of file bad-channels-ccdb.cxx.

◆ rejectDS()

void rejectDS ( const o2::mch::raw::DsDetId dsDetId,
BadChannelsVector bv 
)

Definition at line 141 of file bad-channels-ccdb.cxx.

◆ rejectDSs()

void rejectDSs ( const std::vector< uint16_t >  dsIdxs,
BadChannelsVector bv 
)

Definition at line 163 of file bad-channels-ccdb.cxx.

◆ rejectHVLVs()

void rejectHVLVs ( const std::vector< std::string dcsAliases,
BadChannelsVector bv 
)

Definition at line 175 of file bad-channels-ccdb.cxx.

◆ rejectSolars()

void rejectSolars ( const std::vector< uint16_t >  solarIds,
BadChannelsVector bv 
)

Definition at line 153 of file bad-channels-ccdb.cxx.

◆ uploadBadChannels()

void uploadBadChannels ( const std::string  ccdbUrl,
const std::string  badChannelType,
uint64_t  startTimestamp,
uint64_t  endTimestamp,
BadChannelsVector bv,
bool  makeDefault 
)

Definition at line 209 of file bad-channels-ccdb.cxx.