#include <cstdlib>
#include <string>
#include <iostream>
#include <numeric>
#include <functional>
#include "exceptions.h"
#include "toolbox.h"
#include "Options.h"
#include "boost/filesystem.hpp"
#include "boost/property_tree/ptree.hpp"
#include "boost/property_tree/json_parser.hpp"
#include "boost/optional.hpp"
#include "TString.h"
#include "TASImage.h"
#include "Alignment/OfflineValidation/macros/trackSplitPlot.h"
#include "Alignment/OfflineValidation/macros/trackSplitPlot.C"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int | merge (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ merge()
int merge |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 28 of file MTSmerge.cc.
References dir2webdir::argc, GCPpyPlots::argv, gather_cfg::cout, CUSTOM, TkAlStyle::legendheader, TkAlStyle::legendoptions, makePlots(), NONE, AlcaSiPixelAliHarvester0T_cff::options, outliercut, TkAlStyle::set(), AlCaHLTBitMon_QueryRunRegistry::string, subdetector, HLT_2024v10_cff::toAdd, and TkAlStyle::toStatus().
37 pt::read_json(
options.config, main_tree);
39 pt::ptree alignments = main_tree.get_child(
"alignments");
40 pt::ptree
validation = main_tree.get_child(
"validation");
41 pt::ptree global_style;
42 pt::ptree merge_style;
46 rlabel = merge_style.count(
"Rlabel") ? merge_style.get<
std::string>(
"Rlabel") : rlabel;
47 std::string cmslabel = merge_style.count(
"CMSlabel") ? merge_style.get<
std::string>(
"CMSlabel") :
"INTERNAL";
53 TString filesAndLabels;
54 for (
const auto& childTree : alignments) {
56 std::cout <<
"Node: " << childTree.first << std::endl;
57 for (
const auto& attr : childTree.second) {
58 std::cout <<
" Attribute: " << attr.first <<
" = " << attr.second.data() << std::endl;
67 Form(
"/MTSValidation_%s_%d.root=", childTree.first.c_str(), iov) +
68 childTree.second.get<
string>(
"title") +
69 Form(
"|%i|%i,", childTree.second.get<
int>(
"color"), childTree.second.get<
int>(
"style"));
70 filesAndLabels +=
toAdd;
73 std::cout <<
"filesAndLabels: " << filesAndLabels << std::endl;
static void set(const PublicationStatus status, const Era era=NONE, const TString customTitle="", const TString customRightTitle="")
static TString legendheader
static TString legendoptions
static PublicationStatus toStatus(std::string _status)
void makePlots(Int_t nFiles, TString *files, TString *names, TString misalignment, Double_t *values, Double_t *phases, TString directory, Bool_t matrix[xsize][ysize])