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

XMLFile Class Reference

This class provides an interface between reconstruction and the event display. More...

#include <XMLFile.h>

List of all members.

Public Member Functions

 XMLFile (char *filename="test.xml")
 Constructor for intialization, opens the file and writes its header.
 ~XMLFile ()
 Destructor: writes the trailer and closes the file.
void BeginEvent (int L1ID)
 Makes an event entry, consisting of a header with the L1ID.
void EndEvent ()
 Ends the event structure.
void WriteHit (CSCHit *hit, char *title)
 Writes hit parameters to the file.


Detailed Description

This class provides an interface between reconstruction and the event display.

CSCHit objects can be written to a XML file which can be displayed together with the raw data in the event display.

The constructor opens the file for writing and the destructor closes it. Each hit must be inside an event record, so BeginEvent() has to be called before WriteHit(). At the end of the event, EndEvent() must be called to close the open event structure.

Todo:
The event display needs to parse and display these XML files.


Constructor & Destructor Documentation

XMLFile::XMLFile char *  filename = "test.xml"  ) 
 

Constructor for intialization, opens the file and writes its header.

Parameters:
filename the name of the file to be written.


Member Function Documentation

void XMLFile::BeginEvent int  L1ID  ) 
 

Makes an event entry, consisting of a header with the L1ID.

This should be followed by calls to WriteHit() before a call to EndEvent() closes the event structure.

Parameters:
L1ID the event number.

void XMLFile::WriteHit CSCHit hit,
char *  title
 

Writes hit parameters to the file.

Parameters:
hit a pointer to the hit to be written.
title a string describing the hit, such as "Hit 6", or "Bad Hit", or "Missing Hit"


The documentation for this class was generated from the following files:
Generated on Wed Oct 29 10:35:18 2008 for CSCRead by  doxygen 1.3.9.1