Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

makeDragonTree.cxx File Reference

#include <iostream>
#include <iomanip>
#include <string>
#include <getopt.h>
#include "TDragonRun.h"
#include "TMidasEvent.h"
#include "TDragonEvent.h"
#include "TScalerEvent.h"
#include "TEpicsEvent.h"

Include dependency graph for makeDragonTree.cxx:

Go to the source code of this file.

Functions

Int_t main (Int_t argc, Char_t **argv)


Function Documentation

Int_t main Int_t  argc,
Char_t **  argv
 

This is the offline driver function that creates ROOT trees from MIDAS .mid data files. This takes one input - the file to be converted to a ROOT tree.

Parameters:
[in] argc The number of command-line arguments.
[in] argv An array containing command-line arguments.
Returns:
0 if successful, > 0 if there was an error e.g. the return value can be used in a script and enables action to be taken if there was an error converting a batch of files such as incomplete conversion.
Note:
Currently accepted inputs are the input MIDAS file, output ROOT file and database used for obtaining the hardware module slot information.

Definition at line 122 of file makeDragonTree.cxx.

References TMidasEvent::Clear(), TEpicsEvent::Clear(), TScalerEvent::Clear(), TDragonEvent::Clear(), TDragonRun::CloseMidasFile(), TDragonRun::CloseRootFile(), TDragonRun::GetDragonEvent(), TDragonRun::GetEpicsEvent(), TMidasEvent::GetEventId(), TDragonRun::GetMidasEvent(), TDragonRun::GetModules(), TDragonRun::GetScalerEvent(), TMidasEvent::GetSerialNumber(), TDragonRun::OpenMidasFile(), TDragonRun::OpenRootFile(), TMidasEvent::Print(), TDragonRun::ReadMidasEvent(), TDragonRun::SetDatabase(), TDragonRun::SetGrModules(), TDragonRun::SetHiModules(), TDragonRun::TestDragonTree(), TDragonRun::UnpackDragonEvent(), TDragonRun::UnpackEpicsEvent(), TDragonRun::UnpackScalerEvent(), and TDragonRun::WriteTree().

Here is the call graph for this function:


Generated on Mon Jan 8 11:54:32 2007 for DragonRoot by  doxygen 1.3.9.1