ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCell_SuperCell_IDDetDescrCnv.h File Reference

CaloCell_SuperCell_ID helper converter class. More...

Include dependency graph for CaloCell_SuperCell_IDDetDescrCnv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef CaloIdCnv::CaloIDHelper_IDDetDescrCnv_T< CaloCell_SuperCell_IDCaloCell_SuperCell_IDDetDescrCnv
 Alias for the converter class.

Functions

StatusCode make_CaloIDHelper (ISvcLocator *, const std::string &, CaloCell_SuperCell_ID *&idhelper)
 Helper function to actually create a new helper.

Detailed Description

CaloCell_SuperCell_ID helper converter class.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Jul, 2012

Definition in file CaloCell_SuperCell_IDDetDescrCnv.h.

Typedef Documentation

◆ CaloCell_SuperCell_IDDetDescrCnv

Function Documentation

◆ make_CaloIDHelper()

StatusCode make_CaloIDHelper ( ISvcLocator * svcloc,
const std::string & ,
CaloCell_SuperCell_ID *& idhelper )

Helper function to actually create a new helper.

Parameters
svclocGaudi service locator.
helperKeyThe StoreGate key of the helper being created.
idhelper[out]Set to the created helper.

We override this for the case of CaloCell_SuperCell_ID.

Definition at line 26 of file CaloCell_SuperCell_IDDetDescrCnv.cxx.

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}
#define GET_HELPER(TYPE, HELPER)
#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.