DAS  3.0
Das Analysis System
getHighScalePUeventIDsHT.cc File Reference
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <vector>
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Jet.h"
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <TH1.h>
#include <TString.h>
#include "Math/VectorUtil.h"
#include <darwin.h>
+ Include dependency graph for getHighScalePUeventIDsHT.cc:

Namespaces

 DAS
 

Functions

void getHighScalePUeventIDsHT (const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
96 {
97  try {
99 
100  vector<fs::path> inputs;
101  fs::path output;
102 
103  auto options = DAS::Options(
104  "Get events with too large genht from pileup "
105  "as a function of the event ID. This command "
106  "should be run on the output of the n-tupliser "
107  "directly" , DT::split | DT::config);
108  options.inputs("inputs", &inputs, "output from n-tupliser (expecting MB sample)")
109  .output("output", &output, "2-column output text file")
110  .arg<int>("minht", "corrections.PUcleaning.minht", "minimum ht to consider event");
111 
112  const auto& config = options(argc, argv);
113  const auto& slice = options.slice();
114  const int steering = options.steering();
115 
116  DAS::getHighScalePUeventIDsHT(inputs, output, config, steering, slice);
117  }
118  catch (boost::exception& e) {
119  DE::Diagnostic(e);
120  return EXIT_FAILURE;
121  }
122 
123  return EXIT_SUCCESS;
124 }
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.options
options
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:41
Darwin::Exceptions::Diagnostic
void Diagnostic(const boost::exception &e)
Definition: exceptions.h:131
Darwin::Tools::split
@ split
activate -k and -j to define slice
Definition: Options.h:26
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
DAS::getHighScalePUeventIDsHT
void getHighScalePUeventIDsHT(const vector< fs::path > &inputs, const fs::path &output, const pt::ptree &config, const int steering, const DT::Slice slice={1, 0})
Definition: getHighScalePUeventIDsHT.cc:45
Ntupliser_cfg.config
config
Definition: Ntupliser_cfg.py:264
jercExample.inputs
def inputs
Definition: jercExample.py:118
DAS::Options
Darwin::Tools::Options Options(const char *, int=Darwin::Tools::none)
Constructs Darwin options with the correct commit information.
Definition: DASOptions.cc:14