]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AOD/AliAODTZERO.cxx
Added possibility of weighting according to run
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODTZERO.cxx
CommitLineData
a1f96974 1/**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16//-------------------------------------------------------------------------
c78a7768 17// Container class for AOD TZERO data
18// Author: Filip Krizek
19// filip.krizek@cern.ch 23/02/2012
a1f96974 20//-------------------------------------------------------------------------
21
22#include "AliAODTZERO.h"
23#include "AliLog.h"
24
25ClassImp(AliAODTZERO)
26
27//__________________________________________________________________________
28AliAODTZERO::AliAODTZERO()
29 :TObject(),
30 fPileup(0),
31 fSattelite(0),
c78a7768 32 fBackground(0),
33 fT0VertexRaw(999)
a1f96974 34{
35 // Default constructor
36 for(Int_t j=0; j<3; j++){
37 fT0TOF[j] = 999;
38 fT0TOFbest[j] = 999;
39 }
40}
41
42//__________________________________________________________________________
43AliAODTZERO::AliAODTZERO(const AliAODTZERO &source)
44 :TObject(source),
45 fPileup(source.fPileup),
46 fSattelite(source.fSattelite),
c78a7768 47 fBackground(source.fBackground),
48 fT0VertexRaw(source.fT0VertexRaw)
a1f96974 49{
50 // Default constructor
51 for(Int_t j=0; j<3; j++) {
52 fT0TOF[j] = source.fT0TOF[j];
53 fT0TOFbest[j] = source.fT0TOFbest[j];
54 }
55}
56
57//__________________________________________________________________________
58AliAODTZERO& AliAODTZERO::operator=(const AliAODTZERO& source)
59{
60 // Assignment operator
61 //
62 if(this==&source) return *this;
63 // Assignment operator
c78a7768 64 fPileup = source.fPileup;
65 fSattelite = source.fSattelite;
66 fBackground = source.fBackground;
67 fT0VertexRaw = source.fT0VertexRaw;
a1f96974 68
69 for(Int_t j=0; j<3; j++){
70 fT0TOF[j] = source.fT0TOF[j];
71 fT0TOFbest[j] = source.fT0TOFbest[j];
72 }
73 return *this;
74}
75