Line data Source code
1 : #ifndef ALITOFDRMSUMMARYDATA_H
2 : #define ALITOFDRMSUMMARYDATA_H
3 :
4 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : /*
8 : author: Roberto Preghenella (R+), preghenella@bo.infn.it
9 : */
10 :
11 : ///////////////////////////////////////////////////////////////
12 : // //
13 : // This class provides a summary for DRM data. //
14 : // //
15 : ///////////////////////////////////////////////////////////////
16 :
17 : #include "TObject.h"
18 : #include "AliTOFLTMSummaryData.h"
19 : #include "AliTOFTRMSummaryData.h"
20 :
21 : #define N_TRM 10
22 : class AliTOFDRMSummaryData : public TObject
23 : {
24 : public:
25 : AliTOFDRMSummaryData(); //default contructor
26 : AliTOFDRMSummaryData(const AliTOFDRMSummaryData &source); //copy contructor
27 : AliTOFDRMSummaryData &operator = (const AliTOFDRMSummaryData &source); //operator =
28 : virtual ~AliTOFDRMSummaryData(); //destructor
29 : /* getters */
30 1152 : Bool_t GetHeader() const {return fHeader;}; //get header
31 1152 : Bool_t GetTrailer() const {return fTrailer;}; //get trailer
32 0 : UShort_t GetSlotID() const {return fSlotID;}; //get slot ID
33 0 : UInt_t GetEventWords() const {return fEventWords;}; //get event words
34 0 : UShort_t GetDRMID() const {return fDRMID;}; //get DRM ID
35 32832 : UShort_t GetLocalEventCounter() const {return fLocalEventCounter;}; //get local event counter
36 1152 : UShort_t GetPartecipatingSlotID() const {return fPartecipatingSlotID;}; //get partecipating slot ID
37 0 : UShort_t GetCBit() const {return fCBit;}; //get C bit
38 0 : UShort_t GetVersID() const {return fVersID;}; //get vers ID
39 0 : UShort_t GetDRMhSize() const {return fDRMhSize;}; //get DRM header size
40 0 : UShort_t GetSlotEnableMask() const {return fSlotEnableMask;}; //get slot enable mask
41 0 : UShort_t GetFaultID() const {return fFaultID;}; //get fault ID
42 0 : UShort_t GetRTOBit() const {return fRTOBit;}; //get RTO bit
43 1152 : UShort_t GetL0BCID() const {return fL0BCID;}; //get L0 bunch ID
44 0 : UShort_t GetRunTimeInfo() const {return fRunTimeInfo;}; //get run time info
45 0 : UShort_t GetTemperature() const {return fTemperature;}; //get temperature
46 0 : UShort_t GetACKBit() const {return fACKBit;}; //get ACK bit
47 0 : UShort_t GetSensAD() const {return fSensAD;}; //get sens AD
48 0 : UInt_t GetEventCRC() const {return fEventCRC;}; //get event CRC
49 0 : UInt_t GetDecoderCRC() const {return fDecoderCRC;}; //get decoder CRC
50 1152 : UShort_t GetDecoderSlotEnableMask() const {return fDecoderSlotEnableMask;}; //get decoder slot enable mask
51 0 : UShort_t GetDecoderSlotEnableMaskBit(UInt_t iBit) const {return fDecoderSlotEnableMask & (1 << iBit);}; //get decoder slot enable mask bit
52 1152 : AliTOFLTMSummaryData *GetLTMSummaryData() const {return fLTMSummaryData;}; //get LTM summary data
53 44928 : AliTOFTRMSummaryData *GetTRMSummaryData(Int_t TRM) const {return TRM < N_TRM ? fTRMSummaryData[TRM] : 0x0;}; //get TRM summary data
54 : /* setters */
55 576 : void SetHeader(Bool_t Header) {fHeader = Header;}; //set header
56 576 : void SetTrailer(Bool_t Trailer) {fTrailer = Trailer;}; //set trailer
57 1152 : void SetSlotID(UShort_t SlotID) {fSlotID = SlotID;}; //set slot ID
58 1152 : void SetEventWords(UInt_t EventWords) {fEventWords = EventWords;}; //set event words
59 1152 : void SetDRMID(UShort_t DRMID) {fDRMID = DRMID;}; //set DRM ID
60 1152 : void SetLocalEventCounter(UShort_t LocalEventCounter) {fLocalEventCounter = LocalEventCounter;}; //set local event counter
61 1152 : void SetPartecipatingSlotID(UShort_t PartecipatingSlotID) {fPartecipatingSlotID = PartecipatingSlotID;}; //set partecipating slot ID
62 1152 : void SetCBit(UShort_t CBit) {fCBit = CBit;}; //set C bit
63 1152 : void SetVersID(UShort_t VersID) {fVersID = VersID;}; //set vers ID
64 1152 : void SetDRMhSize(UShort_t DRMhSize) {fDRMhSize = DRMhSize;}; //set DRM header size
65 1152 : void SetSlotEnableMask(UShort_t SlotEnableMask) {fSlotEnableMask = SlotEnableMask;}; //set slot enable mask
66 1152 : void SetFaultID(UShort_t FaultID) {fFaultID = FaultID;}; //set fault ID
67 1152 : void SetRTOBit(UShort_t RTOBit) {fRTOBit = RTOBit;}; //set RTO bit
68 1152 : void SetL0BCID(UShort_t L0BCID) {fL0BCID = L0BCID;}; //set L0 bunch ID
69 1152 : void SetRunTimeInfo(UShort_t RunTimeInfo) {fRunTimeInfo = RunTimeInfo;}; //set run time info
70 1152 : void SetTemperature(UShort_t Temperature) {fTemperature = Temperature;}; //set temperature
71 1152 : void SetACKBit(UShort_t ACKBit) {fACKBit = ACKBit;}; //set ACK bit
72 1152 : void SetSensAD(UShort_t SensAD) {fSensAD = SensAD;}; //set sens ID
73 1152 : void SetEventCRC(UInt_t EventCRC) {fEventCRC = EventCRC;}; //set event CRC
74 1152 : void SetDecoderCRC(UInt_t DecoderCRC) {fDecoderCRC = DecoderCRC;}; //set decoder CRC
75 0 : void SetDecoderSlotEnableMask(UShort_t DecoderSlotEnableMask) {fDecoderSlotEnableMask = DecoderSlotEnableMask;}; //set decoder slot enable mask
76 12096 : void SetDecoderSlotEnableMaskBit(UInt_t iBit) {fDecoderSlotEnableMask |= (1 << iBit);}; //get decoder slot enable mask
77 : /* methods */
78 : void Reset(); //reset
79 : private:
80 : Bool_t fHeader; //header
81 : Bool_t fTrailer; //trailer
82 : UShort_t fSlotID; //slot ID
83 : UInt_t fEventWords; //event words
84 : UShort_t fDRMID; //DRM ID
85 : UShort_t fLocalEventCounter; //local event counter
86 : UShort_t fPartecipatingSlotID; //partecipating slot ID
87 : UShort_t fCBit; //C bit
88 : UShort_t fVersID; //vers ID
89 : UShort_t fDRMhSize; //DRM header size
90 : UShort_t fSlotEnableMask; //slot enable mask
91 : UShort_t fFaultID; //fault ID
92 : UShort_t fRTOBit; //RTO bit
93 : UShort_t fL0BCID; //L0 bunch ID
94 : UShort_t fRunTimeInfo; //run time info
95 : UShort_t fTemperature; //temperature
96 : UShort_t fACKBit; //ACK bit
97 : UShort_t fSensAD; //sens ID
98 : UInt_t fEventCRC; //event CRC
99 : UInt_t fDecoderCRC; //decoder CRC
100 : UShort_t fDecoderSlotEnableMask; //decoder slot enable mask
101 : AliTOFLTMSummaryData *fLTMSummaryData; //LTM summary data
102 : AliTOFTRMSummaryData *fTRMSummaryData[N_TRM]; //TRM summary data
103 :
104 26 : ClassDef(AliTOFDRMSummaryData, 1);
105 : };
106 :
107 : #endif /* ALITOFDRMSUMMARYDATA_H */
|