ATLAS Offline Software
Loading...
Searching...
No Matches
VP1EvtsOnServerInfo.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
7// //
8// Header file for class VP1EvtsOnServerInfo //
9// //
10// Description: Class for parsing the fileinfo.txt file //
11// from the http directory where event files //
12// from point 1 are available //
13// //
14// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
15// Initial version: May 2008 //
16// //
18
19#ifndef VP1EVTSONSERVERINFO_H
20#define VP1EVTSONSERVERINFO_H
21
22#include <QString>
23#include <QStringList>
24#include "VP1Gui/VP1EventFile.h"
25
27public:
28
29 VP1EvtsOnServerInfo(const QString& infofile);//the fileinfo.txt file from the server
31
32 bool isValid() const;//Check if infofile parsed succesfully.
33 const QString& error() const;//When !isValid, this gives an explanation.
34
35 QStringList print() const;
36
37 //Access the results:
38 unsigned long long numberOfEvents() const;
40 QList<VP1EventFile> events(int timecut = -1, bool requireNewestRunNumber = false ) const;
41 //Returns events in order of increasing time.
42 //
43 // * If timecut>0, only events within timecut seconds of newest
44 // event will be in list.
45 // * If requireNewestRunNumber is set, only events with same run
46 // number as the newest event will be in the list.
47
48private:
49
52
53 class Imp;
55
56};
57
58#endif
unsigned long long numberOfEvents() const
VP1EventFile newestEvent() const
VP1EvtsOnServerInfo(const VP1EvtsOnServerInfo &)
const QString & error() const
VP1EvtsOnServerInfo & operator=(const VP1EvtsOnServerInfo &)
QStringList print() const
VP1EvtsOnServerInfo(const QString &infofile)
QList< VP1EventFile > events(int timecut=-1, bool requireNewestRunNumber=false) const