1 #ifndef ALICALOBUNCHINFO_H
2 #define ALICALOBUNCHINFO_H
4 /**************************************************************************
5 * This file is property of and copyright by *
6 * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 *
8 * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no> *
10 * Contributors are mentioned in the code where appropriate. *
11 * Please report bugs to p.t.hille@fys.uio.no *
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 **************************************************************************/
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.
31 class AliCaloBunchInfo
34 AliCaloBunchInfo( UInt_t starttimebin, Int_t length, const UShort_t * data );
35 virtual ~AliCaloBunchInfo();
37 AliCaloBunchInfo( const AliCaloBunchInfo & rhs);
38 AliCaloBunchInfo & operator = ( const AliCaloBunchInfo & rhs);
41 UInt_t GetStartBin( ) const { return fStartTimebin;};
42 Int_t GetLength() const { return fLength; };
43 const UShort_t *GetData() const { return fkData; };
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)