ATLAS Offline Software
Control
AthenaServices
src
AthenaConditionStream.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// ====================================================================
6
// AthenaConditionStream.cxx
7
// --------------------------------------------------------------------
8
//
9
// Package : AthenaServices
10
//
11
// Author : SR: for use in non-Event stores
12
//
13
// ====================================================================
14
// STL include files
15
#include <iostream>
16
#include <string>
17
18
// Framework include files
19
#include "
StoreGate/StoreGateSvc.h
"
20
#include "GaudiKernel/MsgStream.h"
21
#include "GaudiKernel/ISvcLocator.h"
22
#include "
AthenaConditionStream.h
"
23
24
typedef
ServiceHandle<StoreGateSvc>
StoreGateSvc_t
;
25
26
// Standard Constructor
27
AthenaConditionStream::AthenaConditionStream
(
const
std::string&
name
,
28
ISvcLocator* pSvcLocator)
29
:
AthenaOutputStream
(
name
, pSvcLocator)
30
{
31
//bool retrieve = false;
32
evtStore().setName (
"ConditionStore"
);
33
}
34
35
// Standard Destructor
36
AthenaConditionStream::~AthenaConditionStream
() { }
37
38
// terminate data writer
39
StatusCode
AthenaConditionStream::finalize
()
40
{
41
// call regular execute to write out events:
42
StatusCode
status
=
AthenaOutputStream::execute
();
43
44
// summary message:
45
ATH_MSG_INFO
(
"Events output: "
<<
m_events
);
46
47
return
(
status
);
48
}
49
50
StatusCode
AthenaConditionStream::execute
()
51
{
52
// overloaded to do nothing (called every event)
53
return
StatusCode::SUCCESS;
54
}
55
AthenaConditionStream::finalize
virtual StatusCode finalize()
Terminate OutputStream.
Definition:
AthenaConditionStream.cxx:39
AthenaConditionStream::~AthenaConditionStream
virtual ~AthenaConditionStream()
Standard Destructor.
Definition:
AthenaConditionStream.cxx:36
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
AthenaConditionStream::AthenaConditionStream
AthenaConditionStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Definition:
AthenaConditionStream.cxx:27
StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition:
AthenaConditionStream.cxx:24
AthenaConditionStream::execute
virtual StatusCode execute()
Working entry point.
Definition:
AthenaConditionStream.cxx:50
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthenaConditionStream.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
AthenaOutputStream::m_events
std::atomic< int > m_events
Number of events written to this output stream.
Definition:
AthenaOutputStream.h:127
AthenaOutputStream
algorithm that marks for write data objects in SG
Definition:
AthenaOutputStream.h:55
AthenaOutputStream::execute
virtual StatusCode execute() override
Definition:
AthenaOutputStream.cxx:559
merge.status
status
Definition:
merge.py:17
StoreGateSvc.h
ServiceHandle< StoreGateSvc >
Generated on Thu Nov 7 2024 21:10:19 for ATLAS Offline Software by
1.8.18