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 6 of file ReweightUserHooks.h.

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

Definition at line 7 of file ReweightUserHooks.h.

7 {}

Member Function Documentation

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

Definition at line 11 of file ReweightUserHooks.h.

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

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

Definition at line 9 of file ReweightUserHooks.h.

9 { return true; }

Member Data Documentation

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