Line data Source code
1 : /**************************************************************************
2 : * This file is property of and copyright by *
3 : * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 *
4 : * *
5 : * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no> *
6 : * *
7 : * Contributors are mentioned in the code where appropriate. *
8 : * Please report bugs to p.t.hille@fys.uio.no *
9 : * *
10 : * Permission to use, copy, modify and distribute this software and its *
11 : * documentation strictly for non-commercial purposes is hereby granted *
12 : * without fee, provided that the above copyright notice appears in all *
13 : * copies and that both the copyright notice and this permission notice *
14 : * appear in the supporting documentation. The authors make no claims *
15 : * about the suitability of this software for any purpose. It is *
16 : * provided "as is" without express or implied warranty. *
17 : **************************************************************************/
18 :
19 :
20 : #include "AliCaloBunchInfo.h"
21 :
22 : // Container class to hold information
23 : // about of bunches.
24 : // Used by the
25 : // AliCaloRawAnalyzer
26 : // classes
27 58 : AliCaloBunchInfo::AliCaloBunchInfo( UInt_t start, Int_t length, const UShort_t * data ) : fStartTimebin(start),
28 58 : fLength(length),
29 58 : fkData(data)
30 232 : {
31 :
32 :
33 116 : }
34 :
35 :
36 :
37 : AliCaloBunchInfo::~AliCaloBunchInfo()
38 232 : {
39 :
40 :
41 348 : }
42 :
43 :
44 :
45 58 : AliCaloBunchInfo::AliCaloBunchInfo( const AliCaloBunchInfo & rhs) :fStartTimebin( rhs.fStartTimebin ),
46 58 : fLength( rhs.fLength ),
47 58 : fkData( rhs.fkData )
48 232 : {
49 :
50 :
51 116 : }
52 :
53 :
54 :
55 :
56 : AliCaloBunchInfo& AliCaloBunchInfo::operator = ( const AliCaloBunchInfo & rhs)
57 : {
58 : //This is just to get of compliation warning. Its not really needed
59 0 : if(this != & rhs)
60 : {
61 0 : fStartTimebin = rhs.fStartTimebin;
62 0 : fLength = rhs.fLength;
63 0 : fkData = rhs.fkData;
64 0 : }
65 0 : return *this;
66 : }
67 :
|