CMS 3D CMS Logo

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

#include <CombineMatchingInput.h>

Public Member Functions

 CombineMatchingInput ()
 
Pythia8::UserHooks * getHook (Pythia8::Pythia &pythia)
 
 ~CombineMatchingInput ()
 

Detailed Description

Definition at line 110 of file CombineMatchingInput.h.

Constructor & Destructor Documentation

CombineMatchingInput::CombineMatchingInput ( )
inline

Definition at line 115 of file CombineMatchingInput.h.

115 {}
CombineMatchingInput::~CombineMatchingInput ( )
inline

Definition at line 116 of file CombineMatchingInput.h.

116 {}

Member Function Documentation

Pythia8::UserHooks* CombineMatchingInput::getHook ( Pythia8::Pythia &  pythia)
inline

Definition at line 119 of file CombineMatchingInput.h.

References NULL.

119  {
120 
121  // Find input source and matching scheme.
122  bool isAlpgenFile = ( pythia.word("Alpgen:file") != "void" );
123  int scheme = pythia.mode("JetMatching:scheme");
124 
125  // Return relevant UserHooks.
126  if (isAlpgenFile) {
127  if (scheme == 2) return new JetMatchingAlpgenInputAlpgen(pythia);
128  if (scheme == 1) return new JetMatchingMadgraphInputAlpgen(pythia);
129  } else {
130  if (scheme == 2) return new JetMatchingAlpgen();
131  if (scheme == 1) return new JetMatchingMadgraph();
132  }
133 
134  // If fail then abort message and return VOID.
135  pythia.info.errorMsg("Abort from CombinedInputMatching::getHook: "
136  "settings unavailable");
137  return NULL;
138  }
#define NULL
Definition: scimark2.h:8