]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliRunTag.cxx
- Adding handling of track info in digits.
[u/mrichter/AliRoot.git] / STEER / AliRunTag.cxx
CommitLineData
f3a97c86 1/**************************************************************************
2 * Copyright(c) 1998-1999, 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/* $Id$ */
17
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//-----------------------------------------------------------------
23
f3a97c86 24#include "AliRunTag.h"
f3a97c86 25#include "AliDetectorTag.h"
26#include "AliEventTag.h"
27
28ClassImp(AliRunTag)
29
f3a97c86 30//______________________________________________________________________________
17a9d008 31 AliRunTag::AliRunTag() :
32 TObject(),
33 fAliceRunId(-1),
34 fAliceMagneticField(0.0),
35 fAliceRunStartTime(0),
36 fAliceRunStopTime(0),
37 fAliceReconstructionVersion(0),
38 fAliceRunQuality(0),
39 fAliceBeamEnergy(0.0),
40 fAliceBeamType(""),
41 fAliceCalibrationVersion(0),
42 fAliceDataType(0),
43 fNumEvents(0),
44 fNumDetectors(0),
45 fEventTag("AliEventTag", 1000),
46 fDetectorTag("AliDetectorTag", 1000),
47 fLHCTag()
f3a97c86 48{
e16601cf 49 //Default constructor
f3a97c86 50}
51
52//______________________________________________________________________________
53AliRunTag::~AliRunTag()
54{
17a9d008 55 //Destructor
56 fEventTag.Delete();
57 fDetectorTag.Delete();
f3a97c86 58}
59
60//______________________________________________________________________________
61void AliRunTag::SetLHCTag(Float_t lumin, char *type)
62{
e16601cf 63 //Setter for the LHC tags
f3a97c86 64 fLHCTag.SetLHCTag(lumin,type);
65}
66
67//______________________________________________________________________________
e16601cf 68void AliRunTag::SetDetectorTag(const AliDetectorTag &DetTag)
f3a97c86 69{
e16601cf 70 //Setter for the detector tags
17a9d008 71 new(fDetectorTag[fNumDetectors++]) AliDetectorTag(DetTag);
f3a97c86 72}
73
74//______________________________________________________________________________
cb1645b7 75void AliRunTag::AddEventTag(const AliEventTag & EvTag)
f3a97c86 76{
e16601cf 77 //Adds an entry to the event tag TClonesArray
17a9d008 78 new(fEventTag[fNumEvents++]) AliEventTag(EvTag);
f3a97c86 79}
80
81//______________________________________________________________________________
82void AliRunTag::Clear(const char *)
83{
e16601cf 84 //Resets the number of events and detectors
f3a97c86 85 fNumEvents = 0;
86 fNumDetectors = 0;
87}