1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/log/LogEvent.h,v $ |
* $Source: /home/cvsmanager/yoda/event/log/LogEvent.h,v $ |
3 |
* $Id: LogEvent.h,v 1.1 2004/03/26 15:22:54 nagni Exp $ |
* $Id: LogEvent.h,v 5.0 2005/08/29 09:46:12 Maurizio Nagni Exp $ |
4 |
* $Author: nagni $ |
* $Author: Maurizio Nagni $ |
5 |
* |
* |
6 |
* Header file for the LogEvent class. |
* Header file for the LogEvent class. |
7 |
*/ |
*/ |
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. |
31 |
* @param run Run number. |
*/ |
32 |
* @return a string with the run name. |
UINT32 COMPILATION_TIMESTAMP; |
33 |
|
|
34 |
|
/** |
35 |
|
* Contain multiple instances of pamela::LogRecord type. |
36 |
*/ |
*/ |
|
int Log_crc_ok; |
|
37 |
TClonesArray* Records; |
TClonesArray* Records; |
38 |
|
|
39 |
LogEvent(void); |
LogEvent(void); |