LCOV - code coverage report
Current view: top level - TOF/TOFbase - AliTOFDecoderSummaryData.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 15 32 46.9 %
Date: 2016-06-14 17:26:59 Functions: 15 36 41.7 %

          Line data    Source code
       1             : #ifndef ALITOFDECODERSUMMARYDATA_H
       2             : #define ALITOFDECODERSUMMARYDATA_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             : //                                                           //
       9             : //   This class provides a summary for decoder data.         //
      10             : //                                                           //
      11             : ///////////////////////////////////////////////////////////////
      12             : 
      13             : #include "TObject.h"
      14             : #include "AliTOFDRMSummaryData.h"
      15             : 
      16             : //decoder summary data
      17             : class AliTOFDecoderSummaryData : public TObject
      18             : {
      19             :  public:
      20             :   AliTOFDecoderSummaryData(); //default contructor
      21             :   AliTOFDecoderSummaryData(const AliTOFDecoderSummaryData &source); //copy contructor
      22             :   AliTOFDecoderSummaryData &operator = (const AliTOFDecoderSummaryData &source); //operator =
      23             :   virtual ~AliTOFDecoderSummaryData(); //destructor
      24             :   /* getters */
      25           0 :   UInt_t   GetRunNumber() const {return fRunNumber;}; //get run number
      26           0 :   UInt_t   GetEventNumber() const {return fEventNumber;}; //get event number
      27           0 :   UInt_t   GetEquipmentID() const {return fEquipmentID;}; //get equipment ID
      28           0 :   UInt_t   GetInputWords() const {return fInputWords;}; //get input words
      29           0 :   UInt_t   GetDecodedWords() const {return fDecodedWords;}; //get decoded words
      30           0 :   UShort_t GetDecoderStatus() const {return fDecoderStatus;}; //get decoder status
      31        2304 :   Bool_t   GetErrorDetected() const {return fErrorDetected;}; //get error detected
      32           0 :   UShort_t GetErrorSlotID() const {return fErrorSlotID;}; // get error slot id
      33           0 :   UShort_t GetCurrentDRMID() const {return fCurrentDRMID;}; //get current DRM ID
      34           0 :   UShort_t GetCurrentSlotID() const {return fCurrentSlotID;}; //get current slot ID
      35           0 :   UShort_t GetCurrentChain() const {return fCurrentChain;}; //get current chain
      36           0 :   Bool_t   GetV2718Patch() const {return fV2718Patch;}; //get V2718 patch
      37           0 :   Bool_t   GetRecoverError() const {return fRecoverError;}; //get recover error
      38      142144 :   Bool_t   GetRecoveringError() const {return fRecoveringError;}; //get recovering error
      39           0 :   Bool_t   GetSpider() const {return fSpider;}; //get spider flag
      40        2304 :   AliTOFDRMSummaryData *GetDRMSummaryData() const {return fDRMSummaryData;}; //get DRM summary data
      41             :   /* setters */
      42        1152 :   void SetRunNumber(UInt_t RunNumber) {fRunNumber = RunNumber;}; //set run number
      43        1152 :   void SetEventNumber(UInt_t EventNumber) {fEventNumber = EventNumber;}; //set event number
      44        1152 :   void SetEquipmentID(UInt_t EquipmentID) {fEquipmentID = EquipmentID;}; //set equipment ID
      45        1152 :   void SetInputWords(UInt_t InputWords) {fInputWords = InputWords;}; //set input words
      46       71072 :   void SetDecodedWords(UInt_t DecodedWords) {fDecodedWords = DecodedWords;}; //set decoded words
      47       70272 :   void SetDecoderStatus(UShort_t DecoderStatus) {fDecoderStatus = DecoderStatus;}; //set decoder status
      48           0 :   void SetErrorDetected(Bool_t ErrorDetected) {fErrorDetected = ErrorDetected;}; //set error detected
      49           0 :   void SetErrorSlotID(UShort_t value) {fErrorSlotID |= 1<< value;}; // set error slot id
      50        1152 :   void SetCurrentDRMID(UShort_t CurrentDRMID) {fCurrentDRMID = CurrentDRMID;}; //set current DRM ID
      51       13248 :   void SetCurrentSlotID(UShort_t CurrentSlotID) {fCurrentSlotID = CurrentSlotID;}; //set current slot ID
      52       21888 :   void SetCurrentChain(UShort_t CurrentChain) {fCurrentChain = CurrentChain;}; //set current chain
      53           0 :   void SetV2718Patch(Bool_t V2718Patch) {fV2718Patch = V2718Patch;}; //set V2718 patch
      54         576 :   void SetRecoverError(Bool_t RecoverError) {fRecoverError = RecoverError;}; //set recover error
      55           0 :   void SetRecoveringError(Bool_t RecoveringError) {fRecoveringError = RecoveringError;}; //set recovering error
      56         576 :   void SetSpider(Bool_t Spider) {fSpider = Spider;}; //set spider flag
      57             :   /* methods */
      58             :   void Reset(); //reset
      59             :  private:
      60             :   UInt_t   fRunNumber; //run number
      61             :   UInt_t   fEventNumber; //event number
      62             :   UInt_t   fEquipmentID; //equipment ID
      63             :   UInt_t   fInputWords; //input words
      64             :   UInt_t   fDecodedWords; //decoded words
      65             :   UShort_t fDecoderStatus; //decoder status
      66             :   Bool_t   fErrorDetected; //error detected
      67             :   UShort_t   fErrorSlotID; //error slot ID
      68             :   UShort_t fCurrentDRMID; //current DRM ID
      69             :   UShort_t fCurrentSlotID; //current slot ID
      70             :   UShort_t fCurrentChain; //current chain
      71             :   Bool_t   fV2718Patch; //V2718 patch
      72             :   Bool_t   fRecoverError; //recover error
      73             :   Bool_t   fRecoveringError; //recoverisng error
      74             :   Bool_t   fSpider; //spider flag
      75             :   AliTOFDRMSummaryData *fDRMSummaryData; //DRM summary data
      76             : 
      77          26 :   ClassDef(AliTOFDecoderSummaryData, 1);
      78             : };
      79             : 
      80             : #endif /* ALITOFDECODERSUMMARYDATA */

Generated by: LCOV version 1.11