ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
McEventSelector
src
McCnvSvc.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 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
21
#include "
AthenaBaseComps/AthCheckMacros.h
"
22
#include "
McEventSelector/McCnvSvc.h
"
23
24
//External definitions
25
27
McCnvSvc::McCnvSvc
(
const
std::string& name, ISvcLocator* svc)
28
: ConversionSvc( name, svc,
storageType
() )
29
{ }
30
32
McCnvSvc::~McCnvSvc
() {
33
}
34
36
StatusCode
McCnvSvc::initialize
() {
37
StatusCode status = ConversionSvc::initialize();
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
51
McCnvSvc::repSvcType
()
const
{
52
return
storageType
();
53
}
54
55
long
56
McCnvSvc::storageType
() {
57
return
0x10;
58
}
AthCheckMacros.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
McCnvSvc.h
McCnvSvc::updateServiceState
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
Definition
McCnvSvc.cxx:42
McCnvSvc::storageType
static long storageType()
storage type
Definition
McCnvSvc.cxx:56
McCnvSvc::repSvcType
virtual long repSvcType() const
Definition
McCnvSvc.cxx:51
McCnvSvc::initialize
virtual StatusCode initialize()
Initialize the service.
Definition
McCnvSvc.cxx:36
McCnvSvc::~McCnvSvc
virtual ~McCnvSvc()
Standard Destructor.
Definition
McCnvSvc.cxx:32
McCnvSvc::McCnvSvc
McCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition
McCnvSvc.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0