LCOV - code coverage report
Current view: top level - EMCAL/EMCALraw - AliCaloBunchInfo.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 3 100.0 %
Date: 2016-06-14 17:26:59 Functions: 3 3 100.0 %

          Line data    Source code
       1             : #ifndef ALICALOBUNCHINFO_H
       2             : #define ALICALOBUNCHINFO_H
       3             : 
       4             : /**************************************************************************
       5             :  * This file is property of and copyright by                              *
       6             :  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
       7             :  *                                                                        *
       8             :  * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
       9             :  *                                                                        *
      10             :  * Contributors are mentioned in the code where appropriate.              *
      11             :  * Please report bugs to p.t.hille@fys.uio.no                             *
      12             :  *                                                                        *
      13             :  * Permission to use, copy, modify and distribute this software and its   *
      14             :  * documentation strictly for non-commercial purposes is hereby granted   *
      15             :  * without fee, provided that the above copyright notice appears in all   *
      16             :  * copies and that both the copyright notice and this permission notice   *
      17             :  * appear in the supporting documentation. The authors make no claims     *
      18             :  * about the suitability of this software for any purpose. It is          *
      19             :  * provided "as is" without express or implied warranty.                  *
      20             :  **************************************************************************/
      21             : 
      22             : #include "Rtypes.h"
      23             : 
      24             : // Container class to hold 
      25             : // information  about ALTRO
      26             : // Bunces from the altro stream.
      27             : // Each bunch has a start marker, ( fStartTimebin ) 
      28             : // the number of ADC samples in the bunch fLength, and a pointer
      29             : // to the last (fStartTimebin + fLength ) time bin of the bunch.
      30             : // 
      31             : class  AliCaloBunchInfo
      32             : {
      33             :  public:
      34             :   AliCaloBunchInfo( UInt_t starttimebin, Int_t length,  const UShort_t * data );
      35             :   virtual ~AliCaloBunchInfo();
      36             : 
      37             :   AliCaloBunchInfo( const AliCaloBunchInfo  & rhs);
      38             :   AliCaloBunchInfo   & operator = ( const  AliCaloBunchInfo & rhs);
      39             : 
      40             :   
      41         348 :   UInt_t GetStartBin( ) const { return fStartTimebin;};
      42        3088 :   Int_t GetLength() const { return fLength; };
      43         348 :   const UShort_t *GetData() const { return fkData; };
      44             :   
      45             :  private:
      46             :   AliCaloBunchInfo();
      47             :   UInt_t fStartTimebin;   //Starttimebin as given by the ALTRO stream
      48             :   Int_t fLength;          //Length of the bunch
      49             :   const UShort_t *fkData; //Pointer to the last data enetry of the bunch (data is reversed with respect to fStartTimebin)
      50             : };
      51             : 
      52             : 
      53             : 
      54             : #endif

Generated by: LCOV version 1.11