Line data Source code
1 : #ifndef AliZDCTriggerParameter_H
2 : #define AliZDCTriggerParameter_H
3 :
4 : /////////////////////////////////////////////////////////////////
5 : // //
6 : // Class containing the parameters that are configured //
7 : // to trigger events with the ZDC (in A-A collisions) //
8 : // Use: store the set of parameters needed to calculate //
9 : // the trigger function sent to the CTP //
10 : // //
11 : // Author: Chiara.Oppedisano@to.infn.it //
12 : // //
13 : /////////////////////////////////////////////////////////////////
14 :
15 : #include <TObject.h>
16 :
17 : class AliZDCTriggerParameters : public TObject{
18 :
19 : public:
20 : AliZDCTriggerParameters();
21 : AliZDCTriggerParameters(Float_t *adcParam, Float_t *discParam);
22 : AliZDCTriggerParameters(const AliZDCTriggerParameters ¶meters);
23 : AliZDCTriggerParameters& operator= (const AliZDCTriggerParameters ¶m);
24 0 : virtual ~AliZDCTriggerParameters() {;}
25 :
26 0 : Float_t GetADCZDCCentralityThr() const {return fADCZEMCentralityThr;}
27 0 : Float_t GetADCMBThreshold() const {return fADCMBThreshold;}
28 0 : const Float_t * GetADCCentralWindow() const {return fADCCentralWindow;}
29 0 : const Float_t * GetADCSemicentralWindow() const {return fADCSemicentralWindow;}
30 0 : const Float_t * GetADCEMDWindow() const {return fADCEMDWindow;}
31 : //
32 0 : Float_t GetDiscZDCCentralityThr() const {return fDiscZEMCentralityThr;}
33 0 : Float_t GetDiscMBThreshold() const {return fDiscMBThreshold;}
34 0 : const Float_t * GetDiscCentralWindow() const {return fDiscCentralWindow;}
35 0 : const Float_t * GetDiscEMDWindow() const {return fDiscEMDWindow;}
36 0 : const Float_t * GetDiscSemicentralWindow() const {return fDiscSemicentralWindow;}
37 :
38 0 : void SetADCZEMCentralityThr(Float_t zemThrVal) {fADCZEMCentralityThr = zemThrVal;}
39 0 : void SetADCMBThreshold(Float_t mbThrVal) {fADCMBThreshold = mbThrVal;}
40 : void SetADCCentralWindow(Float_t* cenThrWin)
41 0 : {for(int i=0; i<2; i++) fADCCentralWindow[i] = cenThrWin[i];}
42 : void SetADCSemicentralWindow(Float_t* semicenThrWin)
43 0 : {for(int i=0; i<2; i++) fADCSemicentralWindow[i] = semicenThrWin[i];}
44 : void SetADCEMDWindow(Float_t* emdWin)
45 0 : {for(int i=0; i<2; i++) fADCEMDWindow[i] = emdWin[i];}
46 : //
47 0 : void SetDiscZEMCentralityThr(Float_t zemThrVal) {fDiscZEMCentralityThr = zemThrVal;}
48 0 : void SetDiscMBThreshold(Float_t mbThrVal) {fDiscMBThreshold = mbThrVal;}
49 : void SetDiscCentralWindow(Float_t* cenThrWin)
50 0 : {for(int i=0; i<2; i++) fDiscCentralWindow[i] = cenThrWin[i];}
51 : void SetDiscSemicentralWindow(Float_t* semicenThrWin)
52 0 : {for(int i=0; i<2; i++) fDiscSemicentralWindow[i] = semicenThrWin[i];}
53 : void SetDiscEMDWindow(Float_t* emdWin)
54 0 : {for(int i=0; i<2; i++) fDiscEMDWindow[i] = emdWin[i];}
55 :
56 : protected:
57 : // --- Configurable parameters
58 : // -> [1] values in ADC channels
59 : Float_t fADCZEMCentralityThr; //ZEM ADC value for centrality selection
60 : Float_t fADCMBThreshold; //ZDC ADC value to trigger MB A-A events
61 : Float_t fADCCentralWindow[2]; //ZDC ADC value to trigger central A-A events
62 : Float_t fADCSemicentralWindow[2]; //ZDC ADC value to trigger semicentral A-A events
63 : Float_t fADCEMDWindow[4]; //ZDC ADC value to trigger EMD events
64 : //
65 : // -> [2] values in discriminator thresholds
66 : Float_t fDiscZEMCentralityThr; //ZEM threshold for centrality selection
67 : Float_t fDiscMBThreshold; //ZDC threshold to trigger MB A-A events
68 : Float_t fDiscCentralWindow[2]; //ZDC threshold to trigger central A-A events
69 : Float_t fDiscSemicentralWindow[2];//ZDC threshold to trigger semicentral A-A events
70 : Float_t fDiscEMDWindow[4]; //ZDC threshold to trigger EMD events
71 :
72 12 : ClassDef(AliZDCTriggerParameters, 1)
73 :
74 : };
75 :
76 : #endif
|