Project
Loading...
Searching...
No Matches
global-mapper.cxx File Reference

Generate MID mapping files. More...

#include <iostream>
#include <fstream>
#include <filesystem>
#include <map>
#include <vector>
#include <fmt/format.h>
#include "boost/program_options.hpp"
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include "MIDBase/DetectorParameters.h"
#include "MIDGlobalMapping/ExtendedMappingInfo.h"
#include "MIDGlobalMapping/GlobalMapper.h"

Go to the source code of this file.

Functions

void stripsInfo2json (const std::vector< o2::mid::ExtendedMappingInfo > &infos, const char *outDir)
 
void strips2json (const std::vector< o2::mid::ExtendedMappingInfo > &infos, const char *outDir)
 
void de2json (const std::map< int, std::vector< std::pair< int, int > > > &deMap, const char *outDir)
 
void writeJson (const std::vector< o2::mid::ExtendedMappingInfo > &infos, const std::map< int, std::vector< std::pair< int, int > > > &deMap, const char *outDir)
 
int main (int argc, char *argv[])
 

Detailed Description

Generate MID mapping files.

Author
Diego Stocco <Diego.Stocco at cern.ch>
Date
11 April 2023

Definition in file global-mapper.cxx.

Function Documentation

◆ de2json()

void de2json ( const std::map< int, std::vector< std::pair< int, int > > > &  deMap,
const char outDir 
)

Definition at line 139 of file global-mapper.cxx.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 178 of file global-mapper.cxx.

◆ strips2json()

void strips2json ( const std::vector< o2::mid::ExtendedMappingInfo > &  infos,
const char outDir 
)

Definition at line 70 of file global-mapper.cxx.

◆ stripsInfo2json()

void stripsInfo2json ( const std::vector< o2::mid::ExtendedMappingInfo > &  infos,
const char outDir 
)

Definition at line 33 of file global-mapper.cxx.

◆ writeJson()

void writeJson ( const std::vector< o2::mid::ExtendedMappingInfo > &  infos,
const std::map< int, std::vector< std::pair< int, int > > > &  deMap,
const char outDir 
)

Definition at line 167 of file global-mapper.cxx.