ATLAS Offline Software
VP1AvailEvtsLocalDir.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Implementation of class VP1AvailEvtsLocalDir //
9 // //
10 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
11 // Initial version: May 2008 //
12 // //
14 
16 #include "VP1LocalEvtRetriever.h"
17 
18 #include <QStringList>
19 
20 //____________________________________________________________________
22 public:
23  Imp(const QString& sd) : sourcedir(sd), retriever(0) {}
24  QString sourcedir;
25  static unsigned ntmpdlcount;
26  QStringList availablesourcedirs;
28 };
29 
31 
32 //____________________________________________________________________
34  QString sourcedir,
35  QString tmpcopydir,
36  int maxLocalFilesToKeep,
37  QObject * parent )
38  : VP1AvailEvents(timeCutForNew,tmpcopydir,maxLocalFilesToKeep,parent),
39  m_d(new Imp(sourcedir+(sourcedir.endsWith("/")?"":"/")))
40 {
41 }
42 
43 
44 //____________________________________________________________________
46 {
47  m_d->retriever = new VP1LocalEvtRetriever(this,m_d->sourcedir); // Memleak
48  m_d->retriever->start();
49 }
50 
51 //____________________________________________________________________
53 {
54  delete m_d;
55 }
56 
57 //____________________________________________________________________
59 {
60  return m_d->sourcedir;
61 }
62 
63 //____________________________________________________________________
65 {
67  m_d->sourcedir = dir;
68 }
69 
70 //____________________________________________________________________
72 {
74 }
75 
76 
77 //____________________________________________________________________
79 {
80  return m_d->availablesourcedirs;
81 }
VP1AvailEvtsLocalDir::VP1AvailEvtsLocalDir
VP1AvailEvtsLocalDir(int timeCutForNew, QString sourcedir, QString tmpcopydir, int maxLocalFilesToKeep=-1, QObject *parent=0)
Definition: VP1AvailEvtsLocalDir.cxx:33
VP1LocalEvtRetriever.h
VP1AvailEvtsLocalDir::Imp::availablesourcedirs
QStringList availablesourcedirs
Definition: VP1AvailEvtsLocalDir.cxx:26
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
VP1AvailEvtsLocalDir::Imp::ntmpdlcount
static unsigned ntmpdlcount
Definition: VP1AvailEvtsLocalDir.cxx:25
VP1AvailEvtsLocalDir::availableSourceDirectories
QStringList availableSourceDirectories() const
Definition: VP1AvailEvtsLocalDir.cxx:78
endsWith
bool endsWith(const std::string &value, const std::string &ending)
Definition: EventViewCreatorAlgorithm.cxx:176
python.selector.AtlRunQuerySelectorLhcOlc.sd
sd
Definition: AtlRunQuerySelectorLhcOlc.py:612
VP1AvailEvtsLocalDir::Imp::Imp
Imp(const QString &sd)
Definition: VP1AvailEvtsLocalDir.cxx:23
VP1AvailEvtsLocalDir::Imp
Definition: VP1AvailEvtsLocalDir.cxx:21
VP1AvailEvtsLocalDir::init
virtual void init()
Definition: VP1AvailEvtsLocalDir.cxx:45
VP1AvailEvtsLocalDir.h
VP1AvailEvtsLocalDir::Imp::sourcedir
QString sourcedir
Definition: VP1AvailEvtsLocalDir.cxx:24
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1AvailEvtsLocalDir::m_d
Imp * m_d
Definition: VP1AvailEvtsLocalDir.h:49
beamspotman.dir
string dir
Definition: beamspotman.py:623
VP1LocalEvtRetriever
Definition: VP1LocalEvtRetriever.h:16
VP1LocalEvtRetriever::setSourceDir
void setSourceDir(QString)
Definition: VP1LocalEvtRetriever.cxx:109
VP1AvailEvtsLocalDir::currentSourceDir
QString currentSourceDir() const
Definition: VP1AvailEvtsLocalDir.cxx:58
VP1AvailEvtsLocalDir::setSourceDir
void setSourceDir(QString)
Definition: VP1AvailEvtsLocalDir.cxx:64
VP1AvailEvtsLocalDir::Imp::retriever
VP1LocalEvtRetriever * retriever
Definition: VP1AvailEvtsLocalDir.cxx:27
VP1AvailEvtsLocalDir::setAvailableSourceDirectories
void setAvailableSourceDirectories(QStringList)
Definition: VP1AvailEvtsLocalDir.cxx:71
VP1AvailEvtsLocalDir::~VP1AvailEvtsLocalDir
virtual ~VP1AvailEvtsLocalDir()
Definition: VP1AvailEvtsLocalDir.cxx:52
VP1AvailEvents
Definition: VP1AvailEvents.h:25
VP1AvailEvtsLocalDir::VP1LocalEvtRetriever
friend class VP1LocalEvtRetriever
Definition: VP1AvailEvtsLocalDir.h:30