ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LumiBlock
LumiBlockComps
src
BunchCrossingCondTest.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef LUMIBLOCKCOMPS_BUNCHCROSSINGCONDTEST_H
8
#define LUMIBLOCKCOMPS_BUNCHCROSSINGCONDTEST_H
9
10
// Gaudi/Athena include(s):
11
#include "GaudiKernel/ToolHandle.h"
12
#include "Gaudi/Property.h"
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
#include "
LumiBlockData/BunchCrossingCondData.h
"
15
16
#include <fstream>
17
18
class
BunchCrossingCondTest
:
public
AthAlgorithm
{
19
20
public
:
22
using
AthAlgorithm::AthAlgorithm
;
23
25
virtual
StatusCode
initialize
();
27
virtual
StatusCode
execute
(
const
EventContext& ctx);
28
29
private
:
31
static
void
printInfo
(
const
BunchCrossingCondData
* bccd,
unsigned
int
bcid, std::ostream& out);
32
33
static
void
printCompactInfo
(
const
BunchCrossingCondData
* bccd,
unsigned
int
bcid, std::ostream& out);
34
35
SG::ReadCondHandleKey<BunchCrossingCondData>
m_inputKey
{
this
,
"InputKey"
,
"BunchCrossingData"
,
""
};
36
37
Gaudi::Property<std::string>
m_fileName
{
this
,
"FileName"
,
""
};
38
39
Gaudi::Property<bool>
m_compact
{
this
,
"compact"
,
false
};
40
41
std::ofstream
m_fileOut
;
42
43
};
44
45
46
47
#endif
AthAlgorithm.h
BunchCrossingCondData.h
Replaces the BunchCrossing AlgTool used in run1/2.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
BunchCrossingCondData
Definition
BunchCrossingCondData.h:23
BunchCrossingCondTest
Definition
BunchCrossingCondTest.h:18
BunchCrossingCondTest::printInfo
static void printInfo(const BunchCrossingCondData *bccd, unsigned int bcid, std::ostream &out)
Function for printing detailed info about a given bunch crossing.
Definition
BunchCrossingCondTest.cxx:57
BunchCrossingCondTest::m_fileName
Gaudi::Property< std::string > m_fileName
Definition
BunchCrossingCondTest.h:37
BunchCrossingCondTest::printCompactInfo
static void printCompactInfo(const BunchCrossingCondData *bccd, unsigned int bcid, std::ostream &out)
Definition
BunchCrossingCondTest.cxx:73
BunchCrossingCondTest::m_inputKey
SG::ReadCondHandleKey< BunchCrossingCondData > m_inputKey
Definition
BunchCrossingCondTest.h:35
BunchCrossingCondTest::m_fileOut
std::ofstream m_fileOut
Definition
BunchCrossingCondTest.h:41
BunchCrossingCondTest::initialize
virtual StatusCode initialize()
Initialization run before the event loop.
Definition
BunchCrossingCondTest.cxx:9
BunchCrossingCondTest::m_compact
Gaudi::Property< bool > m_compact
Definition
BunchCrossingCondTest.h:39
BunchCrossingCondTest::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Regular Athena algorithm constructor.
Definition
AthAlgorithm.cxx:10
BunchCrossingCondTest::execute
virtual StatusCode execute(const EventContext &ctx)
Function called once per event.
Definition
BunchCrossingCondTest.cxx:31
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Generated on
for ATLAS Offline Software by
1.17.0