ATLAS Offline Software
Loading...
Searching...
No Matches
McCnvSvc.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5//====================================================================
6// McCnvSvc.cxx
7//--------------------------------------------------------------------
8//
9// Package : McEventSelector
10//
11// Author : M. Shapiro, copied from Paolo Calafiura
12// History : Updated for Gaudi 0.9 (April 2002) Ian Hinchliffe (thanks to Steve Eckmann)
13
14// Include files
15#include <iostream>
16#include "GaudiKernel/GenericAddress.h"
17#include "GaudiKernel/MsgStream.h"
18#include "GaudiKernel/ISvcLocator.h"
19#include "GaudiKernel/IConversionSvc.h"
20
23
24//External definitions
25
27McCnvSvc::McCnvSvc(const std::string& name, ISvcLocator* svc)
28 : ConversionSvc( name, svc, repSvcType())
29{ }
30
34
37 StatusCode status = ConversionSvc::initialize();
38 return status;
39}
40
42StatusCode McCnvSvc::updateServiceState(IOpaqueAddress* pAddress) {
43 if ( pAddress != nullptr) {
44 ATH_CHECK( dynamic_cast<GenericAddress*>(pAddress)!=nullptr );
45 return StatusCode::SUCCESS;
46 }
47 return StatusCode::FAILURE;
48}
49
50long
52 return storageType();
53}
54
55long
57 return 0x10;
58}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
Definition McCnvSvc.cxx:42
static long storageType()
storage type
Definition McCnvSvc.cxx:56
virtual long repSvcType() const
Definition McCnvSvc.cxx:51
virtual StatusCode initialize()
Initialize the service.
Definition McCnvSvc.cxx:36
virtual ~McCnvSvc()
Standard Destructor.
Definition McCnvSvc.cxx:32
McCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition McCnvSvc.cxx:27