CMS 3D CMS Logo

Public Member Functions | Private Attributes

PtHatReweightUserHook Class Reference

#include <ReweightUserHooks.h>

List of all members.

Public Member Functions

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

Private Attributes

double power
double pt

Detailed Description

Definition at line 3 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.

                                                                :
      pt(_pt), power(_power) {}
virtual PtHatReweightUserHook::~PtHatReweightUserHook ( ) [inline, virtual]

Definition at line 8 of file ReweightUserHooks.h.

{}

Member Function Documentation

virtual double PtHatReweightUserHook::biasSelectionBy ( const Pythia8::SigmaProcess *  sigmaProcessPtr,
const Pythia8::PhaseSpace *  phaseSpacePtr,
bool  inEvent 
) [inline, virtual]

Definition at line 12 of file ReweightUserHooks.h.

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

    {
      //the variable selBias of the base class should be used;
      if ((sigmaProcessPtr->nFinal() == 2)) {
        selBias = pow(phaseSpacePtr->pTHat() / pt, power);
        return selBias;
      }
      selBias = 1.;
      return selBias;
    }
virtual bool PtHatReweightUserHook::canBiasSelection ( ) [inline, virtual]

Definition at line 10 of file ReweightUserHooks.h.

{ return true; }

Member Data Documentation

double PtHatReweightUserHook::power [private]

Definition at line 25 of file ReweightUserHooks.h.

Referenced by biasSelectionBy().

double PtHatReweightUserHook::pt [private]

Definition at line 25 of file ReweightUserHooks.h.

Referenced by biasSelectionBy().