CMS 3D CMS Logo

Functions
SplitVmerge.cc File Reference
#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/interface/CompareAlignments.h"
#include "Alignment/OfflineValidation/macros/FitPVResolution.C"
#include "Alignment/OfflineValidation/interface/TkAlStyle.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
int merge (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 56 of file SplitVmerge.cc.

References dir2webdir::argc, and GCPpyPlots::argv.

56 { return exceptions<merge>(argc, argv); }

◆ merge()

int merge ( int  argc,
char *  argv[] 
)

Definition at line 28 of file SplitVmerge.cc.

References dir2webdir::argc, GCPpyPlots::argv, and AlcaSiPixelAliHarvester0T_cff::options.

28  {
29  // parse the command line
30 
32  options.helper(argc, argv);
33  options.parser(argc, argv);
34 
35  //Read in AllInOne json config
36  pt::ptree main_tree;
37  pt::read_json(options.config, main_tree);
38 
39  pt::ptree alignments = main_tree.get_child("alignments");
40  pt::ptree validation = main_tree.get_child("validation");
41 
42  for (const auto& childTree : alignments) {
43  PVResolution::loadFileList((childTree.second.get<string>("file") + "/SplitV.root").c_str(),
44  "PrimaryVertexResolution",
45  childTree.second.get<string>("title"),
46  childTree.second.get<int>("color"),
47  childTree.second.get<int>("style"));
48  }
49 
50  FitPVResolution("", "");
51 
52  return EXIT_SUCCESS;
53 }