ATLAS Offline Software
Loading...
Searching...
No Matches
VP1EventProd.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// Header file for class VP1Alg //
8// //
9// update: Riccardo-Maria BIANCHI <rbianchi@cern.ch> //
10// 23 May 2014 //
11// //
12// This is the Athena algorithm starting the production //
13// of event files for VP1 Live, the online 3D event //
14// display at P1.
15//
16// Major updates:
17// - 2022 Apr, Riccardo Maria BIANCHI <riccardo.maria.bianchi@cern.ch>
18// Fixed the bug with large event numbers, moving to 'unsigned long long'
19//
21
22#ifndef VP1ALGS_VP1EVENTPROD
23#define VP1ALGS_VP1EVENTPROD
24
26#include "GaudiKernel/IIncidentListener.h"
27#include "GaudiKernel/ServiceHandle.h"
29
30#include <string>
31
33 public IIncidentListener
34{
35 public:
36 VP1EventProd(const std::string& name, ISvcLocator* pSvcLocator);
38
39 StatusCode initialize();
40 StatusCode execute();
41 StatusCode finalize();
42
43 void handle(const Incident& inc);
44
45 private:
46
47 Gaudi::Property<bool> m_isOnline {this, "IsOnline", false, "If running at point 1"};
48 ServiceHandle<IOnlineEventDisplaysSvc> m_onlineEDsvc{this, "OnlineEventDisplaysSvc", "Online Event Displays Service"};
49
50 // run/event number to be used in the vp1 event file name
51 unsigned long m_runNumber;
52 unsigned long long m_eventNumber;
53
54 unsigned long m_timeStamp;
55 std::string m_humanTimestamp;
56 std::string m_outputFileType;
58
59 // properties
60 std::string m_inputPoolFile;
61 std::string m_destinationDir;
64 int m_nEvent; // Internal counter for the number of processed events
65};
66
67#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
unsigned long long m_eventNumber
StatusCode finalize()
ServiceHandle< IOnlineEventDisplaysSvc > m_onlineEDsvc
StatusCode execute()
std::string m_destinationDir
StatusCode initialize()
std::string m_outputFileType
std::string m_humanTimestamp
VP1EventProd(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_inputPoolFile
unsigned long m_runNumber
Gaudi::Property< bool > m_isOnline
bool m_createDestinationDir
void handle(const Incident &inc)
bool m_removeTempInputFiles
unsigned long m_timeStamp
int m_maxProducedFiles