Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
TrigBjetMonitorAlgorithm.cxx File Reference
#include "TrigBjetMonitorAlgorithm.h"
#include "EventPrimitives/EventPrimitivesHelpers.h"
#include "xAODJet/JetContainer.h"
#include "xAODBTagging/BTaggingContainer.h"
Include dependency graph for TrigBjetMonitorAlgorithm.cxx:

Go to the source code of this file.

Functions

bool LLR (double pu, double pc, double pb, double &w)
 
bool LLRW (float pqcd, float ptop, float phbb, float &w)
 
bool CalcRelPt (float muonPt, float muonEta, float muonPhi, float jetPt, float jetEta, float jetPhi, float &RelPt)
 
float phiCorr (float phi)
 

Function Documentation

◆ CalcRelPt()

bool CalcRelPt ( float  muonPt,
float  muonEta,
float  muonPhi,
float  jetPt,
float  jetEta,
float  jetPhi,
float &  RelPt 
)

Definition at line 60 of file TrigBjetMonitorAlgorithm.cxx.

60  {
61 
62  bool r = false;
63  RelPt = -20.;
64 
65  float muonT, muonX, muonY, muonZ, muon, jetT, jetX, jetY, jetZ, jet, scprod;
66 
67  muonT = 2.*atan( exp(-muonEta) );
68  jetT = 2.*atan( exp(-jetEta) );
69  if ( (std::abs(muonT) > 0.) && (std::abs(jetT) > 0.) ) {
70  muon = muonPt/std::abs( sin(muonT) );
71  muonX = muonPt*cos(muonPhi);
72  muonY = muonPt*sin(muonPhi);
73  muonZ = muon*cos(muonT);
74  jet = jetPt/std::abs( sin(jetT) );
75  jetX = jetPt*cos(jetPhi);
76  jetY = jetPt*sin(jetPhi);
77  jetZ = jet*cos(jetT);
78  scprod = (muonX*jetX + muonY*jetY + muonZ*jetZ)/(muon*jet);
79  scprod *= scprod;
80  if ( (1. - scprod) > 0. ) {
81  RelPt = muon * sqrt(1. - scprod);
82  r = true;
83  }
84  }
85 
86  return r;
87 
88 }

◆ LLR()

bool LLR ( double  pu,
double  pc,
double  pb,
double &  w 
)

Definition at line 29 of file TrigBjetMonitorAlgorithm.cxx.

29  {
30  w = -100.;
31  bool ll = false;
32  double denom;
33  float cfrac(0.018); // DG 2022/07/28
34  if (pb > 0.) {
35  denom = pu*(1.-cfrac)+pc*cfrac;
36  if (denom > 0.) {
37  w = log(pb/denom);
38  ll = true;
39  }
40  }
41  return ll;
42 }

◆ LLRW()

bool LLRW ( float  pqcd,
float  ptop,
float  phbb,
float &  w 
)

Definition at line 44 of file TrigBjetMonitorAlgorithm.cxx.

44  { // RJ 17/02/2025
45  w = -100.;
46  bool ll = false;
47  float denom;
48  float topfrac(0.25);
49  if (phbb > 0.) {
50  denom = pqcd*(1.-topfrac)+ptop*topfrac;
51  if (denom > 0.) {
52  w = log(phbb/denom);
53  ll = true;
54  }
55  }
56  return ll;
57 }

◆ phiCorr()

float phiCorr ( float  phi)

Definition at line 90 of file TrigBjetMonitorAlgorithm.cxx.

90  {
91  if (phi < -M_PI) phi += 2*M_PI;
92  if (phi > M_PI) phi -= 2*M_PI;
93  return phi;
94 }
beamspotman.r
def r
Definition: beamspotman.py:676
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:196
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
detail::ll
long long ll
Definition: PrimitiveHelpers.h:47
keylayer_zslicemap.pb
pb
Definition: keylayer_zslicemap.py:188
M_PI
#define M_PI
Definition: ActiveFraction.h:11
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
drawFromPickle.atan
atan
Definition: drawFromPickle.py:36
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
compute_lumi.denom
denom
Definition: compute_lumi.py:76
CheckAppliedSFs.pu
pu
Definition: CheckAppliedSFs.py:311
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
python.SystemOfUnits.pc
float pc
Definition: SystemOfUnits.py:99