00001 // $Id: TGo4SubEventHeader10.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4SUBEVENTHEADER10_H 00015 #define TGO4SUBEVENTHEADER10_H 00016 00017 #include "TObject.h" 00018 00019 #include "TGo4GSIEventHeader.h" 00020 00021 #include "typedefs.h" 00022 00029 class TGo4SubEventHeader10 : public TObject { 00030 public: 00031 00033 virtual void Clear(Option_t* opt="") 00034 { 00035 fxGSIHeader.Clear(); 00036 fxGSIHeader.fsType=10; 00037 //fsProcid=0; // these three values are all unique identifiers 00038 //fcSubcrate=0; 00039 //fcControl=0; 00040 } 00041 00043 TGo4GSIEventHeader fxGSIHeader; 00044 00045 00047 union 00048 { 00050 Int_t fiFullid; 00051 struct 00052 { 00053 #if MBS_ENDIAN == 1 00054 00056 Char_t fcControl; 00057 00059 Char_t fcSubcrate; 00060 00062 Short_t fsProcid; 00063 00064 #else 00065 00067 Short_t fsProcid; 00068 00070 Char_t fcSubcrate; 00071 00073 Char_t fcControl; 00074 00075 #endif 00076 00077 }; 00078 }; 00079 00080 TGo4SubEventHeader10() : TObject(), fxGSIHeader(), fsProcid(0), fcSubcrate(0), fcControl(0) { } 00081 00082 virtual ~TGo4SubEventHeader10() { } 00083 00084 ClassDef(TGo4SubEventHeader10,2) 00085 }; 00086 00087 #endif // TGO4SUBEVENTHEADER10_H