ATLAS Offline Software
Loading...
Searching...
No Matches
VP1EventFile.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 VP1EventFile //
9// //
10// Description: Class describing single-event files //
11// //
12// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13// Initial version: May 2008 //
14// //
16
17#ifndef VP1EVENTFILE_H
18#define VP1EVENTFILE_H
19
20#include <QString>
21#include <QDateTime>
22
24public:
25 //The interesting bits:
26 //Event identity:
27 int runNumber() const;
28 unsigned long long eventNumber() const;
29 unsigned rawTime() const;
30 QDateTime time() const;
31
32 //Where it is:
33 const QString& fileName() const;//base file name only. No '/' allowed!
34 const QString& md5Sum() const;
35
36 bool isValid() const;//Internally, invalid instances are those with rawTime()==0.
37 QString print() const;
38
39 //The boring bits:
40 VP1EventFile();//constructs invalid instance.
42 bool operator<(const VP1EventFile &) const;//Newer means "smaller".
43 bool operator==(const VP1EventFile &) const;
44 bool operator!=(const VP1EventFile &) const;
45 VP1EventFile(const VP1EventFile & );
47 VP1EventFile(const QString& filename,const QString& md5sum,
48 int runnumber, unsigned long long eventnumber,unsigned time, bool isvalid = true );
49 VP1EventFile(const QString&, const QString& md5sum = 0);//will attempt to decode from file name (e.g. vp1_234_123_1321334.pool.root). Instance becomes invalid if not succesful.
50private:
51 class Imp;
53
54};
55
56#endif
int runNumber() const
QString print() const
QDateTime time() const
unsigned long long eventNumber() const
unsigned rawTime() const
bool operator<(const VP1EventFile &) const
VP1EventFile & operator=(const VP1EventFile &)
const QString & fileName() const
bool isValid() const
bool operator!=(const VP1EventFile &) const
bool operator==(const VP1EventFile &) const
const QString & md5Sum() const
static std::vector< uint32_t > runnumber
Definition iLumiCalc.h:37