#include <JESUncertaintyProvider.hh>
Public Types | |
enum | Components { CALORIMETER = 1, NOISETHRESHOLDS = 2, PERUGIATUNE = 4, ALPGENHERWIGJIMMY = 8, ETAINTERCALIBRATION = 16, CLOSURE = 32, PILEUP = 64, NOCLOSURE = 95, NOPILEUP = 63, NOPILEUPNOCLOSURE = 31, ALL = 127 } |
Public Member Functions | |
JESUncertaintyProvider (std::string CollectionName="AntiKt6H1TopoJets", std::string FileName="JESUncertainty.root") | |
~JESUncertaintyProvider () | |
double | getRelUncert (double pT, double Eta, Components UncertComps=JESUncertaintyProvider::NOPILEUP, unsigned int nVtx=1) |
double | getAbsUncert (double pT, double Eta, Components UncertComps=JESUncertaintyProvider::NOPILEUP, unsigned int nVtx=1) |
TH2D * | getUncGraphCopy (Components UncertComps=JESUncertaintyProvider::NOPILEUP, unsigned int nVtx=1) |
virtual void | init () |
virtual TFile * | openInputFile (std::string FileName="JESUncertainty.root") |
Protected Member Functions | |
bool | setInputCollection (std::string CollectionName) |
double | getComponents (int currentBin, Components UncertComps, unsigned int nVtx=1) |
transient, do not save | |
Protected Attributes | |
const double | m_GeV |
map< int, TH2D * > | m_uncGraph |
map< int, TH2D * > | m_pileupUncGraph |
TFile * | m_inputFile |
std::string | m_collectionName |
std::string | m_fileName |
bool | m_isInit |
Static Protected Attributes | |
static const unsigned int | m_nUncertainties = 7 |
static const unsigned int | m_nVertices = 7 |
Definition at line 66 of file JESUncertaintyProvider.hh.
CALORIMETER | |
NOISETHRESHOLDS | |
PERUGIATUNE | |
ALPGENHERWIGJIMMY | |
ETAINTERCALIBRATION | |
CLOSURE | |
PILEUP | |
NOCLOSURE | |
NOPILEUP | |
NOPILEUPNOCLOSURE | |
ALL |
Definition at line 71 of file JESUncertaintyProvider.hh.
JESUncertaintyProvider::JESUncertaintyProvider | ( | std::string | CollectionName = "AntiKt6H1TopoJets" , |
std::string | FileName = "JESUncertainty.root" |
||
) |
Definition at line 4 of file JESUncertaintyProvider.cxx.
JESUncertaintyProvider::~JESUncertaintyProvider | ( | ) |
Definition at line 16 of file JESUncertaintyProvider.cxx.
double JESUncertaintyProvider::getAbsUncert | ( | double | pT, |
double | Eta, | ||
Components | UncertComps = JESUncertaintyProvider::NOPILEUP , |
||
unsigned int | nVtx = 1 |
||
) |
Definition at line 146 of file JESUncertaintyProvider.cxx.
double JESUncertaintyProvider::getComponents | ( | int | currentBin, |
Components | UncertComps, | ||
unsigned int | nVtx = 1 |
||
) | [protected] |
transient, do not save
CHANGE HERE WHEN NUMBER OF COMPONENTS CHANGES
Definition at line 204 of file JESUncertaintyProvider.cxx.
double JESUncertaintyProvider::getRelUncert | ( | double | pT, |
double | Eta, | ||
Components | UncertComps = JESUncertaintyProvider::NOPILEUP , |
||
unsigned int | nVtx = 1 |
||
) |
Definition at line 152 of file JESUncertaintyProvider.cxx.
TH2D * JESUncertaintyProvider::getUncGraphCopy | ( | Components | UncertComps = JESUncertaintyProvider::NOPILEUP , |
unsigned int | nVtx = 1 |
||
) |
Definition at line 184 of file JESUncertaintyProvider.cxx.
void JESUncertaintyProvider::init | ( | ) | [virtual] |
Definition at line 33 of file JESUncertaintyProvider.cxx.
TFile * JESUncertaintyProvider::openInputFile | ( | std::string | FileName = "JESUncertainty.root" ) |
[virtual] |
Definition at line 58 of file JESUncertaintyProvider.cxx.
bool JESUncertaintyProvider::setInputCollection | ( | std::string | CollectionName ) | [protected] |
Definition at line 67 of file JESUncertaintyProvider.cxx.
std::string JESUncertaintyProvider::m_collectionName [protected] |
Definition at line 137 of file JESUncertaintyProvider.hh.
std::string JESUncertaintyProvider::m_fileName [protected] |
Definition at line 140 of file JESUncertaintyProvider.hh.
const double JESUncertaintyProvider::m_GeV [protected] |
Definition at line 122 of file JESUncertaintyProvider.hh.
TFile* JESUncertaintyProvider::m_inputFile [protected] |
Definition at line 131 of file JESUncertaintyProvider.hh.
bool JESUncertaintyProvider::m_isInit [protected] |
Definition at line 143 of file JESUncertaintyProvider.hh.
const unsigned int JESUncertaintyProvider::m_nUncertainties = 7 [static, protected] |
Definition at line 116 of file JESUncertaintyProvider.hh.
const unsigned int JESUncertaintyProvider::m_nVertices = 7 [static, protected] |
Definition at line 119 of file JESUncertaintyProvider.hh.
map<int,TH2D*> JESUncertaintyProvider::m_pileupUncGraph [protected] |
Definition at line 128 of file JESUncertaintyProvider.hh.
map<int,TH2D*> JESUncertaintyProvider::m_uncGraph [protected] |
Definition at line 125 of file JESUncertaintyProvider.hh.