#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <utility>
#include "TMath.h"
Go to the source code of this file.
Functions | |
void | mergeNtuples (const char *ntuplename, const char *filestomerge, const char *outputfile) |
template<typename T > | |
std::string | numToStr (T num) |
float | processPrediction (float BDTPt, int Quality, float PrelimFit) |
template<class bidiiter > | |
bidiiter | shuffle (bidiiter begin, bidiiter end, size_t num_random) |
void | sortNtupleByEvent (const char *ntuplename, const char *filenametosort, const char *outputfile) |
Variables | |
const Double_t | ptscale [31] |
const std::vector< Double_t > | ptScale |
const Double_t | twoJets_scale [16] |
const std::vector< Double_t > | twoJetsScale |
void mergeNtuples | ( | const char * | ntuplename, |
const char * | filestomerge, | ||
const char * | outputfile | ||
) |
std::string numToStr | ( | T | num | ) |
Definition at line 43 of file Utilities.h.
References mergeNtuples(), pileupDistInMC::num, estimatePileup_makeJSON::outputfile, processPrediction(), alignCSCRings::s, sortNtupleByEvent(), and AlCaHLTBitMon_QueryRunRegistry::string.
float processPrediction | ( | float | BDTPt, |
int | Quality, | ||
float | PrelimFit | ||
) |
Definition at line 47 of file Utilities.cc.
References RPCpg::pts, and ptscale.
Referenced by numToStr().
bidiiter shuffle | ( | bidiiter | begin, |
bidiiter | end, | ||
size_t | num_random | ||
) |
Definition at line 26 of file Utilities.h.
References begin, SoftLeptonByDistance_cfi::distance, alignCSCRings::r, rand(), and std::swap().
Referenced by L1TForest::prepareRandomSubsample().
void sortNtupleByEvent | ( | const char * | ntuplename, |
const char * | filenametosort, | ||
const char * | outputfile | ||
) |
Definition at line 96 of file Utilities.cc.
References f, connectstrParser::f2, mps_fire::i, and diffTreeTool::index.
Referenced by numToStr().
const Double_t ptscale[31] |
Definition at line 26 of file Utilities.cc.
Referenced by L1TGMT::bookHistograms(), and processPrediction().
const std::vector<Double_t> ptScale |
Definition at line 32 of file Utilities.cc.
Referenced by CSCTFPtLUT::CSCTFPtLUT(), and CSCTFTrackProducer::produce().
const Double_t twoJets_scale[16] |
Definition at line 35 of file Utilities.cc.
const std::vector<Double_t> twoJetsScale |
Definition at line 40 of file Utilities.cc.