ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCnv
CaloIdCnv
src
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
12
#include "
CaloIdCnv/CaloCell_SuperCell_IDDetDescrCnv.h
"
13
#include "
StoreGate/StoreGateSvc.h
"
14
#include "
CaloIdentifier/CaloID.h
"
15
#include "
CaloIdentifier/CaloCell_SuperCell_ID.h
"
16
#include "
AthenaKernel/errorcheck.h
"
17
26
StatusCode
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
40
GET_HELPER
(
LArEM_SuperCell_ID
, em_id);
41
GET_HELPER
(
LArHEC_SuperCell_ID
, hec_id);
42
GET_HELPER
(
LArFCAL_SuperCell_ID
, fcal_id);
43
GET_HELPER
(
LArMiniFCAL_ID
, minifcal_id);
44
GET_HELPER
(
Tile_SuperCell_ID
, tile_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
GET_HELPER
#define GET_HELPER(TYPE, HELPER)
make_CaloIDHelper
StatusCode make_CaloIDHelper(ISvcLocator *svcloc, const std::string &, CaloCell_SuperCell_ID *&idhelper)
Helper function to actually create a new helper.
Definition
CaloCell_SuperCell_IDDetDescrCnv.cxx:26
CaloCell_SuperCell_IDDetDescrCnv.h
CaloCell_SuperCell_ID helper converter class.
CaloCell_SuperCell_ID.h
Helper class for offline supercell identifiers.
CaloID.h
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK_WITH_CONTEXT
#define CHECK_WITH_CONTEXT(...)
Evaluate an expression and check for errors, with an explicitly specified context name.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:396
StoreGateSvc.h
CaloCell_SuperCell_ID
Helper class for offline supercell identifiers.
Definition
CaloCell_SuperCell_ID.h:45
LArEM_SuperCell_ID
Helper class for LArEM offline identifiers for supercells.
Definition
LArEM_SuperCell_ID.h:119
LArFCAL_SuperCell_ID
Helper class for LArFCAL offline identifiers for supercells.
Definition
LArFCAL_SuperCell_ID.h:48
LArHEC_SuperCell_ID
Helper class for LArHEC offline identifiers for supercells.
Definition
LArHEC_SuperCell_ID.h:56
LArMiniFCAL_ID
Helper class for LArMiniFCAL offline identifiers.
Definition
LArMiniFCAL_ID.h:51
Tile_SuperCell_ID
Helper class for Tile offline identifiers for supercells.
Definition
Tile_SuperCell_ID.h:60
Generated on
for ATLAS Offline Software by
1.17.0