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 //-----------------------------------------------------------------
25 #include <Riostream.h>
27 #include "AliRunTag.h"
28 #include "AliLHCTag.h"
29 #include "AliDetectorTag.h"
30 #include "AliEventTag.h"
34 TClonesArray *AliRunTag::fgEvents = 0;
35 TClonesArray *AliRunTag::fgDetectors = 0;
37 //______________________________________________________________________________
38 AliRunTag::AliRunTag()
40 if (!fgEvents) fgEvents = new TClonesArray("AliEventTag", 1000);
44 if (!fgDetectors) fgDetectors = new TClonesArray("AliDetectorTag", 1000);
45 fDetectorTag = fgDetectors;
48 fAliceMagneticField = 0.0;
49 fAliceRunStartTime = 0;
50 fAliceRunStopTime = 0;
51 fAliceReconstructionVersion = 0;
53 fAliceBeamEnergy = 0.0;
54 fAliceCalibrationVersion = 0;
58 //______________________________________________________________________________
59 AliRunTag::~AliRunTag()
63 //______________________________________________________________________________
64 void AliRunTag::SetLHCTag(Float_t lumin, char *type)
66 fLHCTag.SetLHCTag(lumin,type);
69 //______________________________________________________________________________
70 void AliRunTag::SetDetectorTag(AliDetectorTag *DetTag)
72 TClonesArray &detectors = *fDetectorTag;
73 new(detectors[fNumDetectors++]) AliDetectorTag(DetTag);
76 //______________________________________________________________________________
77 void AliRunTag::AddEventTag(AliEventTag *EvTag)
79 TClonesArray &events = *fEventTag;
80 new(events[fNumEvents++]) AliEventTag(EvTag);
83 //______________________________________________________________________________
84 void AliRunTag::Clear(const char *)