]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSt1ResponseRule.h
Removing memory allocation in constructor AliMUONData(name,title)
[u/mrichter/AliRoot.git] / MUON / AliMUONSt1ResponseRule.h
1 #ifndef ALI_MUON_ST1_RESPONSE_RULE_H
2 #define ALI_MUON_ST1_RESPONSE_RULE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 // Authors: David Guez, Ivana Hrivnacova, Marion MacCormick; IPN Orsay
9 //
10 // Class AliMUONSt1ResponseRule
11 // -----------------------------
12 // Describes a response rule.
13 // A "rule" is defined as being a set of electronic filters to be applied 
14 // (ie. a set of AliMUONSt1ResponseParameter) and a set of cathode pads to 
15 // which these filters should be applied (set of AliMUONSt1ElectronicElement)
16
17 #include <TObject.h>
18 #include <TList.h>
19 #include "AliMpPad.h"
20
21 class AliMUONSt1ElectronicElement;
22 class AliMUONSt1ResponseParameter;
23
24 class AliMUONSt1ResponseRule : public TObject 
25 {
26   public:
27     AliMUONSt1ResponseRule();
28     virtual ~AliMUONSt1ResponseRule();
29   
30     void   AddElement(AliMUONSt1ElectronicElement* element);
31     void   AddParameter(AliMUONSt1ResponseParameter* param);
32     Bool_t Contains(const AliMpPad& pad) const;
33     TList* GetParameters() {return &fParameters;}
34
35   private:
36     TList  fElementList;// list of electronic elements to which this rule is applied
37     TList  fParameters; // parameters for this rule
38
39   ClassDef(AliMUONSt1ResponseRule,1) // A set of electronic elements and the linked electronic parameters 
40 };
41
42 #endif //ALI_MUON_ST1_RESPONSE_RULE_H