24 TFile*
f = TFile::Open(rootFileName.c_str());
26 throw std::runtime_error(
"can not open " + rootFileName);
28 auto& tinfo =
typeid(std::vector<o2::mch::DsChannelId>*);
29 TClass* cl = TClass::GetClass(tinfo);
30 auto channels =
static_cast<std::vector<o2::mch::DsChannelId>*
>(
f->GetObjectChecked(
"ccdb_object", cl));
32 std::cout << fmt::format(
"solarid,dsid,ch\n");
35 std::cout << fmt::format(
"{},{},{}\n",
36 c.getSolarId(),
c.getElinkId(),
c.getChannel());
43int main(
int argc,
char** argv)
46 po::options_description options;
51 (
"input",po::value<std::string>()->required(),
"path to input root file to be converted to csv");
54 po::options_description cmdline;
57 po::store(po::command_line_parser(argc, argv).options(cmdline).run(), vm);
59 if (vm.count(
"help")) {
61This program converts a Root file containing bad channels information into the
62same information in CSV format.
64The output file format is :
68where solarid, dsid and ch are integers.