]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
TOF raw data decoding classes split in more files
authorrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Dec 2008 17:36:38 +0000 (17:36 +0000)
committerrpreghen <rpreghen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Dec 2008 17:36:38 +0000 (17:36 +0000)
TOF/AliTOFRawDataFormat.h
TOF/AliTOFTDCPackedHit.h [new file with mode: 0644]
TOF/AliTOFTDCUnpackedHit.h [new file with mode: 0644]
TOF/AliTOFTRMChainHeader.h [new file with mode: 0644]
TOF/AliTOFTRMChainTrailer.h [new file with mode: 0644]
TOF/AliTOFTRMDiagnosticErrorWord1.h [new file with mode: 0644]
TOF/AliTOFTRMDiagnosticErrorWord2.h [new file with mode: 0644]
TOF/AliTOFTRMGlobalHeader.h
TOF/AliTOFTRMGlobalTrailer.h [new file with mode: 0644]
TOF/AliTOFTRMTDCError.h [new file with mode: 0644]

index c5484928cb370f4bd4b95f2d096de00a4d0461f5..e14e91c310741a42f484105a3b7d8f9730d02e0a 100644 (file)
 
 ///////////////////////////////////////////////////////////////
 //                                                           //
-//   This classes provide the TOF raw data bit fields.       //
+//   This file links all classes needed for decoding.        //
 //                                                           //
 ///////////////////////////////////////////////////////////////
 
-#include "TROOT.h"
-
-//TRM global header
-class AliTOFTRMGlobalHeader
-{
- public:
-  UInt_t GetSlotID() {return fSlotID;};
-  UInt_t GetEventWords() {return fEventWords;};
-  UInt_t GetACQBits() {return fACQBits;};
-  UInt_t GetLBit() {return fLBit;};
-  UInt_t GetMBZ() {return fMBZ;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fSlotID:     4;
-  UInt_t fEventWords: 13;
-  UInt_t fACQBits:    2;
-  UInt_t fLBit:       1;
-  UInt_t fMBZ:        8;
-  UInt_t fWordType:   4;
-};
-
-//TRM global trailer
-class AliTOFTRMGlobalTrailer
-{
- public:
-  UInt_t GetSlotID() {return fSlotID;};
-  UInt_t GetEventCRC() {return fEventCRC;};
-  UInt_t GetEventCounter() {return fEventCounter;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fSlotID:       4;
-  UInt_t fEventCRC:     12;
-  UInt_t fEventCounter: 12;
-  UInt_t fWordType:     4;
-};
-
-//TRM chain header
-class AliTOFTRMChainHeader
-{
- public:
-  UInt_t GetSlotID() {return fSlotID;};
-  UInt_t GetBunchID() {return fBunchID;};
-  UInt_t GetPB24Temp() {return fPB24Temp;};
-  UInt_t GetPB24ID() {return fPB24ID;};
-  UInt_t GetTSBit() {return fTSBit;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fSlotID:   4;
-  UInt_t fBunchID:  12;
-  UInt_t fPB24Temp: 8;
-  UInt_t fPB24ID:   3;
-  UInt_t fTSBit:    1;
-  UInt_t fWordType: 4;
-};
-
-//TRM chain trailer
-class AliTOFTRMChainTrailer
-{
- public:
-  UInt_t GetStatus() {return fStatus;};
-  UInt_t GetMBZ() {return fMBZ;};
-  UInt_t GetEventCounter() {return fEventCounter;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fStatus:       4;
-  UInt_t fMBZ:          12;
-  UInt_t fEventCounter: 12;
-  UInt_t fWordType:     4;
-};
-
-//TDC packed hit
-class AliTOFTDCPackedHit
-{
- public:
-  UInt_t GetHitTime() {return fHitTime;};
-  UInt_t GetTOTWidth() {return fTOTWidth;};
-  UInt_t GetChan() {return fChan;};
-  UInt_t GetTDCID() {return fTDCID;};
-  UInt_t GetEBit() {return fEBit;};
-  UInt_t GetPSBits() {return fPSBits;};
-  UInt_t GetMBO() {return fMBO;};
- private:
-  UInt_t fHitTime:  13;
-  UInt_t fTOTWidth: 8;
-  UInt_t fChan:     3;
-  UInt_t fTDCID:    4;
-  UInt_t fEBit:     1;
-  UInt_t fPSBits:   2;
-  UInt_t fMBO:      1;
-};
-
-//TDC unpacked hit
-class AliTOFTDCUnpackedHit
-{
- public:
-  UInt_t GetHitTime() {return fHitTime;};
-  UInt_t GetChan() {return fChan;};
-  UInt_t GetTDCID() {return fTDCID;};
-  UInt_t GetEBit() {return fEBit;};
-  UInt_t GetPSBits() {return fPSBits;};
-  UInt_t GetMBO() {return fMBO;};
- private:
-  UInt_t fHitTime:  21;
-  UInt_t fChan:     3;
-  UInt_t fTDCID:    4;
-  UInt_t fEBit:     1;
-  UInt_t fPSBits:   2;
-  UInt_t fMBO:      1;
-};
-
-//TRM TDC error
-class AliTOFTRMTDCError
-{
- public:
-  UInt_t GetErrorFlags() {return fErrorFlags;};
-  UInt_t GetMBZ() {return fMBZ;};
-  UInt_t GetTDCID () {return fTDCID;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fErrorFlags: 15;
-  UInt_t fMBZ:        9;
-  UInt_t fTDCID:      4;
-  UInt_t fWordType:   4;
-};
-
-//TRM diagnostic error word 1
-class AliTOFTRMDiagnosticErrorWord1
-{
- public:
-  UInt_t GetFaultChipFlagID() {return fFaultChipFlagID;};
-  UInt_t GetCBit() {return fCBit;};
-  UInt_t GetMBZ() {return fMBZ;};
-  UInt_t GetMBO() {return fMBO;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fFaultChipFlagID: 15;
-  UInt_t fCBit:            1;
-  UInt_t fMBZ:             8;
-  UInt_t fMBO:             4;
-  UInt_t fWordType:        4;
-};
-
-//TRM diagnostic error word 2
-class AliTOFTRMDiagnosticErrorWord2
-{
- public:
-  UInt_t GetJtagErrorCode() {return fJtagErrorCode;};
-  UInt_t GetTDCID() {return fTDCID;};
-  UInt_t GetCBit() {return fCBit;};
-  UInt_t GetMBZ() {return fMBZ;};
-  UInt_t GetMBO() {return fMBO;};
-  UInt_t GetWordType() {return fWordType;};
- private:
-  UInt_t fJtagErrorCode: 11;
-  UInt_t fTDCID:         4;
-  UInt_t fCBit:          1;
-  UInt_t fMBZ:           8;
-  UInt_t fMBO:           4;
-  UInt_t fWordType:      4;
-};
+#include "AliTOFTRMGlobalHeader.h"
+#include "AliTOFTRMGlobalTrailer.h"
+#include "AliTOFTRMChainHeader.h"
+#include "AliTOFTRMChainTrailer.h"
+#include "AliTOFTDCPackedHit.h"
+#include "AliTOFTDCUnpackedHit.h"
+#include "AliTOFTRMTDCError.h"
+#include "AliTOFTRMDiagnosticErrorWord1.h"
+#include "AliTOFTRMDiagnosticErrorWord2.h"
 
 #endif /* ALITOFRAWDATAFORMAT_H */
diff --git a/TOF/AliTOFTDCPackedHit.h b/TOF/AliTOFTDCPackedHit.h
new file mode 100644 (file)
index 0000000..462b5a9
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef ALITOFTDCPACHEDHIT_H
+#define ALITOFTDCPACKEDHIT_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTDCPackedHit
+{
+ public:
+  UInt_t GetHitTime() {return fHitTime;};
+  UInt_t GetTOTWidth() {return fTOTWidth;};
+  UInt_t GetChan() {return fChan;};
+  UInt_t GetTDCID() {return fTDCID;};
+  UInt_t GetEBit() {return fEBit;};
+  UInt_t GetPSBits() {return fPSBits;};
+  UInt_t GetMBO() {return fMBO;};
+ private:
+  UInt_t fHitTime:  13;
+  UInt_t fTOTWidth: 8;
+  UInt_t fChan:     3;
+  UInt_t fTDCID:    4;
+  UInt_t fEBit:     1;
+  UInt_t fPSBits:   2;
+  UInt_t fMBO:      1;
+};
+
+#endif
diff --git a/TOF/AliTOFTDCUnpackedHit.h b/TOF/AliTOFTDCUnpackedHit.h
new file mode 100644 (file)
index 0000000..0aa11ba
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef ALITOFTDCUNPACHEDHIT_H
+#define ALITOFTDCUNPACKEDHIT_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTDCUnpackedHit
+{
+ public:
+  UInt_t GetHitTime() {return fHitTime;};
+  UInt_t GetChan() {return fChan;};
+  UInt_t GetTDCID() {return fTDCID;};
+  UInt_t GetEBit() {return fEBit;};
+  UInt_t GetPSBits() {return fPSBits;};
+  UInt_t GetMBO() {return fMBO;};
+ private:
+  UInt_t fHitTime:  21;
+  UInt_t fChan:     3;
+  UInt_t fTDCID:    4;
+  UInt_t fEBit:     1;
+  UInt_t fPSBits:   2;
+  UInt_t fMBO:      1;
+};
+
+#endif
diff --git a/TOF/AliTOFTRMChainHeader.h b/TOF/AliTOFTRMChainHeader.h
new file mode 100644 (file)
index 0000000..5072fbd
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef ALITOFTRMCHAINHEADER_H
+#define ALITOFTRMCHAINHEADER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMChainHeader
+{
+ public:
+  UInt_t GetSlotID() {return fSlotID;};
+  UInt_t GetBunchID() {return fBunchID;};
+  UInt_t GetPB24Temp() {return fPB24Temp;};
+  UInt_t GetPB24ID() {return fPB24ID;};
+  UInt_t GetTSBit() {return fTSBit;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fSlotID:   4;
+  UInt_t fBunchID:  12;
+  UInt_t fPB24Temp: 8;
+  UInt_t fPB24ID:   3;
+  UInt_t fTSBit:    1;
+  UInt_t fWordType: 4;
+};
+
+#endif
diff --git a/TOF/AliTOFTRMChainTrailer.h b/TOF/AliTOFTRMChainTrailer.h
new file mode 100644 (file)
index 0000000..81d9704
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef ALITOFTRMCHAINTRAILER_H
+#define ALITOFTRMCHAINTRAILER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMChainTrailer
+{
+ public:
+  UInt_t GetStatus() {return fStatus;};
+  UInt_t GetMBZ() {return fMBZ;};
+  UInt_t GetEventCounter() {return fEventCounter;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fStatus:       4;
+  UInt_t fMBZ:          12;
+  UInt_t fEventCounter: 12;
+  UInt_t fWordType:     4;
+};
+
+#endif
diff --git a/TOF/AliTOFTRMDiagnosticErrorWord1.h b/TOF/AliTOFTRMDiagnosticErrorWord1.h
new file mode 100644 (file)
index 0000000..dda4799
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef ALITOFTRMDIAGNOSTICERRORWORD1_H
+#define ALITOFTRMDIAGNOSTICERRORWORD1_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMDiagnosticErrorWord1
+{
+ public:
+  UInt_t GetFaultChipFlagID() {return fFaultChipFlagID;};
+  UInt_t GetCBit() {return fCBit;};
+  UInt_t GetMBZ() {return fMBZ;};
+  UInt_t GetMBO() {return fMBO;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fFaultChipFlagID: 15;
+  UInt_t fCBit:            1;
+  UInt_t fMBZ:             8;
+  UInt_t fMBO:             4;
+  UInt_t fWordType:        4;
+};
+
+#endif
diff --git a/TOF/AliTOFTRMDiagnosticErrorWord2.h b/TOF/AliTOFTRMDiagnosticErrorWord2.h
new file mode 100644 (file)
index 0000000..acedde8
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef ALITOFTRMDIAGNOSTICERRORWORD2_H
+#define ALITOFTRMDIAGNOSTICERRORWORD2_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMDiagnosticErrorWord2
+{
+ public:
+  UInt_t GetJtagErrorCode() {return fJtagErrorCode;};
+  UInt_t GetTDCID() {return fTDCID;};
+  UInt_t GetCBit() {return fCBit;};
+  UInt_t GetMBZ() {return fMBZ;};
+  UInt_t GetMBO() {return fMBO;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fJtagErrorCode: 11;
+  UInt_t fTDCID:         4;
+  UInt_t fCBit:          1;
+  UInt_t fMBZ:           8;
+  UInt_t fMBO:           4;
+  UInt_t fWordType:      4;
+};
+
+#endif
index 966ec60167244318e025d9d06b69d77a760fa6ea..d5830fa5c9685ca56c6a1d3240f48e4e83c24ebf 100644 (file)
@@ -6,11 +6,11 @@
 
 /* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
 
-/**************************************************************
- *                                                            *
- *   This classes provide the TOF raw data bit fields.        *
- *                                                            *
- *************************************************************/
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
 
 #include "TROOT.h"
 
diff --git a/TOF/AliTOFTRMGlobalTrailer.h b/TOF/AliTOFTRMGlobalTrailer.h
new file mode 100644 (file)
index 0000000..a483401
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef ALITOFTRMGLOBALTRAILER_H
+#define ALITOFTRMGLOBALTRAILER_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMGlobalTrailer
+{
+ public:
+  UInt_t GetSlotID() {return fSlotID;};
+  UInt_t GetEventCRC() {return fEventCRC;};
+  UInt_t GetEventCounter() {return fEventCounter;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fSlotID:       4;
+  UInt_t fEventCRC:     12;
+  UInt_t fEventCounter: 12;
+  UInt_t fWordType:     4;
+};
+
+#endif /* ALITOFTRMGLOBALTRAILER_H */
diff --git a/TOF/AliTOFTRMTDCError.h b/TOF/AliTOFTRMTDCError.h
new file mode 100644 (file)
index 0000000..788f372
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef ALITOFTRMTDCERROR_H
+#define ALITOFTRMTDCERROR_H
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id: AliTOFRawDataFormat.h 23881 2008-02-12 16:46:22Z decaro $ */
+
+///////////////////////////////////////////////////////////////
+//                                                           //
+//   This classes provide the TOF raw data bit fields.       //
+//                                                           //
+///////////////////////////////////////////////////////////////
+
+#include "TROOT.h"
+
+class AliTOFTRMTDCError
+{
+ public:
+  UInt_t GetErrorFlags() {return fErrorFlags;};
+  UInt_t GetMBZ() {return fMBZ;};
+  UInt_t GetTDCID () {return fTDCID;};
+  UInt_t GetWordType() {return fWordType;};
+ private:
+  UInt_t fErrorFlags: 15;
+  UInt_t fMBZ:        9;
+  UInt_t fTDCID:      4;
+  UInt_t fWordType:   4;
+};
+
+#endif