]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JCORRAN/AliPhJBaseHeader.cxx
Fixed compiler warnings (Jason)
[u/mrichter/AliRoot.git] / PWG4 / JCORRAN / AliPhJBaseHeader.cxx
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: AliPhJBaseHeader.cxx,v 1.4 2008/05/08 13:44:45 djkim Exp $
17
18 ////////////////////////////////////////////////////
19 //
20 //      \file AliPhJBaseHeader.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 "AliPhJBaseHeader.h"
30
31 ClassImp(AliPhJBaseHeader)
32
33 //______________________________________________________________________________
34 AliPhJBaseHeader::AliPhJBaseHeader(): 
35   fEventID(-999),              
36   fCentrality(-999),
37   fVtxZ(0),
38   fVtxZErr(-999)
39 {
40   // default constructor
41 }
42
43 //______________________________________________________________________________
44 AliPhJBaseHeader::AliPhJBaseHeader(int eventid, short cent, float vtxz): 
45   fEventID(eventid),              
46   fCentrality(cent),
47   fVtxZ(vtxz),
48   fVtxZErr(-999)
49 {
50   //constructor
51 }
52 //______________________________________________________________________________
53 AliPhJBaseHeader::AliPhJBaseHeader(const AliPhJBaseHeader& a):
54   TObject(a),
55   fEventID(a.fEventID),
56   fCentrality(a.fCentrality),
57   fVtxZ(a.fVtxZ),
58   fVtxZErr(a.fVtxZErr)
59 {
60   //copy constructor
61 }
62
63 //______________________________________________________________________________
64 AliPhJBaseHeader&  AliPhJBaseHeader::operator=(const AliPhJBaseHeader& header){
65   //operator=  
66   if(this != &header){
67     TObject::operator=(header);
68     fEventID    = header.fEventID;
69     fCentrality = header.fCentrality;
70     fVtxZ       = header.fVtxZ;
71     fVtxZErr   = header.fVtxZErr;
72   }
73
74   return *this;
75 }
76
77