DAS  3.0
Das Analysis System
getDimuonSpectrum.cc File Reference
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <iostream>
#include <vector>
#include "Core/Objects/interface/Event.h"
#include "Core/Objects/interface/Jet.h"
#include "Core/Objects/interface/Lepton.h"
#include "Core/Objects/interface/Photon.h"
#include "Core/CommonTools/interface/DASOptions.h"
#include "Core/CommonTools/interface/binnings.h"
#include "Core/CommonTools/interface/toolbox.h"
#include <TFile.h>
#include <TH3.h>
#include <TString.h>
#include "Math/VectorUtil.h"
#include <darwin.h>
+ Include dependency graph for getDimuonSpectrum.cc:

Namespaces

 DAS
 
 DAS::Muon
 

Functions

vector< float > GetMassEdges (int nbins=100, double M=3000, double m=30)
 
void getDimuonSpectrum (const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
158 {
159  try {
161 
162  vector<fs::path> inputs;
163  fs::path output;
164 
165  auto options = DAS::Options("Obtain the dimuon mass spectrum.", DT::split);
166  options.inputs("inputs", &inputs, "input ROOT file(s) or directory")
167  .output("output", &output, "output ROOT file");
168  options(argc, argv);
169  const auto& slice = options.slice();
170  const int steering = options.steering();
171 
172  DAS::Muon::getDimuonSpectrum(inputs, output, steering, slice);
173  }
174  catch (boost::exception& e) {
175  DE::Diagnostic(e);
176  return EXIT_FAILURE;
177  }
178 
179  return EXIT_SUCCESS;
180 }
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
DAS::Muon::getDimuonSpectrum
void getDimuonSpectrum(const vector< fs::path > &inputs, const fs::path &output, const int steering, const DT::Slice slice={1, 0})
Obtain dimuon spectrum.
Definition: getDimuonSpectrum.cc:46
Darwin::Tools::StandardInit
void StandardInit()
Definition: FileUtils.cc:29
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