Last change
on this file since 859 was 791, checked in by domingo, 24 years ago |
New classes needed for MaxiSingle
|
File size:
1.8 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
|
---|
17 | This 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 | #ifdef __ROOT__
|
---|
27 | #include "TROOT.h"
|
---|
28 | #include "TObject.h"
|
---|
29 | #else // not __ROOT__
|
---|
30 | #include "Rtypes.h"
|
---|
31 | #endif
|
---|
32 |
|
---|
33 | #include <iostream.h>
|
---|
34 | #include <iomanip.h>
|
---|
35 | #include <fstream.h>
|
---|
36 | #include <stdlib.h>
|
---|
37 | #include <math.h>
|
---|
38 |
|
---|
39 | // @endcode
|
---|
40 |
|
---|
41 | // @subsection Class {\em COREventEnd}: Definition
|
---|
42 |
|
---|
43 | // @code
|
---|
44 | class COREventEnd {
|
---|
45 |
|
---|
46 | public:
|
---|
47 |
|
---|
48 | char EVTE[4];
|
---|
49 | Float_t EvtNumber;
|
---|
50 |
|
---|
51 | Float_t dmmy[271];
|
---|
52 |
|
---|
53 | public:
|
---|
54 | COREventEnd(void) {} // default constructor
|
---|
55 |
|
---|
56 | virtual ~COREventEnd(void) {} // default destructor
|
---|
57 |
|
---|
58 | // reads EventEnd from binary input stream
|
---|
59 | Int_t read ( ifstream &is ) {
|
---|
60 | is.read ( (char *)this, sizeof( float ) * 273 );
|
---|
61 | return is.gcount();
|
---|
62 | }
|
---|
63 |
|
---|
64 | // writes EventEnd to binary output stream
|
---|
65 | Int_t write ( ofstream &os ) {
|
---|
66 | os.write ( (char *)this, sizeof( float ) * 273 );
|
---|
67 | return 0;
|
---|
68 | }
|
---|
69 |
|
---|
70 | // get information about the EventEnd
|
---|
71 |
|
---|
72 | // print-out of the EVTE
|
---|
73 | void print(void);
|
---|
74 |
|
---|
75 | // get the event number
|
---|
76 | inline Float_t get_eventnumber ( void ) { return (EvtNumber); }
|
---|
77 |
|
---|
78 | // fill Event end
|
---|
79 | inline void fill ( Float_t theEvtNumber ) {
|
---|
80 |
|
---|
81 | strcpy(EVTE,"EVTE");
|
---|
82 | EvtNumber = theEvtNumber;
|
---|
83 |
|
---|
84 | for (Int_t i=0; i<271; i++){
|
---|
85 | dmmy[i]=0.;
|
---|
86 | }
|
---|
87 |
|
---|
88 | return;
|
---|
89 | }
|
---|
90 |
|
---|
91 | };
|
---|
92 | // @endcode
|
---|
93 |
|
---|
94 | #endif // not defined COREventEnd_Class
|
---|
Note:
See
TracBrowser
for help on using the repository browser.