]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCTriggerParameters.cxx
Updates needed for shuttle preprocessor
[u/mrichter/AliRoot.git] / ZDC / AliZDCTriggerParameters.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16
17 /////////////////////////////////////////////////////////////////
18 //                                                             //
19 //    Class containing the parameters that are configured      //
20 //    to trigger events with the ZDC (in A-A collisions)       //
21 //    Use: store the set of parameters needed to calculate     //
22 //    the trigger function sent to the CTP                     //
23 //                                                             //
24 //    Author: Chiara.Oppedisano@to.infn.it                     //
25 //                                                             //
26 /////////////////////////////////////////////////////////////////                                                             
27
28 #include "AliZDCTriggerParameters.h"
29
30 ClassImp(AliZDCTriggerParameters)
31
32 //________________________________________________________________
33 AliZDCTriggerParameters::AliZDCTriggerParameters() :
34 TObject(),
35 fADCZEMCentralityThr(0),
36 fADCMBThreshold(0),
37 fDiscZEMCentralityThr(0),
38 fDiscMBThreshold(0)
39 {
40   // Default constructor
41 }  
42
43 //________________________________________________________________
44 AliZDCTriggerParameters::AliZDCTriggerParameters(Float_t *adcParam, 
45         Float_t *discParam) :
46 fADCZEMCentralityThr(adcParam[0]),
47 fADCMBThreshold(adcParam[1]),
48 fDiscZEMCentralityThr(discParam[0]),
49 fDiscMBThreshold(discParam[1])
50 {
51   // Standard constructor
52   fADCCentralWindow[0] = adcParam[2];
53   fADCCentralWindow[1] = adcParam[3];
54   fADCSemicentralWindow[0] = adcParam[4];
55   fADCSemicentralWindow[1] = adcParam[5];
56   fADCEMDWindow[0] = adcParam[6];
57   fADCEMDWindow[1] = adcParam[7];
58   fADCEMDWindow[2] = adcParam[8];
59   fADCEMDWindow[3] = adcParam[9];
60   //
61   fDiscCentralWindow[0] = discParam[2];
62   fDiscCentralWindow[1] = discParam[3];
63   fDiscSemicentralWindow[0] = discParam[4];
64   fDiscSemicentralWindow[1] = discParam[5];
65   fDiscEMDWindow[0] = discParam[6];
66   fDiscEMDWindow[1] = discParam[7];
67   fDiscEMDWindow[2] = discParam[8];
68   fDiscEMDWindow[3] = discParam[9];
69 }
70
71 //____________________________________________________________________________
72 AliZDCTriggerParameters::AliZDCTriggerParameters(const AliZDCTriggerParameters& oldTrigPar) :
73   TObject(),
74   fADCZEMCentralityThr(oldTrigPar.fADCZEMCentralityThr),
75   fADCMBThreshold(oldTrigPar.fADCMBThreshold),
76   fDiscZEMCentralityThr(oldTrigPar.fDiscZEMCentralityThr),
77   fDiscMBThreshold(oldTrigPar.fDiscMBThreshold)
78 {
79   // Copy constructor
80   fADCCentralWindow[0] = oldTrigPar.fADCCentralWindow[0];
81   fADCCentralWindow[1] = oldTrigPar.fADCCentralWindow[1];
82   fADCSemicentralWindow[0] = oldTrigPar.fADCSemicentralWindow[0];
83   fADCSemicentralWindow[1] = oldTrigPar.fADCSemicentralWindow[1];
84   fADCEMDWindow[0] = oldTrigPar.fADCEMDWindow[0];
85   fADCEMDWindow[1] = oldTrigPar.fADCEMDWindow[1];
86   fADCEMDWindow[2] = oldTrigPar.fADCEMDWindow[2];
87   fADCEMDWindow[3] = oldTrigPar.fADCEMDWindow[3];
88   //
89   fDiscCentralWindow[0] = oldTrigPar.fDiscCentralWindow[0];
90   fDiscCentralWindow[1] = oldTrigPar.fDiscCentralWindow[1];
91   fDiscSemicentralWindow[0] = oldTrigPar.fDiscSemicentralWindow[0];
92   fDiscSemicentralWindow[1] = oldTrigPar.fDiscSemicentralWindow[1];
93   fDiscEMDWindow[0] = oldTrigPar.fDiscEMDWindow[0];
94   fDiscEMDWindow[1] = oldTrigPar.fDiscEMDWindow[1];
95   fDiscEMDWindow[2] = oldTrigPar.fDiscEMDWindow[2];
96   fDiscEMDWindow[3] = oldTrigPar.fDiscEMDWindow[3];
97   
98 }