ATLAS Offline Software
Loading...
Searching...
No Matches
CaloHelpersTest.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4/*
5 */
12
13
16
17
19 : m_parser (std::make_unique<IdDictParser>())
20{
21 m_parser->register_external_entity("LArCalorimeter", "IdDictLArCalorimeter.xml");
22 IdDictMgr& idd = m_parser->parse("IdDictParser/ATLAS_IDS.xml");
23 m_em_idHelper.set_do_neighbours(false);
24 if (m_em_idHelper.initialize_from_dictionary(idd) != 0) {
25 std::abort();
26 }
27
28 if (m_hec_idHelper.initialize_from_dictionary(idd) != 0) {
29 std::abort();
30 }
31
32 m_fcal_idHelper.set_do_neighbours(false);
33 if (m_fcal_idHelper.initialize_from_dictionary(idd) != 0) {
34 std::abort();
35 }
36
37 m_minifcal_idHelper.set_do_neighbours(false);
38 if (m_minifcal_idHelper.initialize_from_dictionary(idd) != 0) {
39 std::abort();
40 }
41
42 m_tile_idHelper.set_do_neighbours(false);
43 if (m_tile_idHelper.initialize_from_dictionary(idd) != 0) {
44 std::abort();
45 }
46
47 m_calo_idHelper = std::make_unique<CaloCell_ID> (&m_em_idHelper,
52 if (m_calo_idHelper->initialize_from_dictionary(idd) != 0) {
53 std::abort();
54 }
55}
56
57
59= default;
60
61
63{
64 return m_em_idHelper;
65}
66
67
69{
70 return m_hec_idHelper;
71}
72
73
75{
76 return m_fcal_idHelper;
77}
78
79
84
85
87{
88 return m_tile_idHelper;
89}
90
91
93{
94 return *m_calo_idHelper;
95}
Helper to initialize ID helpers for unit tests.
if(febId1==febId2)
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
std::unique_ptr< IdDictParser > m_parser
const LArMiniFCAL_ID & minifcalID() const
const TileID & tileID() const
LArHEC_ID m_hec_idHelper
const LArHEC_ID & hecID() const
const CaloCell_ID & caloID() const
const LArEM_ID & emID() const
std::unique_ptr< CaloCell_ID > m_calo_idHelper
LArFCAL_ID m_fcal_idHelper
LArMiniFCAL_ID m_minifcal_idHelper
const LArFCAL_ID & fcalID() const
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
Helper class for LArMiniFCAL offline identifiers.
Helper class for TileCal offline identifiers.
Definition TileID.h:67
STL namespace.