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