free arrays before of return in PropagateBack
[u/mrichter/AliRoot.git] / TOF / AliTOFChainSummaryData.h
CommitLineData
5b4ed716 1#ifndef ALITOFCHAINSUMMARYDATA_H
2#define ALITOFCHAINSUMMARYDATA_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 TRM chain data. //
14// //
15///////////////////////////////////////////////////////////////
16
17#include "TObject.h"
18#include "AliTOFTDCHitBuffer.h"
19#include "AliTOFTDCErrorBuffer.h"
20
21class AliTOFChainSummaryData : public TObject
22{
23 public:
24 AliTOFChainSummaryData(); //default constructor
25 AliTOFChainSummaryData(const AliTOFChainSummaryData &source); //copy constructor
26 AliTOFChainSummaryData &operator = (const AliTOFChainSummaryData &source); //operator =
27 virtual ~AliTOFChainSummaryData(); //destructor
28 /* getters */
29 Bool_t GetHeader() const {return fHeader;}; //get header
30 Bool_t GetTrailer() const {return fTrailer;}; //get trailer
31 UShort_t GetChain() const {return fChain;}; //get chain
32 UShort_t GetBunchID() const {return fBunchID;}; //get bunch ID
33 UShort_t GetPB24Temp() const {return fPB24Temp;}; //get PB24 temp
34 UShort_t GetPB24ID() const {return fPB24ID;}; //get PB24 ID
35 UShort_t GetTSBit() const {return fTSBit;}; //get TS bit
36 UShort_t GetStatus() const {return fStatus;}; //get status
37 UShort_t GetEventCounter() const {return fEventCounter;}; //get event counter
38 AliTOFTDCHitBuffer *GetTDCHitBuffer() const {return fTDCHitBuffer;}; //get TDC hit buffer
39 AliTOFTDCHitBuffer *GetTDCPackedHitBuffer() const {return fTDCPackedHitBuffer;}; //get TDC packed hit buffer
40 AliTOFTDCErrorBuffer *GetTDCErrorBuffer() const {return fTDCErrorBuffer;}; //get TDC error buffer
41 /* setters */
42 void SetHeader(Bool_t Header) {fHeader = Header;}; //set header
43 void SetTrailer(Bool_t Trailer) {fTrailer = Trailer;}; //set trailer
44 void SetChain(UShort_t Chain) {fChain = Chain;}; //set chain
45 void SetBunchID(UShort_t BunchID) {fBunchID = BunchID;}; //set bunch ID
46 void SetPB24Temp(UShort_t PB24Temp) {fPB24Temp = PB24Temp;}; //set PB24 temp
47 void SetPB24ID(UShort_t PB24ID) {fPB24ID = PB24ID;}; //set PB24 ID
48 void SetTSBit(UShort_t TSBit) {fTSBit = TSBit;}; //set TS bit
49 void SetStatus(UShort_t Status) {fStatus = Status;}; //set status
50 void SetEventCounter(UShort_t EventCounter) {fEventCounter = EventCounter;}; //set event counter
51 /* methods */
52 void Reset(); //reset
53 private:
54 Bool_t fHeader; //header detected
55 Bool_t fTrailer; //trailer detected
56 UShort_t fChain; //chain number
57 UShort_t fBunchID; //bunch ID
58 UShort_t fPB24Temp; //piggy-back temperature
59 UShort_t fPB24ID; //piggy-back ID
60 UShort_t fTSBit; //I2C reading of temperature sensor success
61 UShort_t fStatus; //status
62 UShort_t fEventCounter; //event counter
63 AliTOFTDCHitBuffer *fTDCHitBuffer; //TDC hit buffer
64 AliTOFTDCHitBuffer *fTDCPackedHitBuffer; //TDC packed hit buffer
65 AliTOFTDCErrorBuffer *fTDCErrorBuffer; //TDC error buffer
66
67 ClassDef(AliTOFChainSummaryData, 1);
68};
69
70#endif /* ALITOFCHAINSUMMARYDATA_H */