]>
Commit | Line | Data |
---|---|---|
5f499ba3 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2003, 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 | ////////////////////////////////////////////////////////////////////////////// | |
17 | // // | |
18 | // The AliRawEventTag class handles the raw-data event-oriented tag // | |
19 | // information. One object for each raw-data event is stored in a ROOT // | |
20 | // tree inside the file controled by AliTagDB class. // | |
21 | // For the moment the tag information includes the raw-data event header + // | |
22 | // the raw-data file GUID and the event index. // | |
23 | // // | |
24 | ////////////////////////////////////////////////////////////////////////////// | |
25 | ||
26 | #include "AliRawEventTag.h" | |
27 | #include "AliRawEventHeaderBase.h" | |
28 | ||
29 | ClassImp(AliRawEventTag) | |
30 | ||
31 | //______________________________________________________________________________ | |
32 | AliRawEventTag::AliRawEventTag() : | |
33 | fHeader(NULL), | |
34 | fGUID(""), | |
35 | fEvent(-1) | |
36 | { | |
37 | // Default constructor | |
38 | } | |
39 | ||
40 | //___________________________________________________________________________ | |
41 | AliRawEventTag::AliRawEventTag(const AliRawEventTag & tag) : | |
42 | TObject(tag), | |
43 | fHeader(tag.fHeader), | |
44 | fGUID(tag.fGUID), | |
45 | fEvent(tag.fEvent) | |
46 | { | |
47 | // copy constructor | |
48 | } | |
49 | ||
50 | //___________________________________________________________________________ | |
51 | AliRawEventTag & AliRawEventTag::operator=(const AliRawEventTag &tag) { | |
52 | // assignment operator | |
53 | if (this != &tag) { | |
54 | TObject::operator=(tag); | |
55 | ||
56 | SetHeader(tag.GetHeader()); | |
57 | SetGUID(tag.GetGUID()); | |
58 | SetEventNumber(tag.GetEventNumber()); | |
59 | } | |
60 | return *this; | |
61 | } |