]>
Commit | Line | Data |
---|---|---|
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 | ||
15 | #include <TObject.h> | |
16 | ||
17 | class AliESDHeader: public TObject { | |
18 | public: | |
19 | AliESDHeader(); | |
20 | AliESDHeader(const AliESDHeader& header); | |
21 | AliESDHeader& operator=(const AliESDHeader& header); | |
22 | ||
23 | void SetTriggerMask(ULong64_t n) {fTriggerMask=n;} | |
24 | void SetOrbitNumber(UInt_t n) {fOrbitNumber=n;} | |
25 | void SetTimeStamp(UInt_t timeStamp){fTimeStamp = timeStamp;} | |
26 | void SetEventType(UInt_t eventType){fEventType = eventType;} | |
27 | void SetEventNumberInFile(Int_t n) {fEventNumberInFile=n;} | |
28 | void SetBunchCrossNumber(UShort_t n) {fBunchCrossNumber=n;} | |
29 | void SetTriggerCluster(UChar_t n) {fTriggerCluster = n;} | |
30 | ||
31 | ULong64_t GetTriggerMask() const {return fTriggerMask;} | |
32 | UInt_t GetOrbitNumber() const {return fOrbitNumber;} | |
33 | UInt_t GetTimeStamp() const { return fTimeStamp;} | |
34 | UInt_t GetEventType() const { return fEventType;} | |
35 | Int_t GetEventNumberInFile() const {return fEventNumberInFile;} | |
36 | UShort_t GetBunchCrossNumber() const {return fBunchCrossNumber;} | |
37 | UChar_t GetTriggerCluster() const {return fTriggerCluster;} | |
38 | ||
39 | ||
40 | ||
41 | void Reset(); | |
42 | void Print(const Option_t *opt=0) const; | |
43 | private: | |
44 | ||
45 | // Event Identification | |
46 | ULong64_t fTriggerMask; // Trigger Type (mask) | |
47 | UInt_t fOrbitNumber; // Orbit Number | |
48 | UInt_t fTimeStamp; // Time stamp | |
49 | UInt_t fEventType; // Type of Event | |
50 | Int_t fEventNumberInFile; // running Event count in the file | |
51 | UShort_t fBunchCrossNumber; // Bunch Crossing Number | |
52 | UChar_t fTriggerCluster; // Trigger cluster (mask) | |
53 | ||
54 | ClassDef(AliESDHeader,1) | |
55 | }; | |
56 | ||
57 | #endif |