ATLAS Offline Software
Functions | Variables
TrigComboHypoTool.cxx File Reference
#include "TrigComboHypoTool.h"
#include "GaudiKernel/SystemOfUnits.h"
#include <Math/Vector4D.h>
#include <Math/Vector4Dfwd.h>
#include <Math/Vector2D.h>
#include <Math/Vector2Dfwd.h>
#include "xAODTrigMissingET/TrigMissingETContainer.h"
#include "FourMomUtils/xAODP4Helpers.h"
#include <vector>
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Functions

bool testLegId (const Combo::LegDecision &d, uint32_t targetleg)
 Test function to compare decision ID with the legs to be used in var computation. More...
 

Variables

constexpr float invGeV = 1. / Gaudi::Units::GeV
 
const std::map< std::string, TrigComboHypoTool::ComboHypoVarsVarMap
 

Function Documentation

◆ testLegId()

bool testLegId ( const Combo::LegDecision d,
uint32_t  targetleg 
)

Test function to compare decision ID with the legs to be used in var computation.

Definition at line 187 of file TrigComboHypoTool.cxx.

187  {
188  auto combId = HLT::Identifier(d.first);
189  if(!TrigCompositeUtils::isLegId(combId)) return false;
190  return combId.numeric() == targetleg;
191 }

Variable Documentation

◆ invGeV

constexpr float invGeV = 1. / Gaudi::Units::GeV
constexpr

Definition at line 19 of file TrigComboHypoTool.cxx.

◆ VarMap

const std::map<std::string, TrigComboHypoTool::ComboHypoVars> VarMap
Initial value:
= {
{"dR", TrigComboHypoTool::ComboHypoVars::DR},
{"invm", TrigComboHypoTool::ComboHypoVars::INVM},
{"dphi", TrigComboHypoTool::ComboHypoVars::DPHI},
{"deta", TrigComboHypoTool::ComboHypoVars::DETA}
}

Definition at line 24 of file TrigComboHypoTool.cxx.

hist_file_dump.d
d
Definition: hist_file_dump.py:137
LVL1::MT
LVL1::L1CaloFcal23Cells2RxMappingTool::mapType MT
Definition: L1CaloFcal23Cells2RxMappingTool.cxx:14
HLT::Identifier
Definition: TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:20
TrigCompositeUtils::isLegId
bool isLegId(const HLT::Identifier &legIdentifier)
Recognise whether the chain ID is a leg ID.
Definition: TrigCompositeUtilsRoot.cxx:204