]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFDRMSummaryData.h
Remove a run from LHC10e wo AODs; added run list for the new PbPb MC LHC11a10b_bis
[u/mrichter/AliRoot.git] / TOF / AliTOFDRMSummaryData.h
CommitLineData
5b4ed716 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
22class 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 Bool_t GetHeader() const {return fHeader;}; //get header
31 Bool_t GetTrailer() const {return fTrailer;}; //get trailer
32 UShort_t GetSlotID() const {return fSlotID;}; //get slot ID
33 UInt_t GetEventWords() const {return fEventWords;}; //get event words
34 UShort_t GetDRMID() const {return fDRMID;}; //get DRM ID
35 UShort_t GetLocalEventCounter() const {return fLocalEventCounter;}; //get local event counter
36 UShort_t GetPartecipatingSlotID() const {return fPartecipatingSlotID;}; //get partecipating slot ID
37 UShort_t GetCBit() const {return fCBit;}; //get C bit
38 UShort_t GetVersID() const {return fVersID;}; //get vers ID
39 UShort_t GetDRMhSize() const {return fDRMhSize;}; //get DRM header size
40 UShort_t GetSlotEnableMask() const {return fSlotEnableMask;}; //get slot enable mask
41 UShort_t GetFaultID() const {return fFaultID;}; //get fault ID
42 UShort_t GetRTOBit() const {return fRTOBit;}; //get RTO bit
43 UShort_t GetL0BCID() const {return fL0BCID;}; //get L0 bunch ID
44 UShort_t GetRunTimeInfo() const {return fRunTimeInfo;}; //get run time info
45 UShort_t GetTemperature() const {return fTemperature;}; //get temperature
46 UShort_t GetACKBit() const {return fACKBit;}; //get ACK bit
47 UShort_t GetSensAD() const {return fSensAD;}; //get sens AD
48 UInt_t GetEventCRC() const {return fEventCRC;}; //get event CRC
49 UInt_t GetDecoderCRC() const {return fDecoderCRC;}; //get decoder CRC
50 UShort_t GetDecoderSlotEnableMask() const {return fDecoderSlotEnableMask;}; //get decoder slot enable mask
51 UShort_t GetDecoderSlotEnableMaskBit(UInt_t iBit) const {return fDecoderSlotEnableMask & (1 << iBit);}; //get decoder slot enable mask bit
52 AliTOFLTMSummaryData *GetLTMSummaryData() const {return fLTMSummaryData;}; //get LTM summary data
53 AliTOFTRMSummaryData *GetTRMSummaryData(Int_t TRM) const {return TRM < N_TRM ? fTRMSummaryData[TRM] : 0x0;}; //get TRM summary data
54 /* setters */
55 void SetHeader(Bool_t Header) {fHeader = Header;}; //set header
56 void SetTrailer(Bool_t Trailer) {fTrailer = Trailer;}; //set trailer
57 void SetSlotID(UShort_t SlotID) {fSlotID = SlotID;}; //set slot ID
58 void SetEventWords(UInt_t EventWords) {fEventWords = EventWords;}; //set event words
59 void SetDRMID(UShort_t DRMID) {fDRMID = DRMID;}; //set DRM ID
60 void SetLocalEventCounter(UShort_t LocalEventCounter) {fLocalEventCounter = LocalEventCounter;}; //set local event counter
61 void SetPartecipatingSlotID(UShort_t PartecipatingSlotID) {fPartecipatingSlotID = PartecipatingSlotID;}; //set partecipating slot ID
62 void SetCBit(UShort_t CBit) {fCBit = CBit;}; //set C bit
63 void SetVersID(UShort_t VersID) {fVersID = VersID;}; //set vers ID
64 void SetDRMhSize(UShort_t DRMhSize) {fDRMhSize = DRMhSize;}; //set DRM header size
65 void SetSlotEnableMask(UShort_t SlotEnableMask) {fSlotEnableMask = SlotEnableMask;}; //set slot enable mask
66 void SetFaultID(UShort_t FaultID) {fFaultID = FaultID;}; //set fault ID
67 void SetRTOBit(UShort_t RTOBit) {fRTOBit = RTOBit;}; //set RTO bit
68 void SetL0BCID(UShort_t L0BCID) {fL0BCID = L0BCID;}; //set L0 bunch ID
69 void SetRunTimeInfo(UShort_t RunTimeInfo) {fRunTimeInfo = RunTimeInfo;}; //set run time info
70 void SetTemperature(UShort_t Temperature) {fTemperature = Temperature;}; //set temperature
71 void SetACKBit(UShort_t ACKBit) {fACKBit = ACKBit;}; //set ACK bit
72 void SetSensAD(UShort_t SensAD) {fSensAD = SensAD;}; //set sens ID
73 void SetEventCRC(UInt_t EventCRC) {fEventCRC = EventCRC;}; //set event CRC
74 void SetDecoderCRC(UInt_t DecoderCRC) {fDecoderCRC = DecoderCRC;}; //set decoder CRC
75 void SetDecoderSlotEnableMask(UShort_t DecoderSlotEnableMask) {fDecoderSlotEnableMask = DecoderSlotEnableMask;}; //set decoder slot enable mask
76 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 ClassDef(AliTOFDRMSummaryData, 1);
105};
106
107#endif /* ALITOFDRMSUMMARYDATA_H */