| 1 |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yodaUtility/RegistryEvent.h,v $ |
| 3 |
* $Id: RegistryEvent.h,v 1.1 2006/06/10 07:14:29 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
| 5 |
* |
| 6 |
* Header file for the RegistryEvent class. |
| 7 |
*/ |
| 8 |
#ifndef REGISTRY_EVENT_H |
| 9 |
#define REGISTRY_EVENT_H |
| 10 |
|
| 11 |
#include "TObject.h" |
| 12 |
#include "TString.h" |
| 13 |
#include "sgp4/coord.h" |
| 14 |
#include "YMagnGeo.h" |
| 15 |
namespace pamela { |
| 16 |
|
| 17 |
/** |
| 18 |
* RegistryEvent data Wrapper |
| 19 |
*/ |
| 20 |
class RegistryEvent: public TObject { |
| 21 |
private: |
| 22 |
|
| 23 |
public: |
| 24 |
/* This is the absolute Time of the event calculated after data unpacking */ |
| 25 |
/* representing the number of millisecond after 1 January 1970 */ |
| 26 |
ULong64_t absTime; |
| 27 |
|
| 28 |
/* Name of the unpacked file this data cames from. |
| 29 |
* The reason for this is beacuse if multiple data are collected from several |
| 30 |
* files using the same xxx.Event.root & xxx.Registry.root structure, in this way you |
| 31 |
* can reconstruct from which file this data cames from. |
| 32 |
*/ |
| 33 |
TString originFile; |
| 34 |
|
| 35 |
/* Unique ID of the RUN from which this data cames from. |
| 36 |
* Even if this ID cames from the production database it can be considered decoupled |
| 37 |
* from the database. It is used when many RUNs are collected in a single file. |
| 38 |
*/ |
| 39 |
UInt_t IDRun; |
| 40 |
|
| 41 |
/* Because on transmission multiple copies of data could be unpacked, a special procedure |
| 42 |
* collect all the event just one time each. This parameter is related to the entry relative |
| 43 |
* to that selected event. |
| 44 |
*/ |
| 45 |
unsigned int event; |
| 46 |
|
| 47 |
/* |
| 48 |
* Position of the satellite |
| 49 |
* double m_Lat; // Latitude, degree (negative south) |
| 50 |
* double m_Lon; // Longitude, degree (negative west) |
| 51 |
* double m_Alt; // Altitude, km (above mean sea level) |
| 52 |
*/ |
| 53 |
float m_Lat; |
| 54 |
float m_Lon; |
| 55 |
float m_Alt; |
| 56 |
//cCoordGeo coordGeo; |
| 57 |
|
| 58 |
/* |
| 59 |
* Magnetic parameters according to the position |
| 60 |
*/ |
| 61 |
YMagnGeo magnGeo; |
| 62 |
|
| 63 |
RegistryEvent(); |
| 64 |
~RegistryEvent(void){}; |
| 65 |
ClassDef(RegistryEvent, 1) |
| 66 |
}; |
| 67 |
} |
| 68 |
#endif /* REGISTRY_EVENT_H */ |
| 69 |
|