ATLAS Offline Software
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 
24 class StoreGateSvc;
25 class IToolSvc;
26 class ISvcLocator;
27 
28 class VP1Gui {
29 public:
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.
66 private:
67 
68  VP1Gui(const VP1Gui & );
69  VP1Gui & operator= (const VP1Gui & );
70 
71  class Imp;
72  Imp * m_d;
73 
74 };
75 
76 #endif
VP1Gui::VP1Gui
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.h:28
VP1Gui::m_d
Imp * m_d
Definition: VP1Gui.h:71
VP1Gui::cleanup
void cleanup()
Definition: VP1Gui.cxx:205
VP1Gui::init
void init()
Definition: VP1Gui.cxx:181
VP1Gui::executeNewEvent
bool executeNewEvent(const int &run, const uint64_t &event, const unsigned &triggerType=0, const unsigned &time=0)
Definition: VP1Gui.cxx:212
VP1Gui::operator=
VP1Gui & operator=(const VP1Gui &)
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
VP1Gui::Imp
Definition: VP1Gui.cxx:29
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
run
Definition: run.py:1
VP1Gui::hasBeenInitialised
bool hasBeenInitialised()
Definition: VP1Gui.cxx:175
VP1Gui::VP1Gui
VP1Gui(const VP1Gui &)
VP1Gui::userRequestedFiles
std::vector< std::string > userRequestedFiles()
Definition: VP1Gui.cxx:237
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
RunTileMonitoring.triggerType
triggerType
Definition: RunTileMonitoring.py:162
VP1Gui::argumentsAreValid
bool argumentsAreValid() const
Definition: VP1Gui.cxx:92
VP1Gui::nextRequestedEventFile
std::string nextRequestedEventFile() const
Definition: VP1Gui.cxx:231
VP1Gui::~VP1Gui
~VP1Gui()
Definition: VP1Gui.cxx:86