ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1AlgsBatch
src
VP1BatchOnLatestEvent.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// //
7
// Header file for class VP1BatchOnLatestEvent //
8
// //
9
// Riccardo-Maria BIANCHI <rbianchi@cern.ch> //
10
// 11 Mar 2015 //
11
// //
12
// This is the Athena algorithm to launch VP1 in //
13
// batch-mode, to automatically create 3D event //
14
// displays on-the-fly. //
15
// //
17
18
#ifndef VP1ALGSBATCH_VP1BATCHONLATESTEVENT
19
#define VP1ALGSBATCH_VP1BATCHONLATESTEVENT
20
21
#include "
AthenaBaseComps/AthAlgorithm.h
"
22
#include "GaudiKernel/IIncidentListener.h"
23
#include "
StoreGate/ReadHandleKey.h
"
24
#include "
xAODEventInfo/EventInfo.h
"
25
#include <string>
26
27
class
VP1BatchOnLatestEvent
final:
public
AthAlgorithm
,
28
public
IIncidentListener
29
{
30
public
:
31
VP1BatchOnLatestEvent
(
const
std::string& name, ISvcLocator* pSvcLocator);
32
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
35
virtual
StatusCode
finalize
()
override
;
36
37
virtual
void
handle
(
const
Incident& inc)
override
;
38
39
40
private
:
41
std::string
getRandomConfigFile
();
42
void
overlayATLASlogo
();
43
void
overlayEventDetails
();
44
void
getHumanReadableTimestamp
();
45
void
makeEventDisplay
();
46
47
// run/event number to be used in the vp1 event file name
48
// int m_runNumber;
49
// int m_eventNumber;
50
// unsigned int m_timeStamp;
51
// std::string m_humanTimestamp;
52
53
// properties
54
std::string
m_inputVP1CfgFile
;
55
std::string
m_inputDir
;
56
std::string
m_destinationDir
;
57
bool
m_isGetRandomFile
;
58
59
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"EventInfo"
,
"EventInfo"
,
"EventInfo Key"
};
60
61
// int m_maxProducedFiles;
62
int
m_nEvent
;
// Internal counter for the number of processed events
63
int
m_indexFile
;
64
int
m_lastIndexFile
;
65
66
uint64_t
m_eventNumber
= 0;
67
unsigned
long
m_runNumber
= 0;
68
unsigned
long
m_timeStamp
= 0;
69
std::string
m_humanTimestamp
;
70
};
71
72
#endif
AthAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
VP1BatchOnLatestEvent::m_nEvent
int m_nEvent
Definition
VP1BatchOnLatestEvent.h:62
VP1BatchOnLatestEvent::m_lastIndexFile
int m_lastIndexFile
Definition
VP1BatchOnLatestEvent.h:64
VP1BatchOnLatestEvent::overlayEventDetails
void overlayEventDetails()
Definition
VP1BatchOnLatestEvent.cxx:219
VP1BatchOnLatestEvent::overlayATLASlogo
void overlayATLASlogo()
Definition
VP1BatchOnLatestEvent.cxx:202
VP1BatchOnLatestEvent::m_eventNumber
uint64_t m_eventNumber
Definition
VP1BatchOnLatestEvent.h:66
VP1BatchOnLatestEvent::m_indexFile
int m_indexFile
Definition
VP1BatchOnLatestEvent.h:63
VP1BatchOnLatestEvent::getHumanReadableTimestamp
void getHumanReadableTimestamp()
Definition
VP1BatchOnLatestEvent.cxx:278
VP1BatchOnLatestEvent::VP1BatchOnLatestEvent
VP1BatchOnLatestEvent(const std::string &name, ISvcLocator *pSvcLocator)
Definition
VP1BatchOnLatestEvent.cxx:28
VP1BatchOnLatestEvent::getRandomConfigFile
std::string getRandomConfigFile()
Definition
VP1BatchOnLatestEvent.cxx:159
VP1BatchOnLatestEvent::m_inputDir
std::string m_inputDir
Definition
VP1BatchOnLatestEvent.h:55
VP1BatchOnLatestEvent::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
VP1BatchOnLatestEvent.h:59
VP1BatchOnLatestEvent::m_isGetRandomFile
bool m_isGetRandomFile
Definition
VP1BatchOnLatestEvent.h:57
VP1BatchOnLatestEvent::m_destinationDir
std::string m_destinationDir
Definition
VP1BatchOnLatestEvent.h:56
VP1BatchOnLatestEvent::m_timeStamp
unsigned long m_timeStamp
Definition
VP1BatchOnLatestEvent.h:68
VP1BatchOnLatestEvent::initialize
virtual StatusCode initialize() override
Definition
VP1BatchOnLatestEvent.cxx:43
VP1BatchOnLatestEvent::handle
virtual void handle(const Incident &inc) override
Definition
VP1BatchOnLatestEvent.cxx:106
VP1BatchOnLatestEvent::m_runNumber
unsigned long m_runNumber
Definition
VP1BatchOnLatestEvent.h:67
VP1BatchOnLatestEvent::m_humanTimestamp
std::string m_humanTimestamp
Definition
VP1BatchOnLatestEvent.h:69
VP1BatchOnLatestEvent::makeEventDisplay
void makeEventDisplay()
Definition
VP1BatchOnLatestEvent.cxx:119
VP1BatchOnLatestEvent::finalize
virtual StatusCode finalize() override
Definition
VP1BatchOnLatestEvent.cxx:93
VP1BatchOnLatestEvent::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
VP1BatchOnLatestEvent.cxx:53
VP1BatchOnLatestEvent::m_inputVP1CfgFile
std::string m_inputVP1CfgFile
Definition
VP1BatchOnLatestEvent.h:54
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0