ATLAS Offline Software
Classes | Namespaces | Macros | Functions
Reconstruction/Jet/JetUncertainties/JetUncertainties/Helpers.h File Reference
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "TString.h"
#include "TObjString.h"
#include "TObjArray.h"
#include "TFile.h"
#include "xAODJet/Jet.h"
#include "xAODJet/JetAccessors.h"

Go to the source code of this file.

Classes

class  jet::JetFourMomAccessor
 JetFourMomAccessor is an extension of JetAttributeAccessor::AccessorWrapper<xAOD::JetFourMom_t> AccessorWrapper<xAOD::JetFourMom_t> purpose is to provide a direct and simple access to JetFourMom_t attributes (which are internally saved as 4 floats inside jets). More...
 

Namespaces

 jet
 
 jet::utils
 

Macros

#define JESUNC_ERROR_CODE   -1234
 
#define JESUNC_NO_DEFAULT_CONSTRUCTOR   ATH_MSG_FATAL("Default constructor is not supported");
 
#define JESUNC_SAFE_DELETE(T)   { if(T) { delete T; T = NULL; } }
 

Functions

template<typename T >
bool jet::utils::isTypeObjFromString (const std::string &str)
 
template<typename T >
bool jet::utils::isTypeObjFromString (const TString &str)
 
template<typename T >
bool jet::utils::getTypeObjFromString (const std::string &str, T &obj)
 
template<typename T >
jet::utils::getTypeObjFromString (const std::string &str)
 
template<typename T >
bool jet::utils::getTypeObjFromString (const TString &str, T &obj)
 
template<typename T >
jet::utils::getTypeObjFromString (const TString &str)
 
template<>
bool jet::utils::getTypeObjFromString< std::string > (const std::string &str, std::string &obj)
 
template<>
bool jet::utils::getTypeObjFromString< TString > (const std::string &str, TString &obj)
 
template<>
bool jet::utils::getTypeObjFromString< bool > (const std::string &str, bool &obj)
 
template<>
bool jet::utils::getTypeObjFromString< std::string > (const TString &str, std::string &obj)
 
template<>
bool jet::utils::getTypeObjFromString< TString > (const TString &str, TString &obj)
 
template<>
bool jet::utils::getTypeObjFromString< bool > (const TString &str, bool &obj)
 
template<typename T >
bool jet::utils::vectorize (const TString &str, const TString &sep, std::vector< T > &result)
 
template<typename T >
std::vector< T > jet::utils::vectorize (const TString &str, const TString &sep)
 
bool jet::utils::fileExists (const TString &fileName)
 
TString jet::utils::findFilePath (const TString &fileName, const TString &path="", const TString &calibArea="")
 
TFile * jet::utils::readRootFile (const TString &fileName, const TString &path="", const TString &calibArea="")
 
std::vector< double > jet::utils::getLogBins (const size_t numBins, const double minVal, const double maxVal)
 
std::vector< double > jet::utils::getUniformBins (const size_t numBins, const double minVal, const double maxVal)
 
void jet::utils::scaleHistoAxes (TH1 *toScale, const double factorX=1, const double factorY=1, const double factorZ=1)
 

Macro Definition Documentation

◆ JESUNC_ERROR_CODE

#define JESUNC_ERROR_CODE   -1234

◆ JESUNC_NO_DEFAULT_CONSTRUCTOR

#define JESUNC_NO_DEFAULT_CONSTRUCTOR   ATH_MSG_FATAL("Default constructor is not supported");

◆ JESUNC_SAFE_DELETE

#define JESUNC_SAFE_DELETE (   T)    { if(T) { delete T; T = NULL; } }