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 RunTag class
20 // This is the class to deal with the tags in the run level
21 // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
22 //-----------------------------------------------------------------
24 #include "AliRunTag.h"
25 #include "AliDetectorTag.h"
26 #include "AliEventTag.h"
30 //______________________________________________________________________________
31 AliRunTag::AliRunTag() :
34 fAliceMagneticField(0.0),
35 fAliceRunStartTime(0),
37 fAliceReconstructionVersion(0),
39 fAliceBeamEnergy(0.0),
41 fAliceCalibrationVersion(0),
45 fEventTag("AliEventTag", 1000),
46 fDetectorTag("AliDetectorTag", 1000),
52 //______________________________________________________________________________
53 AliRunTag::~AliRunTag()
57 fDetectorTag.Delete();
60 //______________________________________________________________________________
61 void AliRunTag::SetLHCTag(Float_t lumin, char *type)
63 //Setter for the LHC tags
64 fLHCTag.SetLHCTag(lumin,type);
67 //______________________________________________________________________________
68 void AliRunTag::SetDetectorTag(const AliDetectorTag &DetTag)
70 //Setter for the detector tags
71 new(fDetectorTag[fNumDetectors++]) AliDetectorTag(DetTag);
74 //______________________________________________________________________________
75 void AliRunTag::AddEventTag(const AliEventTag & EvTag)
77 //Adds an entry to the event tag TClonesArray
78 new(fEventTag[fNumEvents++]) AliEventTag(EvTag);
81 //______________________________________________________________________________
82 void AliRunTag::Clear(const char *)
84 //Resets the number of events and detectors