ATLAS Offline Software
Loading...
Searching...
No Matches
OnlineEventDisplaysSvc.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ONLINEEVENTDISPLAYSSVC_H
6#define ONLINEEVENTDISPLAYSSVC_H
7
10#include "GaudiKernel/IIncidentListener.h"
13
14
15
16class OnlineEventDisplaysSvc : public extends<AthService,
17 IOnlineEventDisplaysSvc,
18 IIncidentListener> {
19public:
20
21 OnlineEventDisplaysSvc( const std::string& name, ISvcLocator* pSvcLocator );
22
23 StatusCode initialize() override;
24 StatusCode finalize() override;
25 void beginEvent();
26 void endEvent();
27 void handle(const Incident& incident ) override;
28 void createWriteableDir(const std::string& directory, gid_t zpgid);
30 std::string getFileNamePrefix() override;
31 std::string getEntireOutputStr() override;
32 std::string getStreamName() override;
33
34private:
36 SG::ReadHandleKey<xAOD::EventInfo> m_evt{this, "EventInfo", "EventInfo", "Input event information"};
37 Gaudi::Property<std::string> m_outputDirectory {this, "OutputDirectory", "/atlas/EventDisplayEvents", "Output Directory"};
38 Gaudi::Property<std::vector<std::string>> m_streamsWanted {this, "StreamsWanted", {}, "Desired trigger streams"};
39 Gaudi::Property<std::vector<std::string>> m_publicStreams {this, "PublicStreams", {}, "Streams that can be seen by the public"};
40 Gaudi::Property<std::string> m_projectTag {this, "ProjectTag", "", "Is needed to add streams to the Public trigger streams"};
41 Gaudi::Property<bool> m_BeamSplash {this, "BeamSplash", false, "Is a beam splash event"};
42 Gaudi::Property<bool> m_CheckPair {this, "CheckPair", false, "Check for matching ESD and JiveXML files"};
43 Gaudi::Property<int> m_maxEvents {this, "MaxEvents", 200, "Number of events to keep per stream"};
44 std::string m_FileNamePrefix = "JiveXML";
45 std::string m_outputStreamDir = ".Unknown";
46 std::string m_entireOutputStr = ".";
49
50};
51
52#endif
Handle class for reading from StoreGate.
Gaudi::Property< std::vector< std::string > > m_streamsWanted
void createWriteableDir(const std::string &directory, gid_t zpgid)
OnlineEventDisplaysSvc(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_outputDirectory
void handle(const Incident &incident) override
SG::ReadHandleKey< xAOD::EventInfo > m_evt
std::string getEntireOutputStr() override
Gaudi::Property< std::vector< std::string > > m_publicStreams
Gaudi::Property< std::string > m_projectTag
std::string getStreamName() override
Gaudi::Property< bool > m_CheckPair
Gaudi::Property< int > m_maxEvents
Gaudi::Property< bool > m_BeamSplash
std::string getFileNamePrefix() override
StatusCode initialize() override
Property holding a SG store/key/clid from which a ReadHandle is made.