The base class for the Shifter tool. Holds all shift values. More...
#include <TElectronMCShifterTool.h>
Public Member Functions | |
TElectronMCShifterTool () | |
Default constructor. | |
~TElectronMCShifterTool () | |
Default destructor. | |
double | getShiftDelta (double eT, double eta, ElePIDNames::Var var) |
Get the shift amount. | |
double | getShiftDeltaByBin (int eT, int eta, ElePIDNames::Var var) |
Get the shift value from bin numbers. | |
double | shiftVar (double eT, double eta, ElePIDNames::Var var, double val) |
Shift a variable. | |
double | shiftVarByBin (int eTBin, int etaBin, ElePIDNames::Var var, double val) |
Shift a variable by the eT and eta bins. | |
void | shiftAll (float eT, float eta, float &rhad1, float &rhad, float &reta, float &rphi, float &weta2, float &f1, float &f3, float &fside, float &ws3, float &wstot, float &eratio, float &e277, float &DeltaE, float &deltaeta1, float &deltaphiRescaled) |
shift all variables as references. | |
Public Attributes | |
std::map< ElePIDNames::Var, std::vector< float > > | Shifts |
std::map< ElePIDNames::Var, std::vector< float > > | Widths |
vector to hold the widths to be applied |
The base class for the Shifter tool. Holds all shift values.
double TElectronMCShifterTool::getShiftDelta | ( | double | eT, | |
double | eta, | |||
ElePIDNames::Var | var | |||
) | [inline] |
Get the shift amount.
Returns only the shift amount. This is the number in the Shifts table that is added to the variable to obtain the shifted result.
eT | The eT value of the electron. | |
eta | The eta value of the electron. | |
var | enum member corresponding to the variable. Type is ElePIDNames::Var |
double TElectronMCShifterTool::getShiftDeltaByBin | ( | int | eT, | |
int | eta, | |||
ElePIDNames::Var | var | |||
) | [inline] |
Get the shift value from bin numbers.
eT | The eT bin number [0-5]. | |
eta | The eta bin number [0-8]. | |
var | enum member corresponding to the variable. Type is ElePIDNames::Var |
void TElectronMCShifterTool::shiftAll | ( | float | eT, | |
float | eta, | |||
float & | rhad1, | |||
float & | rhad, | |||
float & | reta, | |||
float & | rphi, | |||
float & | weta2, | |||
float & | f1, | |||
float & | f3, | |||
float & | fside, | |||
float & | ws3, | |||
float & | wstot, | |||
float & | eratio, | |||
float & | e277, | |||
float & | DeltaE, | |||
float & | deltaeta1, | |||
float & | deltaphiRescaled | |||
) |
shift all variables as references.
Takes in references to all of the variable values and modifies them directly. This is so it can be used in the xAOD wrapper class along with the photon tool.
eT | The eT value of the electron. | |
eta | The eta value of the electron. |
double TElectronMCShifterTool::shiftVar | ( | double | eT, | |
double | eta, | |||
ElePIDNames::Var | var, | |||
double | val | |||
) |
Shift a variable.
Retuns the value of the variable given plus the shift amount as defined in the table of shifts. Variables shifted are reta, f1, f3, wstot, ws3, and weta2. All other variable will just return the input value.
eT | The eT value of the electron. | |
eta | The eta value of the electron. | |
var | enum member corresponding to the variable. Type is ElePIDNames::Var | |
val | The unshifted value of the variable. |
double TElectronMCShifterTool::shiftVarByBin | ( | int | eTBin, | |
int | etaBin, | |||
ElePIDNames::Var | var, | |||
double | val | |||
) |
Shift a variable by the eT and eta bins.
eT | The eT bin of the electron [0-5]. | |
eta | The eta bin of the electron[0-8]. | |
var | enum member corresponding to the variable. Type is ElePIDNames::Var | |
val | The unshifted value of the variable. |