CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PtHatReweightUserHook Class Reference

#include <ReweightUserHooks.h>

Inheritance diagram for PtHatReweightUserHook:

Public Member Functions

double biasSelectionBy (const Pythia8::SigmaProcess *sigmaProcessPtr, const Pythia8::PhaseSpace *phaseSpacePtr, bool inEvent) override
 
bool canBiasSelection () override
 
 PtHatReweightUserHook (double _pt=15, double _power=4.5)
 
 ~PtHatReweightUserHook () override
 

Private Attributes

double power
 
double pt
 

Detailed Description

Definition at line 4 of file ReweightUserHooks.h.

Constructor & Destructor Documentation

PtHatReweightUserHook::PtHatReweightUserHook ( double  _pt = 15,
double  _power = 4.5 
)
inline

Definition at line 7 of file ReweightUserHooks.h.

7  :
8  pt(_pt), power(_power) {}
PtHatReweightUserHook::~PtHatReweightUserHook ( )
inlineoverride

Definition at line 9 of file ReweightUserHooks.h.

9 {}

Member Function Documentation

double PtHatReweightUserHook::biasSelectionBy ( const Pythia8::SigmaProcess *  sigmaProcessPtr,
const Pythia8::PhaseSpace *  phaseSpacePtr,
bool  inEvent 
)
inlineoverride

Definition at line 13 of file ReweightUserHooks.h.

References funct::pow(), power, and pt.

15  {
16  //the variable selBias of the base class should be used;
17  if ((sigmaProcessPtr->nFinal() == 2)) {
18  selBias = pow(phaseSpacePtr->pTHat() / pt, power);
19  return selBias;
20  }
21  selBias = 1.;
22  return selBias;
23  }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
bool PtHatReweightUserHook::canBiasSelection ( )
inlineoverride

Definition at line 11 of file ReweightUserHooks.h.

11 { return true; }

Member Data Documentation

double PtHatReweightUserHook::power
private
double PtHatReweightUserHook::pt
private