QGFileHandler Class Reference

Inheritance diagram for QGFileHandler:

QIGUIFileHandler

List of all members.


Detailed Description

Class to handle ROOT files.

Author:
Adam Bryant (adam_bryant@berkeley.edu)

Public Member Functions

 QGFileHandler ()
 Constructor.
virtual ~QGFileHandler ()
 Destructor.
bool CheckForModifiedFiles ()
 Check whether any open file has been modified.
void CloseFiles ()
 Close all open files, empty the chain.
const QBaseEventR * GetEvent (const Long64_t eventNumber)
 Get an event.
TEventList GetEventList (TCut cuts)
 Get an event list containing the events passing a cut.
std::vector< std::string > GetFilenames ()
 Get a vector containing the names of the open files.
const QSampleInfoRGetMasterSample (const Long64_t eventNumber)
 Get master sample of an event.
const QVectorRGetPulse (const Long64_t eventNumber)
 Get the pulse of an event.
const QRunDataRGetRunData (const Long64_t eventNumber)
 Get the run data for an event.
QChain * GetQChain ()
 Get a pointer to the chian.
std::set< std::string > GetSetOfAliases ()
 Get the aliases defined in the tree.
std::set< std::string > GetSetOfLeaves ()
 Get the names of the leaves of the tree.
const std::vector< QSampleInfoR > & GetSignificantSamples (const Long64_t eventNumber)
 Get significant samples of an event.
std::string GetTreeClass ()
 Get the class name of the tree.
bool IsFileOpen ()
 Check whether a file is open.
void ListOpenFiles ()
 Print a list of open files to the console.
void OpenFile ()
 Pop up a file open dialog.
void OpenFile (std::string filename)
 Open a new file, add it to the chain.
void OpenFiles (const std::vector< std::string > &files)
 Open files, add them to the chain.
void ParseFileList (const std::string &filename)
 Parse file list.

Protected Member Functions

time_t ModificationTime (const std::string &filename)
 Return modification time of file.
void ReopenFiles ()
 Reopen files.
void SetLowestStartTimeUnix (const std::string &treeName)
 Set LowestStartTimeUnix alias.
void SetUpChain ()
 Set up the chain.
void SetUpNumericTypes ()
 Specify the numeric data types.

Protected Attributes

std::string fDataDirectory
 Directory containing data files.
TEventList fEventList
 Event list.
TFile * fFile
 ROOT file.
std::vector< std::string > fFilenames
 Filenames.
bool fFileOpen
 File open flag.
double fLowestStartTimeUnix
 Lowest StartTimeUnix of open files.
std::map< std::string, time_t > fModificationTime
 Modification times of every open file.
std::set< std::string > fNumericTypes
 Collection of numeric data types.
QVectorR fPulse
 Default (empty) pulse, for use when opening a non-Diana file.
QBaseEventR * fQBaseEvent
 QBaseEvent.
QChain * fQChain
 QChain.
std::string fTreeClass
 Name of tree's class.

The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6