add external setter for MC parents list
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerData.h
CommitLineData
916f1e76 1#ifndef ALIEMCALTRIGGERDATA_H
2#define ALIEMCALTRIGGERDATA_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/*
de39a0ff 7EMCal trigger data container: can be used independently of the data stream (simulation or raw data)
da6062af 8for transient storage of trigger data
916f1e76 9Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
10*/
11
de39a0ff 12#include "AliEMCALTriggerTypes.h"
13
916f1e76 14#include <TObject.h>
15#include <TVector2.h>
916f1e76 16#include <TClonesArray.h>
17
18class AliEMCALTriggerData : public TObject
19{
20
21public:
22 AliEMCALTriggerData();
23 virtual ~AliEMCALTriggerData();
de39a0ff 24
25 virtual void SetMode(Int_t i) {fMode = i;}
916f1e76 26
de39a0ff 27 virtual void SetL0Trigger( Int_t i, Int_t j, Int_t k) { fL0Trigger[i][j] = k; }
916f1e76 28
63c22917 29 virtual void SetL1GammaThreshold(int i, int v) {fL1GammaThreshold[i] = v;}
30 virtual void SetL1JetThreshold( int i, int v) { fL1JetThreshold[i] = v;}
da6062af 31 virtual void SetL1V0( Int_t* v) {for (int i = 0; i < 2; i++) fL1V0[i] = v[i];}
32 virtual void SetL1FrameMask( Int_t v) { fL1FrameMask = v;}
63c22917 33 virtual void SetL1TriggerType( Int_t* v) {for (int i = 0; i < 15; i++) fL1TriggerType[i] = v[i];}
916f1e76 34
521ea43e 35 virtual void SetL1DataDecoded( Int_t v) { fL1DataDecoded = v;}
804b828a 36 virtual void SetL1RawData( Int_t v) { fL1RawData = v;}
37
de39a0ff 38 virtual void GetL0Trigger( Int_t i, Int_t j, Int_t& k ) const { k = fL0Trigger[i][j];}
39 virtual Int_t GetL0Trigger( Int_t i, Int_t j ) const {return fL0Trigger[i][j];}
40
63c22917 41 virtual Int_t GetL1GammaThreshold(int i) const {return fL1GammaThreshold[i];}
42 virtual Int_t GetL1JetThreshold( int i) const {return fL1JetThreshold[i];}
da6062af 43 virtual void GetL1V0( Int_t v[]) const {for (int i = 0; i < 2; i++) v[i] = fL1V0[i];}
44 virtual Int_t GetL1FrameMask( ) const {return fL1FrameMask;}
63c22917 45 virtual void GetL1TriggerType( Int_t v[]) const {for (int i = 0; i < 15; i++) v[i] = fL1TriggerType[i];}
da6062af 46
521ea43e 47 virtual Int_t GetL1DataDecoded( ) const {return fL1DataDecoded;}
804b828a 48 virtual Int_t GetL1RawData( ) const {return fL1RawData;}
49
de39a0ff 50 virtual Int_t GetMode() const {return fMode;}
51
52 virtual void Scan() const;
53 virtual void Reset();
916f1e76 54
55private:
56
57 AliEMCALTriggerData(const AliEMCALTriggerData& rhs); // NOT implemented
58 AliEMCALTriggerData& operator=(const AliEMCALTriggerData& rhs); // NOT implemented
59
79b05051 60 Int_t fMode; // Simulation/Raw
de39a0ff 61
79b05051 62 Int_t fL0Trigger[2][32]; // Triggering TRU
de39a0ff 63
63c22917 64 Int_t fL1GammaThreshold[2]; // L1-g threshold
65 Int_t fL1JetThreshold[2]; // L1-j threshold
916f1e76 66
79b05051 67 Int_t fL1V0[2]; // V0 charges
68 Int_t fL1FrameMask; // Frame mask
63c22917 69 Int_t fL1TriggerType[15]; // Trigger type
da6062af 70
79b05051 71 Int_t fL1DataDecoded; // Raw data decoded
804b828a 72 Int_t fL1RawData; // Raw data
73
da6062af 74 ClassDef(AliEMCALTriggerData,2)
916f1e76 75};
76
77#endif