1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/event/log/LogEvent.h,v $ |
* $Source: /home/cvsmanager/yoda/event/log/LogEvent.h,v $ |
3 |
* $Id: LogEvent.h,v 2.0 2004/09/21 20:50:09 kusanagi Exp $ |
* $Id: LogEvent.h,v 5.1 2006/02/04 12:37:44 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the LogEvent class. |
* Header file for the LogEvent class. |
9 |
#define LOG_EVENT_H |
#define LOG_EVENT_H |
10 |
|
|
11 |
#include <vector> |
#include <vector> |
12 |
#include "event/SubPacket.h" |
#include "LogRecord.h" |
|
#include "event/log/LogRecord.h" |
|
13 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
|
|
|
14 |
using namespace std; |
using namespace std; |
15 |
|
|
16 |
namespace pamela { |
namespace pamela { |
17 |
/** |
/** |
18 |
* LogEvent data Wrapper |
* LogEvent data Wrapper. |
19 |
|
* |
20 |
|
* The LogEvent represents the "LogEvent" packet generated by the PAMELA CPU software |
21 |
|
* and is a collection of several logs generated during PAMELA operations |
22 |
|
* and recorded in the CPU RAM between two storing operations. |
23 |
*/ |
*/ |
24 |
class LogEvent: public pamela::SubPacket { |
class LogEvent: public pamela::SubPacket { |
25 |
private: |
private: |
26 |
|
|
27 |
static TClonesArray *fgRecords; |
static TClonesArray *fgRecords; |
28 |
public: |
public: |
29 |
/** |
/** |
30 |
* Get the run name according to a certain run number. |
* The Compilation Timestamp of the PAMELA CPU software. |
|
* @param run Run number. |
|
|
* @return a string with the run name. |
|
31 |
*/ |
*/ |
32 |
UINT32 COMPILATION_TIMESTAMP; |
UINT32 COMPILATION_TIMESTAMP; |
33 |
|
|
34 |
|
/** |
35 |
|
* Contain multiple instances of pamela::LogRecord type. |
36 |
|
*/ |
37 |
TClonesArray* Records; |
TClonesArray* Records; |
38 |
|
|
39 |
LogEvent(void); |
LogEvent(void); |