GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4SubEventHeader10.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4SUBEVENTHEADER10_H
15 #define TGO4SUBEVENTHEADER10_H
16 
17 #include "TObject.h"
18 
19 #include "TGo4GSIEventHeader.h"
20 
21 #include "typedefs.h"
22 
29 class TGo4SubEventHeader10 : public TObject {
30  public:
31 
33  void Clear(Option_t * = "") override
34  {
36  fxGSIHeader.fsType = 10;
37  //fsProcid = 0; // these three values are all unique identifiers
38  //fcSubcrate = 0;
39  //fcControl = 0;
40  }
41 
44 
46  union {
48  Int_t fiFullid;
49 
50  struct {
51 
52  #if MBS_ENDIAN == 1
53 
55  Char_t fcControl;
56 
58  Char_t fcSubcrate;
59 
61  Short_t fsProcid;
62 
63  #else
64 
66  Short_t fsProcid;
67 
69  Char_t fcSubcrate;
70 
72  Char_t fcControl;
73 
74  #endif
75 
76  };
77  };
78 
79  TGo4SubEventHeader10() : TObject(), fxGSIHeader(), fsProcid(0), fcSubcrate(0), fcControl(0) { }
80 
81  virtual ~TGo4SubEventHeader10() {}
82 
83  ClassDefOverride(TGo4SubEventHeader10,2)
84 };
85 
86 #endif // TGO4SUBEVENTHEADER10_H
TGo4GSIEventHeader fxGSIHeader
void Clear(Option_t *="") override
void Clear(Option_t *="") override