For primary tracks, when mother-particle is defined, add label and
[u/mrichter/AliRoot.git] / STEER / AliESDHeader.cxx
CommitLineData
d5ebf00e 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//-------------------------------------------------------------------------
17// Implementation of Class AliESDHeader
18// Header data
19// for the ESD
20// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
21//-------------------------------------------------------------------------
22
23#include "AliESDHeader.h"
24
25
26ClassImp(AliESDHeader)
27
28//______________________________________________________________________________
29AliESDHeader::AliESDHeader() :
9ae2e5e6 30 AliVHeader(),
d5ebf00e 31 fTriggerMask(0),
32 fOrbitNumber(0),
33 fTimeStamp(0),
34 fEventType(0),
4f036e6e 35 fPeriodNumber(0),
d5ebf00e 36 fEventNumberInFile(0),
37 fBunchCrossNumber(0),
38 fTriggerCluster(0)
39{
9ae2e5e6 40 // default constructor
41
42 SetName("AliESDHeader");
43}
44
45
46AliESDHeader::~AliESDHeader()
47{
48 // destructor
d5ebf00e 49}
50
51
52AliESDHeader::AliESDHeader(const AliESDHeader &header) :
9ae2e5e6 53 AliVHeader(header),
d5ebf00e 54 fTriggerMask(header.fTriggerMask),
55 fOrbitNumber(header.fOrbitNumber),
56 fTimeStamp(header.fTimeStamp),
57 fEventType(header.fEventType),
4f036e6e 58 fPeriodNumber(header.fPeriodNumber),
d5ebf00e 59 fEventNumberInFile(header.fEventNumberInFile),
60 fBunchCrossNumber(header.fBunchCrossNumber),
61 fTriggerCluster(header.fTriggerCluster)
62{
63 // copy constructor
9ae2e5e6 64
65 SetName(header.fName);
66 SetTitle(header.fTitle);
d5ebf00e 67}
68
69AliESDHeader& AliESDHeader::operator=(const AliESDHeader &header)
70{
71 // assigment operator
72 if(this!=&header) {
9ae2e5e6 73 AliVHeader::operator=(header);
d5ebf00e 74 fTriggerMask = header.fTriggerMask;
75 fOrbitNumber = header.fOrbitNumber;
76 fTimeStamp = header.fTimeStamp;
77 fEventType = header.fEventType;
4f036e6e 78 fPeriodNumber = header.fPeriodNumber;
d5ebf00e 79 fEventNumberInFile = header.fEventNumberInFile;
80 fBunchCrossNumber = header.fBunchCrossNumber;
81 fTriggerCluster = header.fTriggerCluster;
4f036e6e 82 SetName(header.fName);
83 SetTitle(header.fTitle);
84
d5ebf00e 85 }
86 return *this;
87}
88
89
90
91//______________________________________________________________________________
92void AliESDHeader::Reset()
93{
94 // reset all data members
95 fTriggerMask = 0;
96 fOrbitNumber = 0;
97 fTimeStamp = 0;
98 fEventType = 0;
4f036e6e 99 fPeriodNumber = 0;
d5ebf00e 100 fEventNumberInFile = 0;
101 fBunchCrossNumber = 0;
102 fTriggerCluster = 0;
103}
104
105//______________________________________________________________________________
106void AliESDHeader::Print(const Option_t *) const
107{
108 // Print some data members
109 printf("Event # %d in file Bunch crossing # %d Orbit # %d Trigger %lld \n",
110 GetEventNumberInFile(),
111 GetBunchCrossNumber(),
112 GetOrbitNumber(),
113 GetTriggerMask());
114}
115