|
ATLAS Offline Software
|
#include <VP1AvailEvtsLocalDir.h>
Definition at line 24 of file VP1AvailEvtsLocalDir.h.
◆ VP1AvailEvtsLocalDir()
VP1AvailEvtsLocalDir::VP1AvailEvtsLocalDir |
( |
int |
timeCutForNew, |
|
|
const QString & |
sourcedir, |
|
|
const QString & |
tmpcopydir, |
|
|
int |
maxLocalFilesToKeep = -1 , |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~VP1AvailEvtsLocalDir()
VP1AvailEvtsLocalDir::~VP1AvailEvtsLocalDir |
( |
| ) |
|
|
virtual |
◆ actualCheckForEventListChanges
void VP1AvailEvents::actualCheckForEventListChanges |
( |
| ) |
|
|
privateslotinherited |
◆ actualCleanup
void VP1AvailEvents::actualCleanup |
( |
| ) |
|
|
privateslotinherited |
◆ allEventFilesInDir()
QList< VP1EventFile > VP1AvailEvents::allEventFilesInDir |
( |
const QString & |
dir | ) |
const |
|
protectedinherited |
Definition at line 202 of file VP1AvailEvents.cxx.
205 return QList<VP1EventFile>();
207 QFileInfo fi_dir(
dir);
208 if (!fi_dir.exists()||!fi_dir.isDir())
209 return QList<VP1EventFile>();
211 QDateTime modtime = fi_dir.lastModified();
212 if (abs(modtime.time().msecsTo(QTime::currentTime()))>50) {
215 return it->second.second;
219 filters <<
"*_*.pool.root";
221 QDirIterator itDir(
dir,filters,
QDir::Files | QDir::NoDotAndDotDot | QDir::Readable | QDir::CaseSensitive);
223 QList<VP1EventFile>
l;
224 while (itDir.hasNext()) {
225 QString
fn = itDir.next();
226 fn.replace(
"//",
"/");
231 message(
"Could not decode event file name: "+
fn);
◆ allLocalEvents()
QList< VP1EventFile > VP1AvailEvents::allLocalEvents |
( |
| ) |
const |
|
inherited |
◆ allLocalEventsChanged
void VP1AvailEvents::allLocalEventsChanged |
( |
| ) |
|
|
signalinherited |
◆ availableSourceDirectories()
const QStringList & VP1AvailEvtsLocalDir::availableSourceDirectories |
( |
| ) |
const |
◆ cleanupAndCheckForEventListChanges()
void VP1AvailEvents::cleanupAndCheckForEventListChanges |
( |
| ) |
|
|
protectedinherited |
◆ currentSourceDir()
const QString & VP1AvailEvtsLocalDir::currentSourceDir |
( |
| ) |
const |
◆ freshEvents() [1/2]
◆ freshEvents() [2/2]
◆ freshEventsChanged
void VP1AvailEvents::freshEventsChanged |
( |
| ) |
|
|
signalinherited |
◆ inHistory()
bool VP1AvailEvents::inHistory |
( |
int |
run, |
|
|
int |
event |
|
) |
| const |
|
protectedinherited |
◆ init()
void VP1AvailEvtsLocalDir::init |
( |
| ) |
|
|
virtual |
◆ invalidateDirCache()
void VP1AvailEvents::invalidateDirCache |
( |
const QString & |
dir | ) |
|
|
protectedinherited |
◆ isConsideredFresh()
◆ maxLocalFilesToKeep()
int VP1AvailEvents::maxLocalFilesToKeep |
( |
| ) |
const |
|
inherited |
◆ message
void VP1AvailEvents::message |
( |
const QString & |
| ) |
const |
|
signalinherited |
◆ messageDebug()
void VP1AvailEvents::messageDebug |
( |
const QString & |
s | ) |
const |
|
protectedinherited |
◆ newestEvent()
◆ requireNewestRunNumber()
bool VP1AvailEvents::requireNewestRunNumber |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ setAvailableSourceDirectories()
void VP1AvailEvtsLocalDir::setAvailableSourceDirectories |
( |
const QStringList & |
l | ) |
|
◆ setCurrentEvent()
void VP1AvailEvents::setCurrentEvent |
( |
int |
run, |
|
|
int |
event |
|
) |
| |
|
inherited |
◆ setSourceDir()
void VP1AvailEvtsLocalDir::setSourceDir |
( |
const QString & |
dir | ) |
|
◆ timeCutForNew()
int VP1AvailEvents::timeCutForNew |
( |
| ) |
const |
|
protectedinherited |
◆ tmpActiveRetrievalDir()
QString VP1AvailEvents::tmpActiveRetrievalDir |
( |
| ) |
|
|
protectedinherited |
◆ tmpDir()
const QString & VP1AvailEvents::tmpDir |
( |
| ) |
const |
|
protectedinherited |
◆ tmpLocalFileDir()
QString VP1AvailEvents::tmpLocalFileDir |
( |
| ) |
const |
|
protectedinherited |
◆ VP1LocalEvtRetriever
◆ m_d
Imp* VP1AvailEvtsLocalDir::m_d |
|
private |
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
QString tmpLocalFileDir() const
void actualCheckForEventListChanges()
QStringList availablesourcedirs
QList< VP1EventFile > allLocalEvents() const
void allLocalEventsChanged()
void freshEventsChanged()
void message(const QString &) const
QList< VP1EventFile > freshEvents() const
VP1AvailEvents(int timeCutForNew, const QString &tmpdir, int maxLocalFilesToKeep=-1, QObject *parent=0)
VP1EventFile newestEvent() const
POOL::TEvent event(POOL::TEvent::kClassAccess)
void cleanupTmpLocalFiles()
int timeCutForNew() const
bool requireNewestRunNumber() const
QList< EventID > historyOrdered
QString tmpActiveRetrievalDir
void setSourceDir(QString)
std::set< EventID > historySorted
int maxLocalFilesToKeep() const
static const char * prefix_verbose()
VP1LocalEvtRetriever * retriever
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
QList< VP1EventFile > lastFresh
QList< VP1EventFile > allEventFilesInDir(const QString &dir) const
QList< VP1EventFile > lastAllLocal
static EventID evtToID(const VP1EventFile &evt)
bool isConsideredFresh(const VP1EventFile &evt, const VP1EventFile &newestEvt) const
QString attemptGenerationOfTmpSubdir(const QString &preferredname, QString &cachevar)
std::map< QString, std::pair< QDateTime, QList< VP1EventFile > > > dircache
friend class VP1LocalEvtRetriever