]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEERBase/AliVEvent.cxx
Merge remote-tracking branch 'origin/master' into flatdev
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliVEvent.cxx
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 /* $Id$ */
17
18 //-------------------------------------------------------------------------
19 //     base class for ESD and AOD events
20 //     Author: Markus Oldenburg, CERN
21 //-------------------------------------------------------------------------
22
23 #include "AliVEvent.h"
24
25
26 AliVEvent::AliVEvent(const AliVEvent& vEvnt) :
27   TObject(vEvnt)  { } // Copy constructor
28
29 AliVEvent& AliVEvent::operator=(const AliVEvent& vEvnt)
30 { if (this!=&vEvnt) { 
31     TObject::operator=(vEvnt); 
32   }
33   
34   return *this; 
35 }
36
37 const char* AliVEvent::Whoami()
38 {
39   switch (GetDataLayoutType())
40   {
41     case AliVEvent::kESD :
42       return "ESD";
43     case AliVEvent::kFlat :
44       return "Flat";
45     case AliVEvent::kAOD :
46       return "AOD";
47     case AliVEvent::kMC :
48       return "MC";
49     case AliVEvent::kMixed :
50       return "Mixed";
51     default:
52       return "unknown";
53   }
54 }
55
56 ClassImp(AliVEvent)