LHAPDF veraion 5.9.1
[u/mrichter/AliRoot.git] / ZDC / AliZDCTriggerParameters.h
CommitLineData
3288dac3 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
17class AliZDCTriggerParameters : public TObject{
18
19public:
20 AliZDCTriggerParameters();
21 AliZDCTriggerParameters(Float_t *adcParam, Float_t *discParam);
22 AliZDCTriggerParameters(const AliZDCTriggerParameters &parameters);
be004c43 23 AliZDCTriggerParameters& operator= (const AliZDCTriggerParameters &param);
3288dac3 24 virtual ~AliZDCTriggerParameters() {;}
25
26 Float_t GetADCZDCCentralityThr() const {return fADCZEMCentralityThr;}
27 Float_t GetADCMBThreshold() const {return fADCMBThreshold;}
28 const Float_t * GetADCCentralWindow() const {return fADCCentralWindow;}
29 const Float_t * GetADCSemicentralWindow() const {return fADCSemicentralWindow;}
30 const Float_t * GetADCEMDWindow() const {return fADCEMDWindow;}
31 //
32 Float_t GetDiscZDCCentralityThr() const {return fDiscZEMCentralityThr;}
33 Float_t GetDiscMBThreshold() const {return fDiscMBThreshold;}
34 const Float_t * GetDiscCentralWindow() const {return fDiscCentralWindow;}
35 const Float_t * GetDiscEMDWindow() const {return fDiscEMDWindow;}
36 const Float_t * GetDiscSemicentralWindow() const {return fDiscSemicentralWindow;}
37
38 void SetADCZEMCentralityThr(Float_t zemThrVal) {fADCZEMCentralityThr = zemThrVal;}
39 void SetADCMBThreshold(Float_t mbThrVal) {fADCMBThreshold = mbThrVal;}
40 void SetADCCentralWindow(Float_t* cenThrWin)
41 {for(int i=0; i<2; i++) fADCCentralWindow[i] = cenThrWin[i];}
42 void SetADCSemicentralWindow(Float_t* semicenThrWin)
43 {for(int i=0; i<2; i++) fADCSemicentralWindow[i] = semicenThrWin[i];}
44 void SetADCEMDWindow(Float_t* emdWin)
45 {for(int i=0; i<2; i++) fADCEMDWindow[i] = emdWin[i];}
46 //
47 void SetDiscZEMCentralityThr(Float_t zemThrVal) {fDiscZEMCentralityThr = zemThrVal;}
48 void SetDiscMBThreshold(Float_t mbThrVal) {fDiscMBThreshold = mbThrVal;}
49 void SetDiscCentralWindow(Float_t* cenThrWin)
50 {for(int i=0; i<2; i++) fDiscCentralWindow[i] = cenThrWin[i];}
51 void SetDiscSemicentralWindow(Float_t* semicenThrWin)
52 {for(int i=0; i<2; i++) fDiscSemicentralWindow[i] = semicenThrWin[i];}
53 void SetDiscEMDWindow(Float_t* emdWin)
54 {for(int i=0; i<2; i++) fDiscEMDWindow[i] = emdWin[i];}
55
56protected:
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 ClassDef(AliZDCTriggerParameters, 1)
73
74};
75
76#endif