TElectronMCShifterTool Class Reference

The base class for the Shifter tool. Holds all shift values. More...

#include <TElectronMCShifterTool.h>

List of all members.

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

Detailed Description

The base class for the Shifter tool. Holds all shift values.


Member Function Documentation

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.

Parameters:
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
Returns:
The shift value for the current electron/variable.
See also:
getShiftDeltaByBin()
double TElectronMCShifterTool::getShiftDeltaByBin ( int  eT,
int  eta,
ElePIDNames::Var  var 
) [inline]

Get the shift value from bin numbers.

Parameters:
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
Returns:
The shift value for the current electron/variable.
See also:
getShiftDelta()
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.

Parameters:
eT The eT value of the electron.
eta The eta value of the electron.
Returns:
None
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.

Parameters:
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.
Returns:
The shift value for the current electron/variable.
See also:
shiftVarByBin(), shiftStruct()
double TElectronMCShifterTool::shiftVarByBin ( int  eTBin,
int  etaBin,
ElePIDNames::Var  var,
double  val 
)

Shift a variable by the eT and eta bins.

Parameters:
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.
Returns:
The shift value for the current electron/variable.
See also:
shiftVarByBin(), shiftStruct()

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1