ATLAS Offline Software
Typedefs | Functions | Variables
JetGroupRegisterTest.cxx File Reference
#include "CxxUtils/checker_macros.h"
#include "gtest/gtest.h"
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/HypoJetDefs.h"
#include "TrigHLTJetHypo/../src/JetGroupRegister.h"
#include "TrigHLTJetHypo/../src/DebugInfoCollector.h"
#include "../src/TLorentzVectorFactory.h"
#include "../src/TLorentzVectorAsIJet.h"
#include <vector>
#include <map>
Include dependency graph for JetGroupRegisterTest.cxx:

Go to the source code of this file.

Typedefs

using res = std::pair< std::vector< unsigned int >, bool >
 
using vec = std::vector< unsigned int >
 

Functions

 TEST (JetGroupRegisterTester, empty)
 

Variables

 ATLAS_NO_CHECK_FILE_THREAD_SAFETY
 

Typedef Documentation

◆ res

using res = std::pair<std::vector<unsigned int>, bool>

Definition at line 18 of file JetGroupRegisterTest.cxx.

◆ vec

using vec = std::vector<unsigned int>

Definition at line 19 of file JetGroupRegisterTest.cxx.

Function Documentation

◆ TEST()

TEST ( JetGroupRegisterTester  ,
empty   
)

Definition at line 21 of file JetGroupRegisterTest.cxx.

21  {
22 
23  double eta = 2.1;
24  double et = 101.;
25 
26  TLorentzVector tlv = TLorentzVectorFactory().make(eta, et);
27  pHypoJet hjet(nullptr);
28  hjet.reset(new TLorentzVectorAsIJet(tlv));
29  HypoJetVector jets {hjet};
30 
31  JetGroupRegister jg_register;
32 
33  std::size_t idx = jg_register.record(jets);
34 
35  EXPECT_EQ(idx, 0u);
36 
37  idx = jg_register.record(jets);
38 
39  EXPECT_EQ(idx, 0u);
40 
41  HypoJetVector jets2 = jets;
42 
43  jets2.push_back(hjet);
44 
45  idx = jg_register.record(jets2);
46 
47  EXPECT_EQ(idx, 1u);
48 
49  idx = jg_register.record(jets);
50  EXPECT_EQ(idx, 0u);
51 }

Variable Documentation

◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY

ATLAS_NO_CHECK_FILE_THREAD_SAFETY

Definition at line 6 of file JetGroupRegisterTest.cxx.

TLorentzVectorFactory
Definition: TLorentzVectorFactory.h:13
et
Extra patterns decribing particle interation process.
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
TLorentzVectorFactory::make
virtual TLorentzVector make(double eta, double et) const override
Definition: TLorentzVectorFactory.h:15
JetGroupRegister
Definition: JetGroupRegister.h:35
TLorentzVectorAsIJet
Definition: TLorentzVectorAsIJet.h:12
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
JetGroupRegister::record
std::size_t record(HypoJetVector v)
Definition: JetGroupRegister.cxx:7
defineDB.jets
list jets
Definition: JetTagCalibration/share/defineDB.py:24