4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ///////////////////////////////////////////////////////////////////////////////
9 // Class represents CTP interaction record
11 // The definition of the IR follows the ALICE internal note:
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).
17 // cvetan.cheshkov@cern.ch 10/07/2008
19 ///////////////////////////////////////////////////////////////////////////////
23 class AliTriggerIR : public TObject {
27 AliTriggerIR(UInt_t orbit, UInt_t nwords, UInt_t *words, Bool_t incomplete = kFALSE, Bool_t transerr = kFALSE);
29 AliTriggerIR(const AliTriggerIR &rec);
30 AliTriggerIR& operator= (const AliTriggerIR& rec);
32 virtual ~AliTriggerIR();
35 void SetOrbit(UInt_t orbit) {fOrbit=orbit;}
36 void SetIncomplete(Bool_t flag) {fIncomplete=flag;}
37 void SetTransErr(Bool_t flag) {fTransErr=flag;}
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;}
47 virtual void Print( const Option_t* opt ="" ) const;
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
58 ClassDef( AliTriggerIR, 1 ) // Trigger Interaction Record (one per orbit)