ATLAS Offline Software
Loading...
Searching...
No Matches
T_Muon_IDDetDescrCnv.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCNV_T_MUON_IDDETDESCRCNV_H
6#define MUONCNV_T_MUON_IDDETDESCRCNV_H
7
8#include "GaudiKernel/IOpaqueAddress.h"
9#include "GaudiKernel/ISvcLocator.h"
10#include "GaudiKernel/StatusCode.h"
11
15
16
22template <class IDHELPER>
24
25public:
26 T_Muon_IDDetDescrCnv(ISvcLocator* svcloc, const char* name);
27
28 virtual StatusCode initialize() override;
29 virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj) override;
30 virtual long int repSvcType() const override { return storageType(); }
31
32 // Storage type and class ID (used by CnvFactory)
33 static long storageType() { return DetDescr_StorageType; }
34 static const CLID& classID() { return ClassID_traits<IDHELPER>::ID(); }
35};
36
38
39#endif
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
const long DetDescr_StorageType
uint32_t CLID
The Class ID type.
DetDescrConverter(const CLID &myCLID, ISvcLocator *svcloc, const char *name=nullptr)
T_Muon_IDDetDescrCnv(ISvcLocator *svcloc, const char *name)
virtual StatusCode initialize() override
static const CLID & classID()
virtual long int repSvcType() const override
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override