#include <XMLFile.h>
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. | |
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.
|
|
Constructor for intialization, opens the file and writes its header.
|
|
|
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.
|
|
||||||||||||
|
Writes hit parameters to the file.
|
1.3.9.1