source: trunk/MagicSoft/Simulation/Detector/include-CORSIKA/COREventEnd.hxx@ 13389

Last change on this file since 13389 was 3046, checked in by blanch, 21 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1/////////////////////////////////////////////////////////////////
2//
3// COREventEnd
4//
5// Created: Tue Apr 28 16:27:14 1998
6// Author: Jose Carlos Gonzales
7// Purpose: Base class for EventEnd-classes
8// Notes:
9//
10/////////////////////////////////////////////////////////////////
11
12// @T \newpage
13
14// @section Source code of {\tt COREventEnd.hxx}
15
16/* @text
17This section shows the include file {\tt COREventEnd.hxx}
18@endtext */
19
20#ifndef COREventEnd_Class
21#define COREventEnd_Class
22
23// @subsection Include files
24
25// @code
26#include "TROOT.h"
27#include "TObject.h"
28
29#include <iostream.h>
30#include <iomanip.h>
31#include <fstream.h>
32#include <stdlib.h>
33#include <math.h>
34
35// @endcode
36
37// @subsection Class {\em COREventEnd}: Definition
38
39// @code
40class COREventEnd {
41
42public:
43
44 char EVTE[4];
45 Float_t EvtNumber;
46
47 Float_t dmmy[271];
48
49public:
50 COREventEnd(void) {} // default constructor
51
52 virtual ~COREventEnd(void) {} // default destructor
53
54 // reads EventEnd from binary input stream
55 Int_t read ( ifstream &is ) {
56 is.read ( (char *)this, sizeof( float ) * 273 );
57 return is.gcount();
58 }
59
60 // writes EventEnd to binary output stream
61 Int_t write ( ofstream &os ) {
62 os.write ( (char *)this, sizeof( float ) * 273 );
63 return 0;
64 }
65
66 // get information about the EventEnd
67
68 // print-out of the EVTE
69 void print(void);
70
71 // get the event number
72 inline Float_t get_eventnumber ( void ) { return (EvtNumber); }
73
74 // fill Event end
75 inline void fill ( Float_t theEvtNumber ) {
76
77 strcpy(EVTE,"EVTE");
78 EvtNumber = theEvtNumber;
79
80 for (Int_t i=0; i<271; i++){
81 dmmy[i]=0.;
82 }
83
84 return;
85 }
86
87};
88// @endcode
89
90#endif // not defined COREventEnd_Class
Note: See TracBrowser for help on using the repository browser.