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
PowhegResHook Class Reference

#include <PowhegResHook.h>

Inheritance diagram for PowhegResHook:

Public Member Functions

bool canSetResonanceScale ()
 
 PowhegResHook ()
 
double scaleResonance (const int iRes, const Pythia8::Event &event)
 
 ~PowhegResHook ()
 

Private Attributes

bool calcScales_
 

Detailed Description

Definition at line 5 of file PowhegResHook.h.

Constructor & Destructor Documentation

PowhegResHook::PowhegResHook ( )
inline

Definition at line 10 of file PowhegResHook.h.

10 {}
PowhegResHook::~PowhegResHook ( )
inline

Definition at line 11 of file PowhegResHook.h.

11 {}

Member Function Documentation

bool PowhegResHook::canSetResonanceScale ( )
inline

Definition at line 13 of file PowhegResHook.h.

13 { return true; }
double PowhegResHook::scaleResonance ( const int  iRes,
const Pythia8::Event &  event 
)

Definition at line 11 of file PowhegResHook.cc.

References funct::abs(), i, min(), or, AlCaHLTBitMon_ParallelJobs::p, AnalysisDataFormats_SUSYBSMObjects::pa, q2, pileupReCalc_HLTpaths::scale, and mathSSE::sqrt().

11  {
12  calcScales_ = settingsPtr->flag("POWHEGres:calcScales");
13 
14  double scale = 0.;
15 
16  int nDau = event[iRes].daughterList().size();
17 
18  if (!calcScales_ or nDau == 0) {
19  // No resonance found, set scale to high value
20  // Pythia will shower any MC generated resonance unrestricted
21  scale = 1e30;
22  }
23 
24  else if (nDau < 3) {
25  // No radiating resonance found
26  scale = 0.8;
27  }
28 
29  else if (abs(event[iRes].id()) == 6) {
30  // Find top daughters
31  int idw = -1, idb = -1, idg = -1;
32 
33  for (int i = 0; i < nDau; i++) {
34  int iDau = event[iRes].daughterList()[i];
35  if (abs(event[iDau].id()) == 24) idw = iDau;
36  if (abs(event[iDau].id()) == 5) idb = iDau;
37  if (abs(event[iDau].id()) == 21) idg = iDau;
38  }
39 
40  // Get daughter 4-vectors in resonance frame
41  Vec4 pw(event[idw].p());
42  pw.bstback(event[iRes].p());
43 
44  Vec4 pb(event[idb].p());
45  pb.bstback(event[iRes].p());
46 
47  Vec4 pg(event[idg].p());
48  pg.bstback(event[iRes].p());
49 
50  // Calculate scale
51  scale = sqrt(2*pg*pb*pg.e()/pb.e());
52  }
53 
54  else if (abs(event[iRes].id()) == 24) {
55  // Find W daughters
56  int idq = -1, ida = -1, idg = -1;
57 
58  for (int i = 0; i < nDau; i++) {
59  int iDau = event[iRes].daughterList()[i];
60  if (event[iDau].id() == 21) idg = iDau;
61  else if (event[iDau].id() > 0) idq = iDau;
62  else if (event[iDau].id() < 0) ida = iDau;
63  }
64 
65  // Get daughter 4-vectors in resonance frame
66  Vec4 pq(event[idq].p());
67  pq.bstback(event[iRes].p());
68 
69  Vec4 pa(event[ida].p());
70  pa.bstback(event[iRes].p());
71 
72  Vec4 pg(event[idg].p());
73  pg.bstback(event[iRes].p());
74 
75  // Calculate scale
76  Vec4 pw = pq + pa + pg;
77  double q2 = pw*pw;
78  double csi = 2*pg.e()/sqrt(q2);
79  double yq = 1 - pg*pq/(pg.e()*pq.e());
80  double ya = 1 - pg*pa/(pg.e()*pa.e());
81 
82  scale = sqrt(min(1-yq,1-ya)*pow2(csi)*q2/2);
83  }
84 
85  return scale;
86 }
int i
Definition: DBlmapReader.cc:9
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
ExtVec< T, 4 > Vec4
Definition: ExtVec.h:74
susybsm::HSCParticle pa
Definition: classes.h:8
double q2[4]
Definition: TauolaWrapper.h:88
T sqrt(T t)
Definition: SSEVec.h:18
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
T min(T a, T b)
Definition: MathUtil.h:58
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past

Member Data Documentation

bool PowhegResHook::calcScales_
private

Definition at line 20 of file PowhegResHook.h.