CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
PtHatReweightUserHook Class Reference

#include <ReweightUserHooks.h>

Inheritance diagram for PtHatReweightUserHook:

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.

6  :
7  pt(_pt), power(_power) {}
virtual PtHatReweightUserHook::~PtHatReweightUserHook ( )
inlinevirtual

Definition at line 8 of file ReweightUserHooks.h.

8 {}

Member Function Documentation

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

Definition at line 12 of file ReweightUserHooks.h.

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

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

Definition at line 10 of file ReweightUserHooks.h.

10 { 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().