1 #ifndef AliZDCTriggerParameter_H
2 #define AliZDCTriggerParameter_H
4 /////////////////////////////////////////////////////////////////
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 //
11 // Author: Chiara.Oppedisano@to.infn.it //
13 /////////////////////////////////////////////////////////////////
17 class AliZDCTriggerParameters : public TObject{
20 AliZDCTriggerParameters();
21 AliZDCTriggerParameters(Float_t *adcParam, Float_t *discParam);
22 AliZDCTriggerParameters(const AliZDCTriggerParameters ¶meters);
23 virtual ~AliZDCTriggerParameters() {;}
25 Float_t GetADCZDCCentralityThr() const {return fADCZEMCentralityThr;}
26 Float_t GetADCMBThreshold() const {return fADCMBThreshold;}
27 const Float_t * GetADCCentralWindow() const {return fADCCentralWindow;}
28 const Float_t * GetADCSemicentralWindow() const {return fADCSemicentralWindow;}
29 const Float_t * GetADCEMDWindow() const {return fADCEMDWindow;}
31 Float_t GetDiscZDCCentralityThr() const {return fDiscZEMCentralityThr;}
32 Float_t GetDiscMBThreshold() const {return fDiscMBThreshold;}
33 const Float_t * GetDiscCentralWindow() const {return fDiscCentralWindow;}
34 const Float_t * GetDiscEMDWindow() const {return fDiscEMDWindow;}
35 const Float_t * GetDiscSemicentralWindow() const {return fDiscSemicentralWindow;}
37 void SetADCZEMCentralityThr(Float_t zemThrVal) {fADCZEMCentralityThr = zemThrVal;}
38 void SetADCMBThreshold(Float_t mbThrVal) {fADCMBThreshold = mbThrVal;}
39 void SetADCCentralWindow(Float_t* cenThrWin)
40 {for(int i=0; i<2; i++) fADCCentralWindow[i] = cenThrWin[i];}
41 void SetADCSemicentralWindow(Float_t* semicenThrWin)
42 {for(int i=0; i<2; i++) fADCSemicentralWindow[i] = semicenThrWin[i];}
43 void SetADCEMDWindow(Float_t* emdWin)
44 {for(int i=0; i<2; i++) fADCEMDWindow[i] = emdWin[i];}
46 void SetDiscZEMCentralityThr(Float_t zemThrVal) {fDiscZEMCentralityThr = zemThrVal;}
47 void SetDiscMBThreshold(Float_t mbThrVal) {fDiscMBThreshold = mbThrVal;}
48 void SetDiscCentralWindow(Float_t* cenThrWin)
49 {for(int i=0; i<2; i++) fDiscCentralWindow[i] = cenThrWin[i];}
50 void SetDiscSemicentralWindow(Float_t* semicenThrWin)
51 {for(int i=0; i<2; i++) fDiscSemicentralWindow[i] = semicenThrWin[i];}
52 void SetDiscEMDWindow(Float_t* emdWin)
53 {for(int i=0; i<2; i++) fDiscEMDWindow[i] = emdWin[i];}
56 // --- Configurable parameters
57 // -> [1] values in ADC channels
58 Float_t fADCZEMCentralityThr; //ZEM ADC value for centrality selection
59 Float_t fADCMBThreshold; //ZDC ADC value to trigger MB A-A events
60 Float_t fADCCentralWindow[2]; //ZDC ADC value to trigger central A-A events
61 Float_t fADCSemicentralWindow[2]; //ZDC ADC value to trigger semicentral A-A events
62 Float_t fADCEMDWindow[4]; //ZDC ADC value to trigger EMD events
64 // -> [2] values in discriminator thresholds
65 Float_t fDiscZEMCentralityThr; //ZEM threshold for centrality selection
66 Float_t fDiscMBThreshold; //ZDC threshold to trigger MB A-A events
67 Float_t fDiscCentralWindow[2]; //ZDC threshold to trigger central A-A events
68 Float_t fDiscSemicentralWindow[2];//ZDC threshold to trigger semicentral A-A events
69 Float_t fDiscEMDWindow[4]; //ZDC threshold to trigger EMD events
71 ClassDef(AliZDCTriggerParameters, 1)