CMS 3D CMS Logo

Functions
DMRsingle.cc File Reference
#include <cstdlib>
#include <iostream>
#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"

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

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

Definition at line 38 of file DMRsingle.cc.

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

38 { return exceptions<single>(argc, argv); }

◆ single()

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

Definition at line 18 of file DMRsingle.cc.

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

Referenced by PixelResolutionHistograms::getGeneratorX(), PixelResolutionHistograms::getGeneratorY(), ShallowTrackClustersProducer::produce(), and CombinationGenerator< T >::separateOneElement().

18  {
19  // parse the command line
21  options.helper(argc, argv);
22  options.parser(argc, argv);
23 
24  pt::ptree main_tree;
25  pt::read_json(options.config, main_tree);
26 
27  pt::ptree alignment = main_tree.get_child("alignment");
28  pt::ptree validation = main_tree.get_child("validation");
29 
30  // just dump the content, to show that it can be used
31  dump(alignment);
33 
34  return EXIT_SUCCESS;
35 }