test
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 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) {}
virtual PtHatReweightUserHook::~PtHatReweightUserHook ( )
inlinevirtual

Definition at line 9 of file ReweightUserHooks.h.

9 {}

Member Function Documentation

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

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
virtual bool PtHatReweightUserHook::canBiasSelection ( )
inlinevirtual

Definition at line 11 of file ReweightUserHooks.h.

11 { return true; }

Member Data Documentation

double PtHatReweightUserHook::power
private

Definition at line 26 of file ReweightUserHooks.h.

Referenced by biasSelectionBy().

double PtHatReweightUserHook::pt
private