]>
Commit | Line | Data |
---|---|---|
37dde34e | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, 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 notifce * | |
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 | // $Id: AliJBaseEventHeader.cxx,v 1.4 2008/05/08 13:44:45 djkim Exp $ | |
17 | ||
18 | //////////////////////////////////////////////////// | |
19 | // | |
20 | // \file AliJBaseEventHeader.cc | |
21 | // \brief | |
22 | // \author J. Rak, D.J.Kim, R.Diaz, M.Bondila, Chang Yeong (University of Jyvaskyla) email: djkim@cc.jyu.fi | |
23 | // \version $Revision: 1.4 $ | |
24 | // \date $Date: 2008/05/08 13:44:45 $ | |
25 | // | |
26 | // Base class for event headers | |
27 | //////////////////////////////////////////////////// | |
28 | ||
29 | #include <TNamed.h> | |
30 | #include "AliJBaseEventHeader.h" | |
31 | ||
32 | ClassImp(AliJBaseEventHeader) | |
33 | ||
34 | //______________________________________________________________________________ | |
35 | AliJBaseEventHeader::AliJBaseEventHeader(): | |
36 | TNamed("AliJBaseEventHeader", ""), | |
37 | fEventID(-999), | |
38 | fCentrality(-999), | |
39 | fVtxX(-999), | |
40 | fVtxY(-999), | |
41 | fVtxZ(-999), | |
42 | fVtxZErr(-999) | |
43 | { | |
44 | // default constructor | |
45 | } | |
46 | ||
47 | //______________________________________________________________________________ | |
48 | AliJBaseEventHeader::AliJBaseEventHeader(int eventid, float cent, float vtxz): | |
49 | TNamed("AliJBaseEventHeader", ""), | |
50 | fEventID(eventid), | |
51 | fCentrality(cent), | |
52 | fVtxX(-999), | |
53 | fVtxY(-999), | |
54 | fVtxZ(vtxz), | |
55 | fVtxZErr(-999) | |
56 | { | |
57 | //constructor | |
58 | } | |
59 | //______________________________________________________________________________ | |
60 | AliJBaseEventHeader::AliJBaseEventHeader(const AliJBaseEventHeader& a): | |
61 | TNamed(a), | |
62 | fEventID(a.fEventID), | |
63 | fCentrality(a.fCentrality), | |
64 | fVtxX(a.fVtxX), | |
65 | fVtxY(a.fVtxY), | |
66 | fVtxZ(a.fVtxZ), | |
67 | fVtxZErr(a.fVtxZErr) | |
68 | { | |
69 | //copy constructor | |
70 | } | |
71 | ||
72 | //______________________________________________________________________________ | |
73 | AliJBaseEventHeader& AliJBaseEventHeader::operator=(const AliJBaseEventHeader& header){ | |
74 | //operator= | |
75 | if(this != &header){ | |
76 | TNamed::operator=(header); | |
77 | fEventID = header.fEventID; | |
78 | fCentrality = header.fCentrality; | |
79 | fVtxX = header.fVtxX; | |
80 | fVtxY = header.fVtxY; | |
81 | fVtxZ = header.fVtxZ; | |
82 | fVtxZErr = header.fVtxZErr; | |
83 | } | |
84 | ||
85 | return *this; | |
86 | } | |
87 |