ATLAS Offline Software
graphics
VP1
VP1Gui
VP1Gui
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
26
class
VP1EvtsOnServerInfo
{
27
public
:
28
29
VP1EvtsOnServerInfo
(
const
QString& infofile);
//the fileinfo.txt file from the server
30
~VP1EvtsOnServerInfo
();
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
;
39
VP1EventFile
newestEvent
()
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
48
private
:
49
50
VP1EvtsOnServerInfo
(
const
VP1EvtsOnServerInfo
& );
51
VP1EvtsOnServerInfo
&
operator=
(
const
VP1EvtsOnServerInfo
& );
52
53
class
Imp
;
54
Imp
*
m_d
;
55
56
};
57
58
#endif
VP1EvtsOnServerInfo::error
const QString & error() const
Definition:
VP1EvtsOnServerInfo.cxx:59
VP1EvtsOnServerInfo
Definition:
VP1EvtsOnServerInfo.h:26
VP1EvtsOnServerInfo::~VP1EvtsOnServerInfo
~VP1EvtsOnServerInfo()
Definition:
VP1EvtsOnServerInfo.cxx:47
VP1EvtsOnServerInfo::VP1EvtsOnServerInfo
VP1EvtsOnServerInfo(const QString &infofile)
Definition:
VP1EvtsOnServerInfo.cxx:41
VP1EventFile.h
VP1EvtsOnServerInfo::m_d
Imp * m_d
Definition:
VP1EvtsOnServerInfo.h:53
VP1EvtsOnServerInfo::print
QStringList print() const
Definition:
VP1EvtsOnServerInfo.cxx:65
VP1EvtsOnServerInfo::operator=
VP1EvtsOnServerInfo & operator=(const VP1EvtsOnServerInfo &)
VP1EvtsOnServerInfo::isValid
bool isValid() const
Definition:
VP1EvtsOnServerInfo.cxx:53
VP1EventFile
Definition:
VP1EventFile.h:23
VP1EvtsOnServerInfo::Imp
Definition:
VP1EvtsOnServerInfo.cxx:24
VP1EvtsOnServerInfo::newestEvent
VP1EventFile newestEvent() const
Definition:
VP1EvtsOnServerInfo.cxx:235
VP1EvtsOnServerInfo::numberOfEvents
unsigned long long numberOfEvents() const
Definition:
VP1EvtsOnServerInfo.cxx:229
VP1EvtsOnServerInfo::VP1EvtsOnServerInfo
VP1EvtsOnServerInfo(const VP1EvtsOnServerInfo &)
VP1EvtsOnServerInfo::events
QList< VP1EventFile > events(int timecut=-1, bool requireNewestRunNumber=false) const
Definition:
VP1EvtsOnServerInfo.cxx:241
Generated on Mon Dec 23 2024 21:22:49 for ATLAS Offline Software by
1.8.18