]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFLTMSummaryData.h
Removing extern call to gROOT to allow compilation with ROOT6.
[u/mrichter/AliRoot.git] / TOF / AliTOFLTMSummaryData.h
CommitLineData
5b4ed716 1#ifndef ALITOFLTMSUMMARYDATA_H
2#define ALITOFLTMSUMMARYDATA_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 LTM data. //
14// //
15///////////////////////////////////////////////////////////////
16
17#include "TObject.h"
18
19#define LTM_N_PDL 48
20#define LTM_N_ADC 60
21#define LTM_N_OR 48
22
23class AliTOFLTMSummaryData : public TObject
24{
25 public:
26 AliTOFLTMSummaryData(); //default constructor
27 AliTOFLTMSummaryData(const AliTOFLTMSummaryData &source); //copy contructor
28 AliTOFLTMSummaryData &operator = (const AliTOFLTMSummaryData &source); //operator =
29 virtual ~AliTOFLTMSummaryData(); //destructor
30 /* getters */
31 Bool_t GetHeader() const {return fHeader;}; //get header
32 Bool_t GetTrailer() const {return fTrailer;}; //get trailer
33 Short_t GetSlotID() {return fSlotID;}; //get slot ID
34 Short_t GetEventWords() {return fEventWords;}; //get event words
35 Short_t GetCBit() {return fCBit;}; //get C bit
36 Short_t GetFault() {return fFault;}; //get fault
37 Short_t GetPDL(Int_t i) {return fPDL[i];}; //get PDL
38 Short_t GetADC(Int_t i) {return fADC[i];}; //get ADC
39 Short_t GetOR(Int_t i) {return fOR[i];}; //get OR
40 Short_t GetEventCRC() {return fEventCRC;}; //get event CRC
41 Short_t GetEventNumber() {return fEventNumber;}; //set event number
42 Short_t GetDecoderCRC() {return fDecoderCRC;}; //decoder CRC
43 /* setters */
44 void SetHeader(Bool_t Header) {fHeader = Header;}; //set header
45 void SetTrailer(Bool_t Trailer) {fTrailer = Trailer;}; //set trailer
46 void SetSlotID(Short_t SlotID) {fSlotID = SlotID;}; //set slot ID
47 void SetEventWords(Short_t EventWords) {fEventWords = EventWords;}; //set event words
48 void SetCBit(Short_t CBit) {fCBit = CBit;}; //set C bit
49 void SetFault(Short_t Fault) {fFault = Fault;}; //set fault
50 void SetPDL(Int_t i, Short_t PDL) {fPDL[i] = PDL;}; //set PDL
51 void SetADC(Int_t i, Short_t ADC) {fADC[i] = ADC;}; //set ADC
52 void SetOR(Int_t i, Short_t OR) {fOR[i] = OR;}; //set OR
53 void SetEventCRC(Short_t EventCRC) {fEventCRC = EventCRC;}; //set event CRC
54 void SetEventNumber(Short_t EventNumber) {fEventNumber = EventNumber;}; //set event number
55 void SetDecoderCRC(Short_t DecoderCRC) {fDecoderCRC = DecoderCRC;}; //decoder CRC
56 /* methods */
57 void Reset(); //reset
58 private:
59 Bool_t fHeader; //header
60 Bool_t fTrailer; //trailer
61 Short_t fSlotID; //slot ID
62 Short_t fEventWords; //event words
63 Short_t fCBit; // C bit
64 Short_t fFault; //fault
65 Short_t fPDL[LTM_N_PDL]; //PDL setting
66 Short_t fADC[LTM_N_ADC]; //ADC measurement
67 Short_t fOR[LTM_N_OR]; //OR measurement
68 Short_t fEventCRC; //event CRC
69 Short_t fEventNumber; //event number
70 Short_t fDecoderCRC; //decoder CRC
71
72 ClassDef(AliTOFLTMSummaryData, 1);
73};
74
75#endif /* ALITOFLTMSUMMARYDATA_H */