ATLAS Offline Software
Loading...
Searching...
No Matches
VP1Gui.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// Header file for class VP1Gui //
8// //
9// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10// //
11// Initial version: April 2007 //
12// //
14
15#ifndef VP1GUI_H
16#define VP1GUI_H
17
18//NB: There should never be any Qt (or Athena of course) includes in this file!!!
19
20#include <string>
21#include <vector>
22#include <cstdint> // for uint64_t (unsigned long long)
23
24class StoreGateSvc;
25class IToolSvc;
26class ISvcLocator;
27
28class VP1Gui {
29public:
30
31 VP1Gui(StoreGateSvc* sg, StoreGateSvc* detstore,
32 ISvcLocator* svclocator,IToolSvc*toolSvc,
33 const std::vector<std::string>& initialvp1files=std::vector<std::string>(),
34 const std::string& initialCruiseMode = "NONE", unsigned initialCruiseSeconds = 10,
35 const std::string& singleEventSource = "", const std::string& singleEventLocalTmpDir = "",
36 unsigned localFileCacheLimit = 10,
37 const std::vector<std::string>& availableLocalInputDirectories = std::vector<std::string>() );
38 ~VP1Gui();
39
40 //We can check the validity of the argument already during algorithm initialise:
41 bool argumentsAreValid() const;
42
43 //Called in the first algorithm refresh to launch the gui:
44 void init();
45 bool hasBeenInitialised();
46
47 //Called every algorithm refresh:
48 bool executeNewEvent( const int& run,
49 const uint64_t & event,
50 const unsigned& triggerType = 0,//When available
51 const unsigned& time = 0 //When available (seconds since 1970)
52 );
53 //Called in algorithm finalise:
54 void cleanup();
55
56 std::vector<std::string> userRequestedFiles();
57
58 //Called when handling end-of-file incident (in multi-file mode)
59 std::string nextRequestedEventFile() const;//When mode where next input
60 //file is chosen dynamically,
61 //the choice is reported
62 //here. If empty is returned,
63 //the algorithm is expected to
64 //just take the latest file
65 //from the directory.
66private:
67
68 VP1Gui(const VP1Gui & );
70
71 class Imp;
73
74};
75
76#endif
The Athena Transient Store API.
bool argumentsAreValid() const
Definition VP1Gui.cxx:92
VP1Gui & operator=(const VP1Gui &)
std::string nextRequestedEventFile() const
Definition VP1Gui.cxx:231
std::vector< std::string > userRequestedFiles()
Definition VP1Gui.cxx:237
VP1Gui(const VP1Gui &)
void init()
Definition VP1Gui.cxx:181
VP1Gui(StoreGateSvc *sg, StoreGateSvc *detstore, ISvcLocator *svclocator, IToolSvc *toolSvc, const std::vector< std::string > &initialvp1files=std::vector< std::string >(), const std::string &initialCruiseMode="NONE", unsigned initialCruiseSeconds=10, const std::string &singleEventSource="", const std::string &singleEventLocalTmpDir="", unsigned localFileCacheLimit=10, const std::vector< std::string > &availableLocalInputDirectories=std::vector< std::string >())
Definition VP1Gui.cxx:56
~VP1Gui()
Definition VP1Gui.cxx:86
bool hasBeenInitialised()
Definition VP1Gui.cxx:175
void cleanup()
Definition VP1Gui.cxx:205
bool executeNewEvent(const int &run, const uint64_t &event, const unsigned &triggerType=0, const unsigned &time=0)
Definition VP1Gui.cxx:212
Imp * m_d
Definition VP1Gui.h:72
Definition run.py:1