Project
Loading...
Searching...
No Matches
digits-to-json.cxx File Reference
#include "DataFormatsMCH/Digit.h"
#include "MCHRawEncoderDigit/Digit2ElecMapper.h"
#include "DigitTreeReader.h"
#include "MCHRawElecMap/Mapper.h"
#include <TFile.h>
#include <boost/program_options.hpp>
#include <fmt/format.h>
#include <iostream>
#include <rapidjson/document.h>
#include <rapidjson/ostreamwrapper.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <string>

Go to the source code of this file.

Functions

std::string digitIdAsString (const o2::mch::Digit &digit, const Digit2ElecMapper &digit2elec)
 
void outputToJson (const std::vector< o2::mch::Digit > &digits, std::function< std::optional< DsElecId >(DsDetId)> det2elec, rapidjson::Writer< rapidjson::OStreamWrapper > &writer)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ digitIdAsString()

std::string digitIdAsString ( const o2::mch::Digit digit,
const Digit2ElecMapper digit2elec 
)

Definition at line 29 of file digits-to-json.cxx.

◆ main()

int main ( int  argc,
char argv[] 
)

Definition at line 65 of file digits-to-json.cxx.

◆ outputToJson()

void outputToJson ( const std::vector< o2::mch::Digit > &  digits,
std::function< std::optional< DsElecId >(DsDetId)>  det2elec,
rapidjson::Writer< rapidjson::OStreamWrapper > &  writer 
)

Definition at line 41 of file digits-to-json.cxx.