ATLAS Offline Software
PowhegHooksBB4Ldlsl.cxx
Go to the documentation of this file.
1 // PowhegHooksBB4L.h
2 // Rewritten by T. Jezo in 2021. With various contributions from S. Ferrario
3 // Ravasio, B. Nachman, P. Nason and M. Seidel. Inspired by
4 // ttb_NLO_dec/main-PYTHIA8.f by P. Nason and E. Re and by PowhegHooks.h by R.
5 // Corke.
6 //
7 // Adapted to be Athena and Pythia8_i compliant by Katharina Voß (katharina.voss@cern.ch)
8 // following the example from Simone Amoroso in PowhegBB4Ltms.cxx
9 
10 // # Introduction
11 //
12 // This hook is intended for use together with POWHEG-BOX-RES/b_bbar_4l NLO LHE
13 // events. This also includes events in which one of the W bosons was
14 // re-decayed hadronically. (Note that LHE format version larger than 3 may not
15 // require this hook).
16 //
17 // The hook inherits from PowhegHooks and as such it indirectly implements the
18 // following:
19 // - doVetoMPIStep
20 // - doVetoISREmission
21 // - doVetoMPIEmission
22 // and it overloads:
23 // - doVetoFSREmission, which works as follows (if POWHEG:veto==1):
24 // - if inResonance==true it vetoes all the emission that is harder than
25 // the scale of its parent (anti-)top quark or W^+(-)
26 // - if inResonance==false, it calls PowhegHooks::doVetoISREmission
27 // and it also implements:
28 // - doVetoProcessLevel, which is never used for vetoing (i.e. it always
29 // returns false). Instead it is used for the calculation of reconance scales
30 // using LHE kinematics.
31 //
32 // This version of the hooks is only suitable for use with fully compatible
33 // POWHEG-BOX Les Houches readers (such the one in main-PYTHIA82-lhef but
34 // not the one in main31.cc.)
35 //
36 //
37 // # Basic use
38 //
39 // In order to use this hook you must replace all the declarations and
40 // constructor calls of PowhegHooks to PowhegHooksBB4L:
41 //
42 // PowhegHooks *powhegHooks; -> PowhegHooksBB4L *powhegHooks;
43 // *powhegHooks = new PowhegHooks(); -> *powhegHooks = new PowhegHooksBB4L();
44 //
45 // In order to switch it on set POWHEG:veto = 1 and
46 // POWHEG:bb4l:FSREmission:veto = 1. This will lead to a veto in ISR, FSR and
47 // MPI steps of pythia as expected using PowhegHooks in all the cases other than
48 // the case of FSR emission in resonance decay. Within resonance decays
49 // PowhegHooksBB4L takes over the control.
50 //
51 // Furthermore, this hook can also be used standalone without PowhegHooks, i.e.
52 // only the FSR emission from resonances will be vetoed (the default use in
53 // 1801.03944 and 1906.09166). In order to do that set
54 // POWHEG:bb4l:FSREmission:veto = 1 and POWHEG:veto = 0. Note that the this is
55 // not recommended for comparing against data but because it is easier to
56 // interpret it is often done in theoretical studies.
57 //
58 // Note that this version of the hook relies on the event "radtype" (1 for
59 // btilde, 2 for remnant) to be set by an external program, such as
60 // main-PYTHIA82-lhef in the radtype_ common block.
61 // There also exists a version of this hook in which the event "radtype" is
62 // read in from the .lhe file using pythia built in functionality. You need
63 // that version if you want to use this hook with main31.cc.
64 //
65 //
66 // # Expert use
67 //
68 // This hook also implements an alternative veto procedure which allows to
69 // assign a "SCALUP" type of scale to a resonance using the scaleResonance
70 // method. This is a much simpler veto but it is also clearly inferior as
71 // compared to the one implemented using the doVetoFSREmission method because
72 // the definition of the scale of the emission does not match the
73 // POWHEG-BOX-RES definition. Nevertheless, it can be activated using
74 // POWHEG:bb4l:ScaleResonance:veto = 1. Additionally one MUST switch off the
75 // other veto by calling on POWHEG:bb4l:FSREmission:veto = 0.
76 //
77 // The following settings are at the disposal of the user to control the
78 // behaviour of the hook
79 // - On/off switches for the veto:
80 // - POWHEG:bb4l:FSREmission:veto
81 // on/off switch for the default veto based on doFSREmission
82 // - POWHEG:bb4l:ScaleResonance:veto
83 // on/off switch for the alternative veto based on scaleResonance (only
84 // for expert users)
85 // - Important settings:
86 // - POWHEG:bb4l:ptMinVeto: MUST be set to the same value as the
87 // corresponding flag in POWHEG-BOX-RES
88 // - Alternatives for scale calculations
89 // - default: emission scale is calculated using POWHEG definitions and in
90 // the resonance rest frame
91 // - POWHEG:bb4l:FSREmission:vetoDipoleFrame: emission scale is calculated
92 // using POWHEG definitions in the dipole frame
93 // - POWHEG:bb4l:FSREmission:pTpythiaVeto: emission scale is calculated
94 // using Pythia definitions
95 // - Other flags:
96 // - POWHEG:bb4l:FSREmission:vetoQED: decides whether or not QED emission
97 // off quarks should also be vetoed (not implemented in the case of
98 // the ScaleResonance:veto)
99 // - POWHEG:bb4l:DEBUG: enables debug printouts on standard output
100 
101 #include "Pythia8/Pythia.h"
102 #include "UserHooksUtils.h"
104 #if PYTHIA_VERSION_INTEGER >= 8310
105 // Disable the pythia 8.310 plugin mechanism.
106 // We use our own mechanism to create these classes, and we get link errors
107 // if these are used in more than one compilation unit.
108 # include "Pythia8/Plugins.h"
109 # undef PYTHIA8_PLUGIN_CLASS
110 # undef PYTHIA8_PLUGIN_VERSIONS
111 # define PYTHIA8_PLUGIN_CLASS(BASE, CLASS, PYTHIA, SETTINGS, LOGGER)
112 # define PYTHIA8_PLUGIN_VERSIONS(...)
113 #endif
114 #include "Pythia8Plugins/PowhegHooks.h"
115 
116 #include "UserSetting.h"
117 #include <iostream>
118 #include <cassert>
119 #include <stdexcept>
120 
121 struct{
122  int radtype;
124 
125 
126 namespace Pythia8 { class PowhegBB4Ldlsl; }
128 
129 
130 namespace Pythia8 {
131  using namespace std;
132 
133  class PowhegBB4Ldlsl : public PowhegHooks {
134 
135  public:
136 
138  : m_debug("Powheg:bb4l:DEBUG", false),
139  m_vetoFSREmission("Powheg:bb4l:FSREmission:veto", true),
140  m_vetoQED("Powheg:bb4l:vetoQED", false),
141  m_topresscale(-1.), m_atopresscale(-1.),
142  m_wpresscale(-1.),m_wmresscale(-1.),
143  m_nInResonanceFSRveto(0),
144  m_pTmin("Powheg:bb4l:pTminVeto", 0.5),
145  m_vetoProduction("Powheg:veto", 1),
146  m_pTpythiaVeto("Powheg:bb4l:pTpythiaVeto", 0),
147  m_vetoDipoleFrame("Powheg:bb4l:FSREmission:vetoDipoleFrame", 0),
148  m_scaleResonanceVeto("Powheg:bb4l:ScaleResonance:veto", 0.)
149  {
150  std::cout << "**********************************************************" << std::endl;
151  std::cout << "* *" << std::endl;
152  std::cout << "* Applying Powheg BB4L UserHook (PowhegBB4Ldlsl)! *" << std::endl;
153  std::cout << "* Must run on dedicated Powheg LHE input file *" << std::endl;
154  std::cout << "* (on your own responsibility) *" << std::endl;
155  std::cout << "* *" << std::endl;
156  std::cout << "**********************************************************" << std::endl;
157 
158  }
159 
160  ~PowhegBB4Ldlsl() override { }
161 
162  //--- Initialization -------------------------------------------------------
163  virtual bool initAfterBeams() override {
164  // initialize settings of the parent class
165  PowhegHooks::initAfterBeams();
166  // initialize settings of this class already initialized in constructor
167  return true;
168  }
169 
170  //--- PROCESS LEVEL HOOK ---------------------------------------------------
171  // This hook gets triggered for each event before the shower starts, i.e. at
172  // the LHE level. We use it to calculate the scales of resonances.
173  inline virtual bool canVetoProcessLevel() override { return true; }
174  inline virtual bool doVetoProcessLevel(Event &e) override {
175 
176  // extract the radtype from the event comment
177  stringstream ss;
178  ss << infoPtr->getEventComments();
179  string temp;
180  ss >> temp >> radtype_.radtype;
181  assert (temp == "#rwgt");
182 
183  // we only calculate resonance scales for btilde events (radtype_.radtype==1)
184  // remnant events are not vetoed
185  if (radtype_.radtype==2) return false;
186  // find last top and the last anti-top in the record
187  int i_top = -1, i_atop = -1, i_wp = -1, i_wm = -1;
188  for (int i = 0; i < e.size(); i++) {
189  if (e[i].id() == 6) i_top = i;
190  if (e[i].id() == -6) i_atop = i;
191  if (e[i].id() == 24) i_wp = i;
192  if (e[i].id() == -24) i_wm = i;
193  }
194  // if found calculate the resonance scale
195  m_topresscale = findresscale(i_top, e);
196  // similarly for anti-top
197  m_atopresscale = findresscale(i_atop, e);
198  // and for W^+ and W^-
199  m_wpresscale = findresscale(i_wp, e);
200  m_wmresscale = findresscale(i_wm, e);
201 
202  // this is from old UserHook -> not needed anymore?
203  // // initialize stuff
204  // doVetoFSRInit();
205 
206 
207  // do not veto, ever
208  return false;
209  }
210 
211  //--- FSR EMISSION LEVEL HOOK ----------------------------------------------
212  // This hook gets triggered everytime the parton shower attempts to attach
213  // a FSR emission.
214  inline virtual bool canVetoFSREmission() override { return m_vetoFSREmission(settingsPtr) || m_vetoProduction(settingsPtr); }
215  inline virtual bool doVetoFSREmission(int sizeOld, const Event &e, int iSys, bool inResonance) override {
216 
217  // FSR VETO INSIDE THE RESONANCE (if it is switched on)
218  if (inResonance && m_vetoFSREmission(settingsPtr)) {
219 
220  // get the participants of the splitting: the recoiler, the radiator and the emitted
221  int iRecAft = e.size() - 1;
222  int iEmt = e.size() - 2;
223  int iRadAft = e.size() - 3;
224  int iRadBef = e[iEmt].mother1();
225 
226  // find the resonance the radiator originates from
227  int iRes = e[iRadBef].mother1();
228  while ( iRes > 0 && (abs(e[iRes].id()) !=6 && abs(e[iRes].id()) != 24) ) {
229  iRes = e[iRes].mother1();
230  }
231  if (iRes == 0) {
232  #if PYTHIA_VERSION_INTEGER >= 8310
233  loggerPtr->ERROR_MSG("Warning in PowhegHooksBB4L::doVetoFSREmission: emission in resonance not from the top quark or from the W boson, not vetoing");
234  #else
235  infoPtr->errorMsg("Warning in PowhegHooksBB4L::doVetoFSREmission: emission in resonance not from the top quark or from the W boson, not vetoing");
236  #endif
237  return doVetoFSR(false);
238  }
239  int iResId = e[iRes].id();
240 
241  // calculate the scale of the emission
242  double scale;
243  //using pythia pT definition ...
244  if(m_pTpythiaVeto(settingsPtr))
245  scale = pTpythia(e, iRadAft, iEmt, iRecAft);
246  //.. or using POWHEG pT definition
247  else{
248  Vec4 pr(e[iRadAft].p()), pe(e[iEmt].p()), pres(e[iRes].p()), prec(e[iRecAft].p()), psystem;
249  // The computation of the POWHEG pT can be done in the top rest frame or in the diple one.
250  // pdipole = pemt +prec +prad (after the emission)
251  // For the first emission off the top resonance pdipole = pw +pb (before the emission) = ptop
252  if(m_vetoDipoleFrame(settingsPtr))
253  psystem = pr+pe+prec;
254  else
255  psystem = pres;
256 
257  // gluon splitting into two partons
258  if (e[iRadBef].id() == 21)
259  scale = gSplittingScale(psystem, pr, pe);
260  // quark emitting a gluon (or a photon)
261  else if (abs(e[iRadBef].id()) <= 5 && ((e[iEmt].id() == 21) && ! m_vetoQED(settingsPtr)) )
262  scale = qSplittingScale(psystem, pr, pe);
263  // other stuff (which we should not veto)
264  else {
265  scale = 0;
266  }
267  }
268 
269  // compare the current splitting scale to the correct resonance scale
270  if (iResId == 6) {
271  if ( m_debug(settingsPtr) && scale > m_topresscale)
272  cout << iResId << ": " << e[iRadBef].id() << " > " << e[iRadAft].id() << " + " << e[iEmt].id() << "; " << scale << endl;
273  return doVetoFSR(scale > m_topresscale);
274  }
275  else if (iResId == -6){
276  if ( m_debug(settingsPtr) && scale > m_atopresscale)
277  cout << iResId << ": " << e[iRadBef].id() << " > " << e[iRadAft].id() << " + " << e[iEmt].id() << "; " << scale << endl;
278  return doVetoFSR(scale > m_atopresscale);
279  }
280  else if (iResId == 24) {
281  if ( m_debug(settingsPtr) && scale > m_wpresscale)
282  cout << iResId << ": " << e[iRadBef].id() << " > " << e[iRadAft].id() << " + " << e[iEmt].id() << "; " << scale << endl;
283  return doVetoFSR(scale > m_wpresscale);
284  }
285  else if (iResId == -24){
286  if ( m_debug(settingsPtr) && scale > m_wmresscale)
287  cout << iResId << ": " << e[iRadBef].id() << " > " << e[iRadAft].id() << " + " << e[iEmt].id() << "; " << scale << endl;
288  return doVetoFSR(scale > m_wmresscale);
289  }
290  else {
291  #if PYTHIA_VERSION_INTEGER >= 8310
292  loggerPtr->ERROR_MSG("Error in PowhegHooksBB4L::doVetoFSREmission: unimplemented case");
293  #else
294  infoPtr->errorMsg("Error in PowhegHooksBB4L::doVetoFSREmission: unimplemented case");
295  #endif
296  exit(-1);
297  }
298  }
299  // FSR VETO THE PRODUCTION PROCESS, i.e. OUTSIDE RESONANCE (if it is switched on)
300  else if(!inResonance && m_vetoProduction(settingsPtr)){
301  return PowhegHooks::doVetoFSREmission(sizeOld, e, iSys, inResonance);
302  }
303  // OTHERWISE DON'T VETO
304  else {
305  return false;
306  }
307  }
308 
309  inline bool doVetoFSR(bool condition) {
310  if (radtype_.radtype==2) return false;
311  if (condition) {
312  m_nInResonanceFSRveto++;
313  return true;
314  }
315  return false;
316  }
317 
318  //--- SCALE RESONANCE HOOK -------------------------------------------------
319  // called before each resonance decay shower
320  inline virtual bool canSetResonanceScale() override { return m_scaleResonanceVeto(settingsPtr); }
321  // if the resonance is the (anti)top or W+/W- set the scale to:
322  // - if radtype=2 (remnant): resonance virtuality
323  // - if radtype=1 (btilde):
324  // - (a)topresscale/wp(m)resscale for tops and Ws
325  // - a large number otherwise
326  // if is not the top, set it to a big number
327  inline virtual double scaleResonance(int iRes, const Event &e) override {
328  if(radtype_.radtype == 2)
329  return sqrt(e[iRes].m2Calc());
330  else {
331  if (e[iRes].id() == 6)
332  return m_topresscale;
333  else if (e[iRes].id() == -6)
334  return m_atopresscale;
335  else if (e[iRes].id() == 24)
336  return m_wpresscale;
337  else if (e[iRes].id() == -24)
338  return m_wmresscale;
339  else
340  return 1e30;
341  }
342  }
343 
344  //--- Internal helper functions --------------------------------------------
345  // Calculates the scale of the hardest emission from within the resonance system
346  // translated by Markus Seidel modified by Tomas Jezo
347  inline double findresscale( const int iRes, const Event& event) {
348 
349  // return large scale if the resonance position is ill defined
350  if (iRes < 0) return 1e30;
351 
352  // get number of resonance decay products
353  int nDau = event[iRes].daughterList().size();
354 
355  // iRes is not decayed, return high scale equivalent to
356  // unrestricted shower
357  if (nDau == 0) {
358  return 1e30;
359  }
360  // iRes did not radiate, this means that POWHEG pt scale has
361  // evolved all the way down to pTmin
362  else if (nDau < 3) {
363  return m_pTmin(settingsPtr);
364  }
365  // iRes is a (anti-)top quark
366  else if (abs(event[iRes].id()) == 6) {
367  // find top daughters
368  int idw = -1, idb = -1, idg = -1;
369  for (int i = 0; i < nDau; i++) {
370  int iDau = event[iRes].daughterList()[i];
371  if (abs(event[iDau].id()) == 24) idw = iDau;
372  if (abs(event[iDau].id()) == 5) idb = iDau;
373  if (abs(event[iDau].id()) == 21) idg = iDau;
374  }
375 
376  // Get daughter 4-vectors in resonance frame
377  Vec4 pw(event[idw].p());
378  pw.bstback(event[iRes].p());
379  Vec4 pb(event[idb].p());
380  pb.bstback(event[iRes].p());
381  Vec4 pg(event[idg].p());
382  pg.bstback(event[iRes].p());
383 
384  // Calculate scale and return it
385  return sqrt(2*pg*pb*pg.e()/pb.e());
386  }
387  // iRes is a W+(-) boson
388  else if (abs(event[iRes].id()) == 24) {
389  // Find W daughters
390  int idq = -1, ida = -1, idg = -1;
391  for (int i = 0; i < nDau; i++) {
392  int iDau = event[iRes].daughterList()[i];
393  if (event[iDau].id() == 21) idg = iDau;
394  else if (event[iDau].id() > 0) idq = iDau;
395  else if (event[iDau].id() < 0) ida = iDau;
396  }
397  if (idq<0 or ida <0){
398  throw std::out_of_range("idq or ida out of range in PowhegHooksBB4Ldlsl.cxx");
399  }
400  // Get daughter 4-vectors in resonance frame
401  Vec4 pq(event[idq].p());
402  pq.bstback(event[iRes].p());
403  Vec4 pa(event[ida].p());
404  pa.bstback(event[iRes].p());
405  Vec4 pg(event[idg].p());
406  pg.bstback(event[iRes].p());
407 
408  // Calculate scale
409  Vec4 pw = pq + pa + pg;
410  double q2 = pw*pw;
411  double csi = 2*pg.e()/sqrt(q2);
412  double yq = 1 - pg*pq/(pg.e()*pq.e());
413  double ya = 1 - pg*pa/(pg.e()*pa.e());
414  // and return it
415  return sqrt(min(1-yq,1-ya)*pow2(csi)*q2/2);
416  }
417  // in any other case just return a high scale equivalent to
418  // unrestricted shower
419  return 1e30;
420  }
421 
422  // The following routine will match daughters of particle `e[iparticle]` to an expected pattern specified via the list of expected particle PDG ID's `ids`,
423  // id wildcard is specified as 0 if match is obtained, the positions and the momenta of these particles are returned in vectors `positions` and `momenta`
424  // respectively
425  // if exitOnExtraLegs==true, it will exit if the decay has more particles than expected, but not less
426  inline bool match_decay(int iparticle, const Event &e, const vector<int> &ids, vector<int> &positions, vector<Vec4> &momenta, bool exitOnExtraLegs = true){
427  // compare sizes
428  if (e[iparticle].daughterList().size() != ids.size()) {
429  if (exitOnExtraLegs && e[iparticle].daughterList().size() > ids.size()) {
430  cout << "extra leg" << endl;
431  exit(-1);
432  }
433  return false;
434  }
435  // compare content
436  for (long unsigned int i = 0; i < e[iparticle].daughterList().size(); i++) {
437  int di = e[iparticle].daughterList()[i];
438  if (ids[i] != 0 && e[di].id() != ids[i])
439  return false;
440  }
441  // reset the positions and momenta vectors (because they may be reused)
442  positions.clear();
443  momenta.clear();
444  // construct the array of momenta
445  for (long unsigned int i = 0; i < e[iparticle].daughterList().size(); i++) {
446  int di = e[iparticle].daughterList()[i];
447  positions.push_back(di);
448  momenta.push_back(e[di].p());
449  }
450  return true;
451  }
452 
453  inline double qSplittingScale(Vec4 pt, Vec4 p1, Vec4 p2){
454  p1.bstback(pt);
455  p2.bstback(pt);
456  return sqrt( 2*p1*p2*p2.e()/p1.e() );
457  }
458 
459  inline double gSplittingScale(Vec4 pt, Vec4 p1, Vec4 p2){
460  p1.bstback(pt);
461  p2.bstback(pt);
462  return sqrt( 2*p1*p2*p1.e()*p2.e()/(pow(p1.e()+p2.e(),2)) );
463  }
464 
465  // Routines to calculate the pT (according to pTdefMode) in a FS splitting:
466  // i (radiator before) -> j (emitted after) k (radiator after)
467  // For the Pythia pT definition, a recoiler (after) must be specified.
468  // (INSPIRED BY pythia8F77_31.cc double pTpythia)
469  inline double pTpythia(const Event &e, int RadAfterBranch, int EmtAfterBranch,
470  int RecAfterBranch)
471  {
472 
473  // Convenient shorthands for later
474  Vec4 radVec = e[RadAfterBranch].p();
475  Vec4 emtVec = e[EmtAfterBranch].p();
476  Vec4 recVec = e[RecAfterBranch].p();
477  int radID = e[RadAfterBranch].id();
478 
479  // Calculate virtuality of splitting
480  Vec4 Q(radVec + emtVec);
481  double Qsq = Q.m2Calc();
482 
483  // Mass term of radiator
484  double m2Rad = (abs(radID) >= 4 && abs(radID) < 7) ?
485  pow2(particleDataPtr->m0(radID)) : 0.;
486 
487  // z values for FSR
488  double z, pTnow;
489  // Construct 2 -> 3 variables
490  Vec4 sum = radVec + recVec + emtVec;
491  double m2Dip = sum.m2Calc();
492 
493  double x1 = 2. * (sum * radVec) / m2Dip;
494  double x3 = 2. * (sum * emtVec) / m2Dip;
495  z = x1 / (x1 + x3);
496  pTnow = z * (1. - z);
497 
498 
499  // Virtuality
500  pTnow *= (Qsq - m2Rad);
501 
502  if (pTnow < 0.) {
503  cout << "Warning: pTpythia was negative" << endl;
504  return -1.;
505  }
506  else
507  return(sqrt(pTnow));
508  }
509 
510  // Functions to return statistics about the veto
511  inline int getNInResonanceFSRVeto() { return m_nInResonanceFSRveto; }
512 
513  //--------------------------------------------------------------------------
514 
515  private:
518  double m_topresscale, m_atopresscale, m_wpresscale, m_wmresscale;
519  unsigned long int m_nInResonanceFSRveto;
521  Pythia8_UserHooks::UserSetting<int> m_vetoProduction, m_pTpythiaVeto, m_vetoDipoleFrame;
523 
524  };
525 
526  //==========================================================================
527 
528 } // end namespace Pythia8
529 
530 
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
temp
Definition: JetEventDict.h:21
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
Pythia8::PowhegBB4Ldlsl::m_scaleResonanceVeto
Pythia8_UserHooks::UserSetting< double > m_scaleResonanceVeto
Definition: PowhegHooksBB4Ldlsl.cxx:522
Pythia8::PowhegBB4Ldlsl::m_wpresscale
double m_wpresscale
Definition: PowhegHooksBB4Ldlsl.cxx:518
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
Pythia8::PowhegBB4Ldlsl::~PowhegBB4Ldlsl
~PowhegBB4Ldlsl() override
Definition: PowhegHooksBB4Ldlsl.cxx:160
Pythia8::PowhegBB4Ldlsl::initAfterBeams
virtual bool initAfterBeams() override
Definition: PowhegHooksBB4Ldlsl.cxx:163
Pythia8::PowhegBB4Ldlsl::m_vetoQED
Pythia8_UserHooks::UserSetting< bool > m_vetoQED
Definition: PowhegHooksBB4Ldlsl.cxx:517
Pythia8::PowhegBB4Ldlsl::canSetResonanceScale
virtual bool canSetResonanceScale() override
Definition: PowhegHooksBB4Ldlsl.cxx:320
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
Event
Definition: trigbs_orderedMerge.cxx:42
Pythia8::PowhegBB4Ldlsl::match_decay
bool match_decay(int iparticle, const Event &e, const vector< int > &ids, vector< int > &positions, vector< Vec4 > &momenta, bool exitOnExtraLegs=true)
Definition: PowhegHooksBB4Ldlsl.cxx:426
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
test_pyathena.pt
pt
Definition: test_pyathena.py:11
Pythia8::PowhegBB4Ldlsl::pTpythia
double pTpythia(const Event &e, int RadAfterBranch, int EmtAfterBranch, int RecAfterBranch)
Definition: PowhegHooksBB4Ldlsl.cxx:469
radtype
int radtype
Definition: PowhegHooksBB4Ldlsl.cxx:122
LArG4GenerateShowerLib.condition
condition
Definition: LArG4GenerateShowerLib.py:19
Pythia8::PowhegBB4Ldlsl::m_debug
Pythia8_UserHooks::UserSetting< bool > m_debug
Definition: PowhegHooksBB4Ldlsl.cxx:516
Pythia8::PowhegBB4Ldlsl::doVetoFSR
bool doVetoFSR(bool condition)
Definition: PowhegHooksBB4Ldlsl.cxx:309
Pythia8_UserHooks::UserHooksFactory::Creator
Definition: UserHooksFactory.h:54
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
powhegBB4LdlslCreator
Pythia8_UserHooks::UserHooksFactory::Creator< Pythia8::PowhegBB4Ldlsl > powhegBB4LdlslCreator("PowhegBB4Ldlsl")
LArG4AODNtuplePlotter.pe
pe
Definition: LArG4AODNtuplePlotter.py:116
Pythia8::PowhegBB4Ldlsl::canVetoProcessLevel
virtual bool canVetoProcessLevel() override
Definition: PowhegHooksBB4Ldlsl.cxx:173
UserHooksFactory.h
Pythia8
Author: James Monk (jmonk@cern.ch)
Definition: IPythia8Custom.h:13
Pythia8_UserHooks::UserSetting< bool >
radtype_
struct @62 radtype_
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Pythia8::PowhegBB4Ldlsl::gSplittingScale
double gSplittingScale(Vec4 pt, Vec4 p1, Vec4 p2)
Definition: PowhegHooksBB4Ldlsl.cxx:459
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
Pythia8::PowhegBB4Ldlsl::canVetoFSREmission
virtual bool canVetoFSREmission() override
Definition: PowhegHooksBB4Ldlsl.cxx:214
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
lumiFormat.i
int i
Definition: lumiFormat.py:85
Pythia8::PowhegBB4Ldlsl::PowhegBB4Ldlsl
PowhegBB4Ldlsl()
Definition: PowhegHooksBB4Ldlsl.cxx:137
z
#define z
Pythia8::PowhegBB4Ldlsl::qSplittingScale
double qSplittingScale(Vec4 pt, Vec4 p1, Vec4 p2)
Definition: PowhegHooksBB4Ldlsl.cxx:453
Pythia8::PowhegBB4Ldlsl
Definition: PowhegHooksBB4Ldlsl.cxx:133
TileDCSDataPlotter.pr
pr
Definition: TileDCSDataPlotter.py:922
UserSetting.h
calibdata.exit
exit
Definition: calibdata.py:236
Pythia8::PowhegBB4Ldlsl::getNInResonanceFSRVeto
int getNInResonanceFSRVeto()
Definition: PowhegHooksBB4Ldlsl.cxx:511
Pythia8::PowhegBB4Ldlsl::m_vetoProduction
Pythia8_UserHooks::UserSetting< int > m_vetoProduction
Definition: PowhegHooksBB4Ldlsl.cxx:521
ParticleGun_EoverP_Config.pg
pg
Definition: ParticleGun_EoverP_Config.py:61
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
Pythia8::PowhegBB4Ldlsl::doVetoFSREmission
virtual bool doVetoFSREmission(int sizeOld, const Event &e, int iSys, bool inResonance) override
Definition: PowhegHooksBB4Ldlsl.cxx:215
UserHooksUtils.h
Pythia8::PowhegBB4Ldlsl::scaleResonance
virtual double scaleResonance(int iRes, const Event &e) override
Definition: PowhegHooksBB4Ldlsl.cxx:327
Pythia8::PowhegBB4Ldlsl::doVetoProcessLevel
virtual bool doVetoProcessLevel(Event &e) override
Definition: PowhegHooksBB4Ldlsl.cxx:174
Pythia8::PowhegBB4Ldlsl::m_nInResonanceFSRveto
unsigned long int m_nInResonanceFSRveto
Definition: PowhegHooksBB4Ldlsl.cxx:519
Pythia8::PowhegBB4Ldlsl::findresscale
double findresscale(const int iRes, const Event &event)
Definition: PowhegHooksBB4Ldlsl.cxx:347
jobOptions.prec
prec
Definition: jobOptions.Superchic_UPC_yyMuMu.py:20
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15
Pythia8::PowhegBB4Ldlsl::m_pTmin
Pythia8_UserHooks::UserSetting< double > m_pTmin
Definition: PowhegHooksBB4Ldlsl.cxx:520
BchCleanup.idb
idb
Definition: BchCleanup.py:152