ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCell_SuperCell_IDDetDescrCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
10
11
17
26StatusCode make_CaloIDHelper (ISvcLocator* svcloc,
27 const std::string& /*helperKey*/,
28 CaloCell_SuperCell_ID* & idhelper)
29{
30 const char* ctx = "CaloCell_SuperCell_IDDetDescrCnv";
31 // get DetectorStore service
32 SmartIF<StoreGateSvc> detStore{svcloc->service("DetectorStore")};
33 CHECK_WITH_CONTEXT( detStore.isValid(), ctx );
34
35 // retrieve LAr and Tile helpers
36#define GET_HELPER(TYPE, HELPER) \
37 const TYPE* HELPER=0; \
38 CHECK_WITH_CONTEXT( detStore->retrieve (HELPER, #TYPE), ctx )
39
43 GET_HELPER (LArMiniFCAL_ID, minifcal_id);
45
46 // create the helper
47 idhelper = new CaloCell_SuperCell_ID (em_id,
48 hec_id,
49 fcal_id,
50 minifcal_id,
51 tile_id);
52 return StatusCode::SUCCESS;
53}
54
55
#define GET_HELPER(TYPE, HELPER)
StatusCode make_CaloIDHelper(ISvcLocator *svcloc, const std::string &, CaloCell_SuperCell_ID *&idhelper)
Helper function to actually create a new helper.
CaloCell_SuperCell_ID helper converter class.
Helper class for offline supercell identifiers.
Helpers for checking error return status codes and reporting errors.
#define CHECK_WITH_CONTEXT(...)
Evaluate an expression and check for errors, with an explicitly specified context name.
Helper class for offline supercell identifiers.
Helper class for LArEM offline identifiers for supercells.
Helper class for LArFCAL offline identifiers for supercells.
Helper class for LArHEC offline identifiers for supercells.
Helper class for LArMiniFCAL offline identifiers.
Helper class for Tile offline identifiers for supercells.