ATLAS Offline Software
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 
27 McCnvSvc::McCnvSvc(const std::string& name, ISvcLocator* svc)
28  : ConversionSvc( name, svc, repSvcType())
29 { }
30 
33 }
34 
38  return status;
39 }
40 
42 StatusCode 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 
50 long
52  return storageType();
53 }
54 
55 long
57  return 0x10;
58 }
AthCheckMacros.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
McCnvSvc::storageType
static long storageType()
storage type
Definition: McCnvSvc.cxx:56
McCnvSvc::McCnvSvc
McCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: McCnvSvc.cxx:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
McCnvSvc.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
McCnvSvc::~McCnvSvc
virtual ~McCnvSvc()
Standard Destructor.
Definition: McCnvSvc.cxx:32
McCnvSvc::repSvcType
virtual long repSvcType() const
Definition: McCnvSvc.cxx:51
McCnvSvc::updateServiceState
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
Definition: McCnvSvc.cxx:42
merge.status
status
Definition: merge.py:17
McCnvSvc::initialize
virtual StatusCode initialize()
Initialize the service.
Definition: McCnvSvc.cxx:36