#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 | ||
) |
Definition at line 85 of file Utilities.cc.
std::string numToStr | ( | T | num | ) |
Definition at line 43 of file Utilities.h.
References pileupDistInMC::num, alignCSCRings::s, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by emtf::Tree::addXMLAttributes().
float processPrediction | ( | float | BDTPt, |
int | Quality, | ||
float | PrelimFit | ||
) |
bidiiter shuffle | ( | bidiiter | begin, |
bidiiter | end, | ||
size_t | num_random | ||
) |
Definition at line 26 of file Utilities.h.
References begin, HLT_25ns10e33_v2_cff::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, validate-o2o-wbm::f2, i, cmsHarvester::index, and MainPageGenerator::tree.
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.