ATLAS Offline Software
Typedefs | Functions
CaloCell_SuperCell_IDDetDescrCnv.h File Reference

CaloCell_SuperCell_ID helper converter class. More...

#include "CaloIdCnv/CaloIDHelper_IDDetDescrCnv.h"
#include "CaloIdentifier/CaloCell_SuperCell_ID.h"
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. More...
 

Functions

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

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

Alias for the converter class.

Definition at line 39 of file CaloCell_SuperCell_IDDetDescrCnv.h.

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);
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 }
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
LArFCAL_SuperCell_ID
Helper class for LArFCAL offline identifiers for supercells.
Definition: LArFCAL_SuperCell_ID.h:48
Tile_SuperCell_ID
Helper class for Tile offline identifiers for supercells.
Definition: Tile_SuperCell_ID.h:64
LArEM_SuperCell_ID
Helper class for LArEM offline identifiers for supercells.
Definition: LArEM_SuperCell_ID.h:122
CaloCell_SuperCell_ID
Helper class for offline supercell identifiers.
Definition: CaloCell_SuperCell_ID.h:48
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
GET_HELPER
#define GET_HELPER(TYPE, HELPER)
LArMiniFCAL_ID
Helper class for LArMiniFCAL offline identifiers.
Definition: LArMiniFCAL_ID.h:57
LArHEC_SuperCell_ID
Helper class for LArHEC offline identifiers for supercells.
Definition: LArHEC_SuperCell_ID.h:59