ROOT logo
#ifndef ALICALOBUNCHINFO_H
#define ALICALOBUNCHINFO_H

/**************************************************************************
 * This file is property of and copyright by                              *
 * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
 *                                                                        *
 * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
 *                                                                        *
 * Contributors are mentioned in the code where appropriate.              *
 * Please report bugs to p.t.hille@fys.uio.no                             *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

#include "Rtypes.h"

// Container class to hold 
// information  about ALTRO
// Bunces from the altro stream.
// Each bunch has a start marker, ( fStartTimebin ) 
// the number of ADC samples in the bunch fLength, and a pointer
// to the last (fStartTimebin + fLength ) time bin of the bunch.
// 
class  AliCaloBunchInfo
{
 public:
  AliCaloBunchInfo( UInt_t starttimebin, Int_t length,  const UShort_t * data );
  virtual ~AliCaloBunchInfo();

  AliCaloBunchInfo( const AliCaloBunchInfo  & rhs);
  AliCaloBunchInfo   & operator = ( const  AliCaloBunchInfo & rhs);

  
  UInt_t GetStartBin( ) const { return fStartTimebin;};
  Int_t GetLength() const { return fLength; };
  const UShort_t *GetData() const { return fkData; };
  
 private:
  AliCaloBunchInfo();
  UInt_t fStartTimebin;   //Starttimebin as given by the ALTRO stream
  Int_t fLength;          //Length of the bunch
  const UShort_t *fkData; //Pointer to the last data enetry of the bunch (data is reversed with respect to fStartTimebin)
};



#endif
 AliCaloBunchInfo.h:1
 AliCaloBunchInfo.h:2
 AliCaloBunchInfo.h:3
 AliCaloBunchInfo.h:4
 AliCaloBunchInfo.h:5
 AliCaloBunchInfo.h:6
 AliCaloBunchInfo.h:7
 AliCaloBunchInfo.h:8
 AliCaloBunchInfo.h:9
 AliCaloBunchInfo.h:10
 AliCaloBunchInfo.h:11
 AliCaloBunchInfo.h:12
 AliCaloBunchInfo.h:13
 AliCaloBunchInfo.h:14
 AliCaloBunchInfo.h:15
 AliCaloBunchInfo.h:16
 AliCaloBunchInfo.h:17
 AliCaloBunchInfo.h:18
 AliCaloBunchInfo.h:19
 AliCaloBunchInfo.h:20
 AliCaloBunchInfo.h:21
 AliCaloBunchInfo.h:22
 AliCaloBunchInfo.h:23
 AliCaloBunchInfo.h:24
 AliCaloBunchInfo.h:25
 AliCaloBunchInfo.h:26
 AliCaloBunchInfo.h:27
 AliCaloBunchInfo.h:28
 AliCaloBunchInfo.h:29
 AliCaloBunchInfo.h:30
 AliCaloBunchInfo.h:31
 AliCaloBunchInfo.h:32
 AliCaloBunchInfo.h:33
 AliCaloBunchInfo.h:34
 AliCaloBunchInfo.h:35
 AliCaloBunchInfo.h:36
 AliCaloBunchInfo.h:37
 AliCaloBunchInfo.h:38
 AliCaloBunchInfo.h:39
 AliCaloBunchInfo.h:40
 AliCaloBunchInfo.h:41
 AliCaloBunchInfo.h:42
 AliCaloBunchInfo.h:43
 AliCaloBunchInfo.h:44
 AliCaloBunchInfo.h:45
 AliCaloBunchInfo.h:46
 AliCaloBunchInfo.h:47
 AliCaloBunchInfo.h:48
 AliCaloBunchInfo.h:49
 AliCaloBunchInfo.h:50
 AliCaloBunchInfo.h:51
 AliCaloBunchInfo.h:52
 AliCaloBunchInfo.h:53
 AliCaloBunchInfo.h:54