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 **************************************************************************/
18 //-----------------------------------------------------------------
19 // Implementation of the LHCTag class
20 // This is the class to deal with the tags in the LHC level
21 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
22 //-----------------------------------------------------------------
24 #include "AliLHCTag.h"
28 //___________________________________________________________________________
29 AliLHCTag::AliLHCTag() :
39 // AliLHCTag default constructor
42 AliLHCTag::AliLHCTag(const AliLHCTag &tag):
44 fLHCState(tag.fLHCState),
45 fLHCLuminosity(tag.fLHCLuminosity),
46 fNBunches(tag.fNBunches),
47 fFillingScheme(tag.fFillingScheme),
49 fBeamEnergy(tag.fBeamEnergy),
50 fBunchIntensity(tag.fBunchIntensity)
54 AliLHCTag &AliLHCTag::operator=(const AliLHCTag &tag)
57 TObject::operator=(tag);
59 TString state(tag.GetLHCState());
61 SetLuminosity(tag.GetLuminosity());
62 SetNBunches(tag.GetNBunches());
63 SetFillingScheme(tag.GetFillingScheme());
64 SetFillNo(tag.GetFillNo());
65 SetBeamEnergy(tag.GetBeamEnergy());
66 SetBunchIntensity(tag.GetBunchIntensity());
72 void AliLHCTag::UpdateFromRunTable(AliLHCTag &tag)
74 SetNBunches(tag.GetNBunches());
75 SetFillingScheme(tag.GetFillingScheme());
76 SetFillNo(tag.GetFillNo());
77 SetBeamEnergy(tag.GetBeamEnergy());
78 SetBunchIntensity(tag.GetBunchIntensity());
81 //___________________________________________________________________________
82 AliLHCTag::~AliLHCTag() {
83 // AliEventTag destructor