]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliCaloBunchInfo.h
Verbose printout commented out
[u/mrichter/AliRoot.git] / EMCAL / AliCaloBunchInfo.h
CommitLineData
57839add 1#ifndef ALICALOBUNCHINFO_H
2#define ALICALOBUNCHINFO_H
d655d7dd 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//
57839add 31class AliCaloBunchInfo
d655d7dd 32{
33 public:
57839add 34 AliCaloBunchInfo( UInt_t starttimebin, Int_t length, const UShort_t * data );
35 virtual ~AliCaloBunchInfo();
d655d7dd 36
57839add 37 AliCaloBunchInfo( const AliCaloBunchInfo & rhs);
38 AliCaloBunchInfo & operator = ( const AliCaloBunchInfo & rhs);
d655d7dd 39
40
41 UInt_t GetStartBin( ) const { return fStartTimebin;};
42 Int_t GetLength() const { return fLength; };
43 const UShort_t *GetData() const { return fkData; };
44
45 private:
57839add 46 AliCaloBunchInfo();
d655d7dd 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