Project
Loading...
Searching...
No Matches
statusmap-to-rejectlist.cxx File Reference
#include <map>
#include <string>
#include <tuple>
#include <vector>
#include <boost/program_options.hpp>
#include <TFile.h>
#include <TTreeReader.h>
#include <TTreeReaderValue.h>
#include "CCDB/CcdbApi.h"
#include "DataFormatsMCH/DsChannelId.h"
#include "Framework/Logger.h"
#include "MCHGlobalMapping/ChannelCode.h"
#include "MCHStatus/StatusMap.h"

Go to the source code of this file.

Typedefs

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

Functions

std::tuple< TFile *, TTreeReader * > loadData (const std::string inFile)
 
int size (const std::map< int, std::vector< int > > &badChannels)
 
void printContent (const std::string inFile, const uint32_t mask)
 
void dumpContent (const std::string inFile, const size_t iTF, const uint32_t mask)
 
BadChannelsVector statusMap2RejectList (const std::string inFile, const size_t iTF, const uint32_t mask)
 
void uploadRejectList (const std::string ccdbUrl, uint64_t startTS, uint64_t endTS, const BadChannelsVector &bv)
 
int main (int argc, char **argv)
 

Typedef Documentation

◆ BadChannelsVector

Author
Philippe Pillot

Definition at line 33 of file statusmap-to-rejectlist.cxx.

Function Documentation

◆ dumpContent()

void dumpContent ( const std::string  inFile,
const size_t  iTF,
const uint32_t  mask 
)

print the content of the status map of the given TF with the given mask

Definition at line 119 of file statusmap-to-rejectlist.cxx.

◆ loadData()

std::tuple< TFile *, TTreeReader * > loadData ( const std::string  inFile)

open the input file and get the intput tree

Definition at line 36 of file statusmap-to-rejectlist.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 194 of file statusmap-to-rejectlist.cxx.

◆ printContent()

void printContent ( const std::string  inFile,
const uint32_t  mask 
)

print the content of the status maps with the given mask

Definition at line 70 of file statusmap-to-rejectlist.cxx.

◆ size()

int size ( const std::map< int, std::vector< int > > &  badChannels)

return the total number of bad channels

Definition at line 56 of file statusmap-to-rejectlist.cxx.

◆ statusMap2RejectList()

BadChannelsVector statusMap2RejectList ( const std::string  inFile,
const size_t  iTF,
const uint32_t  mask 
)

convert the status map of the given TF into a reject list with the given mask

Definition at line 148 of file statusmap-to-rejectlist.cxx.

◆ uploadRejectList()

void uploadRejectList ( const std::string  ccdbUrl,
uint64_t  startTS,
uint64_t  endTS,
const BadChannelsVector bv 
)

Definition at line 181 of file statusmap-to-rejectlist.cxx.