![]() |
Project
|
#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) |
| using BadChannelsVector = std::vector<o2::mch::DsChannelId> |
Definition at line 33 of file statusmap-to-rejectlist.cxx.
| 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.
| 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.
Definition at line 194 of file statusmap-to-rejectlist.cxx.
| 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.
return the total number of bad channels
Definition at line 56 of file statusmap-to-rejectlist.cxx.
| 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.
| 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.