DAS  3.0
Das Analysis System
common.h File Reference
#include <cassert>
#include <iostream>
#include <regex>
#include <string>
#include <sstream>
#include "Core/CommonTools/interface/binnings.h"
#include <boost/algorithm/string.hpp>
#include <darwin.h>
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 DAS
 
 DAS::JetEnergy
 

Functions

std::vector< double > getBinning (int nBins, float first, float last)
 
void assertValidBinning (const std::vector< double > &v)
 
std::vector< float > GetLogBinning (float minpt, float maxpt, int nbins)
 
std::string GetAlgo (const Darwin::Tools::UserInfo &metainfo)
 
std::string GetShortCampaign (const std::string &campaign)
 
std::string ScanCorrections (const auto &corrections, const std::string &key="")
 
template<typename CorrectionType >
CorrectionType GetCorrection (const auto &corrections, const std::string &campaign, const std::string &type, const std::string &level, const std::string &suffix)
 
int GetR (const Darwin::Tools::UserInfo &metainfo)
 

Variables

static const std::vector< double > pt_JERC_edges = {15, 17, 20, 23, 27, 30, 35, 40, 45, 57, 72, 90, 120, 150, 200, 300, 400, 550, 750, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500}
 
static const int nPtJERCbins = pt_JERC_edges.size()-1
 
static const std::vector< double > abseta_edges = { 0.000, 0.261, 0.522, 0.783, 1.044, 1.305, 1.566, 1.740, 1.930, 2.043, 2.172, 2.322, 2.500, 2.650, 2.853, 2.964, 3.139, 3.489, 3.839, 5.191 }
 
static const int nAbsEtaBins = abseta_edges.size()-1
 
static const std::vector< TString > absetaBins = MakeTitle(abseta_edges, "|#eta|", false, true, [](double v) { return Form("%.3f", v);})
 
static const std::map< int, std::vector< double > > rho_edges
 
static const std::map< int, int > nRhoBins
 
static const std::map< int, std::vector< TString > > rhoBins
 
static const std::vector< double > eta_unc_edges = {-5.4, -5.0, -4.4, -4.0, -3.5, -3.0, -2.8, -2.6, -2.4, -2.2, -2.0, -1.8, -1.6, -1.4, -1.2, -1.0, -0.8, -0.6, -0.4, -0.2, 0.0 , 0.2 , 0.4 , 0.6 , 0.8 , 1.0 , 1.2 , 1.4 , 1.6 , 1.8 , 2.0 , 2.2 , 2.4 , 2.6 , 2.8 , 3.0, 3.5 , 4.0 , 4.4 , 5.0 , 5.4}
 
static const int nEtaUncBins = eta_unc_edges.size()-1
 
static const std::vector< std::string > JES_variations {"AbsoluteStat", "AbsoluteScale", "AbsoluteMPFBias", "Fragmentation", "SinglePionECAL", "SinglePionHCAL", "FlavorQCD", "RelativeJEREC1", "RelativeJEREC2", "RelativeJERHF", "RelativePtBB", "RelativePtEC1", "RelativePtEC2", "RelativePtHF", "RelativeBal", "RelativeSample", "RelativeFSR", "RelativeStatFSR", "RelativeStatEC", "RelativeStatHF", "PileUpDataMC", "PileUpPtRef", "PileUpPtBB", "PileUpPtEC1", "PileUpPtEC2", "PileUpPtHF"}
 
static const float w = 0.8