IR datum changed to array of pointers.
[u/mrichter/AliRoot.git] / STEER / AliESDHeader.h
CommitLineData
d5ebf00e 1// -*- mode: C++ -*-
2#ifndef ALIESDHEADER_H
3#define ALIESDHEADER_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8//-------------------------------------------------------------------------
9// Class AliESDHeader
10// Header data
11// for the ESD
12// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
13//-------------------------------------------------------------------------
14
8258ca76 15#include <TClonesArray.h>
9ae2e5e6 16#include "AliVHeader.h"
bf1f98c4 17#include "AliTriggerScalersESD.h"
18#include "AliTriggerScalersRecordESD.h"
19
20class AliTriggerScalersESD;
21class AliTriggerScalersRecordESD;
76a7c65b 22class AliTriggerIR;
d5ebf00e 23
9ae2e5e6 24class AliESDHeader: public AliVHeader {
d5ebf00e 25public:
26 AliESDHeader();
9ae2e5e6 27 virtual ~AliESDHeader();
d5ebf00e 28 AliESDHeader(const AliESDHeader& header);
29 AliESDHeader& operator=(const AliESDHeader& header);
732a24fe 30 virtual void Copy(TObject &obj) const;
d5ebf00e 31
32 void SetTriggerMask(ULong64_t n) {fTriggerMask=n;}
33 void SetOrbitNumber(UInt_t n) {fOrbitNumber=n;}
34 void SetTimeStamp(UInt_t timeStamp){fTimeStamp = timeStamp;}
35 void SetEventType(UInt_t eventType){fEventType = eventType;}
36 void SetEventNumberInFile(Int_t n) {fEventNumberInFile=n;}
37 void SetBunchCrossNumber(UShort_t n) {fBunchCrossNumber=n;}
9ae2e5e6 38 void SetPeriodNumber(UInt_t n) {fPeriodNumber=n;}
d5ebf00e 39 void SetTriggerCluster(UChar_t n) {fTriggerCluster = n;}
c47cda51 40 Bool_t AddTriggerIR(const AliTriggerIR* ir);
d5ebf00e 41
b21623e0 42//************Setters/Getters for Trigger Inputs and TriggerScalersRecordESD
43 void SetL0TriggerInputs(UInt_t n) {fL0TriggerInputs=n;}
44 void SetL1TriggerInputs(UInt_t n) {fL1TriggerInputs=n;}
45 void SetL2TriggerInputs(UShort_t n) {fL2TriggerInputs=n;}
46 UInt_t GetL0TriggerInputs() const {return fL0TriggerInputs;}
47 UInt_t GetL1TriggerInputs() const {return fL1TriggerInputs;}
48 UShort_t GetL2TriggerInputs() const {return fL2TriggerInputs;}
bf1f98c4 49 void SetTriggerScalersRecord(AliTriggerScalersESD *scalerRun) {fTriggerScalers.AddTriggerScalers(scalerRun); }
50 const AliTriggerScalersRecordESD* GetTriggerScalersRecord() const {return &fTriggerScalers; }
b21623e0 51//**************************************************************************
52
d5ebf00e 53 ULong64_t GetTriggerMask() const {return fTriggerMask;}
54 UInt_t GetOrbitNumber() const {return fOrbitNumber;}
55 UInt_t GetTimeStamp() const { return fTimeStamp;}
56 UInt_t GetEventType() const { return fEventType;}
57 Int_t GetEventNumberInFile() const {return fEventNumberInFile;}
58 UShort_t GetBunchCrossNumber() const {return fBunchCrossNumber;}
9ae2e5e6 59 UInt_t GetPeriodNumber() const {return fPeriodNumber;}
d5ebf00e 60 UChar_t GetTriggerCluster() const {return fTriggerCluster;}
61
d5ebf00e 62 void Reset();
9ae2e5e6 63 void Print(const Option_t *opt=0) const;
d5ebf00e 64private:
65
66 // Event Identification
67 ULong64_t fTriggerMask; // Trigger Type (mask)
68 UInt_t fOrbitNumber; // Orbit Number
69 UInt_t fTimeStamp; // Time stamp
70 UInt_t fEventType; // Type of Event
4f036e6e 71 UInt_t fPeriodNumber; // Period Number
87d395bd 72 Int_t fEventNumberInFile; // Running Event count in the file
d5ebf00e 73 UShort_t fBunchCrossNumber; // Bunch Crossing Number
74 UChar_t fTriggerCluster; // Trigger cluster (mask)
b21623e0 75 UInt_t fL0TriggerInputs; //L0 Trigger Inputs
76 UInt_t fL1TriggerInputs; //L1 Trigger Inputs
77 UShort_t fL2TriggerInputs; //L2 Trigger Inputs
8258ca76 78 AliTriggerScalersRecordESD fTriggerScalers; //Trigger counters of triggered classes in event
c47cda51 79 enum {kNMaxIR = 3}; // Max number of interaction records (IR)
80 AliTriggerIR** fIRArray; // Array with trigger IRs
b21623e0 81
8258ca76 82 ClassDef(AliESDHeader,6)
d5ebf00e 83};
84
85#endif