BMFileSummaryFiller.cxx File Reference

#include "BMFileSummaryFiller.h"
#include <BeamDataUtil/BeamMonFileSummary.h>
#include <BeamDataUtil/BDScalar.h>
#include <MessageService/MsgService.h>
#include <DatabaseInterface/DbiWriter.h>
#include <DatabaseInterface/DbiWriter.tpl>
#include <TFile.h>
#include <TSystem.h>
#include <TROOT.h>
#include <string>

Go to the source code of this file.

Functions

 CVSID ("$Id: BMFileSummaryFiller.cxx,v 1.6 2006/04/19 20:58:05 rhatcher Exp $")
static TFile * find_tfile (const char *filename)

Function Documentation

CVSID ( "$Id: BMFileSummaryFiller.  cxx,
v 1.6 2006/04/19 20:58:05 rhatcher Exp $"   
)
static TFile* find_tfile ( const char *  filename  )  [static]

Definition at line 42 of file BMFileSummaryFiller.cxx.

References files, and gSystem().

Referenced by BMFileSummaryFiller::NewFile().

00043 {
00044     string base_name = gSystem->BaseName(filename);
00045     TSeqCollection* files = gROOT->GetListOfFiles();
00046     TIter fitr(files);
00047     TFile* file=0;
00048     while ( ( file = (TFile*)fitr.Next() ) ) {
00049         string this_name = gSystem->BaseName(file->GetName());
00050         if (this_name == base_name) return file;
00051     }
00052     return 0;
00053 }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1