Bug corrected.
[u/mrichter/AliRoot.git] / STEER / AliTriggerIR.h
CommitLineData
ce9ace8c 1#ifndef ALITRIGGERIR_H
2#define ALITRIGGERIR_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7///////////////////////////////////////////////////////////////////////////////
8//
9// Class represents CTP interaction record
10//
11// The definition of the IR follows the ALICE internal note:
12// ALICE-INT-2002-010
13// The CTP raw-data payload will contain IRs within +- 1 orbit
14// around the triggered event.
15// The same IRs are propagated to the ESD (and AOD).
16//
17// cvetan.cheshkov@cern.ch 10/07/2008
18//
19///////////////////////////////////////////////////////////////////////////////
20
21#include <TObject.h>
22
23class AliTriggerIR : public TObject {
24
25public:
26 AliTriggerIR();
27 AliTriggerIR(UInt_t orbit, UInt_t nwords, UInt_t *words, Bool_t incomplete = kFALSE, Bool_t transerr = kFALSE);
28
29 AliTriggerIR(const AliTriggerIR &rec);
30 AliTriggerIR& operator= (const AliTriggerIR& rec);
31
32 virtual ~AliTriggerIR();
33
34 // Setters
4c387f07 35 void SetOrbit(UInt_t orbit) {fOrbit=orbit;}
36 void SetIncomplete(Bool_t flag) {fIncomplete=flag;}
37 void SetTransErr(Bool_t flag) {fTransErr=flag;}
ce9ace8c 38
39 // Getters
4c387f07 40 UInt_t GetOrbit() const {return fOrbit;}
41 UInt_t GetNWord() const {return fNWord;}
42 Bool_t* GetInt1s() const {return fInt1;}
43 Bool_t* GetInt2s() const {return fInt2;}
44 UShort_t* GetBCs() const {return fBC;}
45 Bool_t GetIncomplete() const {return fIncomplete;}
46 Bool_t GetTransErr() const {return fTransErr;}
ce9ace8c 47 virtual void Print( const Option_t* opt ="" ) const;
48
49private:
50 UInt_t fOrbit; // Orbit number
51 UInt_t fNWord; // Number of recorded interaction signals
52 Bool_t *fInt1; //[fNWord] signals for interaction 1
53 Bool_t *fInt2; //[fNWord] signals for interaction 2
54 UShort_t *fBC; //[fNWord] bunch-crossing number
55 Bool_t fIncomplete; // flag which says if the IR is incomplete or not
56 Bool_t fTransErr; // flag which says if there was a transmission error (gap) or not
57
58 ClassDef( AliTriggerIR, 1 ) // Trigger Interaction Record (one per orbit)
59};
60
61#endif