]>
Commit | Line | Data |
---|---|---|
d655d7dd | 1 | #ifndef ALIEMCALBUNCHINFO_H |
2 | #define ALIEMCALBUNCHINFO_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 AliEMCALBunchInfo | |
32 | { | |
33 | public: | |
34 | AliEMCALBunchInfo( UInt_t starttimebin, Int_t length, const UShort_t * data ); | |
35 | virtual ~AliEMCALBunchInfo(); | |
36 | ||
37 | AliEMCALBunchInfo( const AliEMCALBunchInfo & rhs); | |
38 | AliEMCALBunchInfo & operator = ( const AliEMCALBunchInfo & rhs); | |
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: | |
46 | AliEMCALBunchInfo(); | |
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 |