1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 /* $Id: AliFileTag.cxx 14745 2006-08-04 15:48:44Z panos $ */
18 //-----------------------------------------------------------------
19 // Implementation of the FileTag class
20 // This is the class to deal with the tags in the file level
21 // Origin: Adam Kisiel, CERN, Adam.Kisiel@cern.ch
22 //-----------------------------------------------------------------
24 #include "AliFileTag.h"
29 //___________________________________________________________________________
30 AliFileTag::AliFileTag() :
39 // AliFileTag default constructor
43 AliFileTag::AliFileTag(const AliFileTag &tag):
52 for (int iev=0; iev<tag.GetNEvents(); iev++)
53 AddEventTag(*(tag.GetEventTag(iev)));
56 AliFileTag &AliFileTag::operator=(const AliFileTag &tag)
59 TObject::operator=(tag);
61 SetGUID(tag.GetGUID());
62 SetPath(tag.GetPath());
63 SetSize(tag.GetSize());
65 SetTURL(tag.GetTURL());
67 for (int iev=0; iev<tag.GetNEvents(); iev++)
68 AddEventTag(*(tag.GetEventTag(iev)));
74 //___________________________________________________________________________
75 AliFileTag::~AliFileTag() {
76 // AliEventTag destructor
77 // fEventTag.Delete();
81 //___________________________________________________________________________
82 void AliFileTag::AddEventTag(const AliEventTag & EvTag) {
83 //Adds an entry to the event tag TClonesArray
85 fEventTags.Add(new AliEventTag(EvTag));
88 void AliFileTag::CopyFileInfo(const AliFileTag &tag)
90 SetGUID(tag.GetGUID());
91 SetPath(tag.GetPath());
92 SetSize(tag.GetSize());
94 SetTURL(tag.GetTURL());