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::PtHatReweightUserHook ( double  _pt = 15,
double  _power = 4.5 
)
inline

Definition at line 6 of file ReweightUserHooks.h.

6 : pt(_pt), power(_power) {}

◆ ~PtHatReweightUserHook()

PtHatReweightUserHook::~PtHatReweightUserHook ( )
inlineoverride

Definition at line 7 of file ReweightUserHooks.h.

7 {}

Member Function Documentation

◆ biasSelectionBy()

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:29

◆ canBiasSelection()

bool PtHatReweightUserHook::canBiasSelection ( )
inlineoverride

Definition at line 9 of file ReweightUserHooks.h.

9 { return true; }

Member Data Documentation

◆ power

double PtHatReweightUserHook::power
private

Definition at line 24 of file ReweightUserHooks.h.

Referenced by biasSelectionBy().

◆ pt

double PtHatReweightUserHook::pt
private