]>
Commit | Line | Data |
---|---|---|
d5ebf00e | 1 | // -*- mode: C++ -*- |
2 | #ifndef ALIESDCALOTRIGGER_H | |
3 | #define ALIESDCALOTRIGGER_H | |
4 | ||
5 | ||
6 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
7 | * See cxx source for full Copyright notice */ | |
8 | ||
9 | ||
10 | //------------------------------------------------------------------------- | |
11 | // Class AliESDCaloTrigger | |
12 | // This is a class that summarizes the Trigger Data of EMCal and Phos | |
13 | // for the ESD | |
14 | // Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch | |
15 | //------------------------------------------------------------------------- | |
16 | ||
17 | ||
18 | ||
19 | #include <TNamed.h> | |
20 | #include <TArrayF.h> | |
21 | ||
22 | ||
23 | ||
24 | ||
25 | class AliESDCaloTrigger : public TNamed { | |
26 | public: | |
27 | AliESDCaloTrigger(); | |
28 | AliESDCaloTrigger(const AliESDCaloTrigger& ctrig); | |
29 | AliESDCaloTrigger& operator=(const AliESDCaloTrigger& ctrig); | |
30 | virtual ~AliESDCaloTrigger(); | |
732a24fe | 31 | virtual void Copy(TObject &obj) const; |
d5ebf00e | 32 | |
17773e2e | 33 | void AddTriggerPosition(const TArrayF & array) { |
732a24fe | 34 | if(fTriggerPosition) *fTriggerPosition = array; |
35 | else fTriggerPosition = new TArrayF(array); | |
17773e2e | 36 | } |
37 | ||
38 | void AddTriggerAmplitudes(const TArrayF & array) { | |
732a24fe | 39 | if(fTriggerAmplitudes) *fTriggerAmplitudes = array; |
40 | else fTriggerAmplitudes = new TArrayF(array); | |
17773e2e | 41 | } |
d5ebf00e | 42 | |
43 | void Reset(); | |
44 | ||
45 | TArrayF* GetTriggerPosition() {return fTriggerPosition;} | |
2ea3aa22 | 46 | TArrayF* GetTriggerAmplitudes() {return fTriggerAmplitudes;} |
d5ebf00e | 47 | |
48 | ||
49 | private: | |
50 | ||
51 | TArrayF *fTriggerAmplitudes; // Amplitude of PHOS or EMCal Trigger | |
52 | TArrayF *fTriggerPosition; // Position of PHOS or EMCal Trigger | |
53 | ||
54 | ClassDef(AliESDCaloTrigger,1) | |
55 | }; | |
56 | ||
57 | ||
58 | #endif | |
59 |