Adding macros to create Calibration objects
[u/mrichter/AliRoot.git] / TRD / TRDbase / AliTRDCalMonitoring.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 /* $Id$ */
17
18 ///////////////////////////////////////////////////////////////////////////////
19 //                                                                           //
20 //  TRD calibration class for monitoring data                                //
21 //                                                                           //
22 ///////////////////////////////////////////////////////////////////////////////
23
24 #include "AliTRDCalMonitoring.h"
25
26 ClassImp(AliTRDCalMonitoring)
27
28 //_____________________________________________________________________________
29 AliTRDCalMonitoring::AliTRDCalMonitoring()
30   :TNamed()
31   ,fDriftVelocity(0)
32   ,fGasComposition(0)
33   ,fEnvironmentTemperature(0)
34 {
35   //
36   // AliTRDCalMonitoring default constructor
37   //
38   
39   for (Int_t i=0; i<540; ++i) {
40     fAnodeCurrentsMin[i] = 0;
41     fAnodeCurrentsMax[i] = 0;
42     fDriftCurrentsMin[i] = 0;
43     fDriftCurrentsMax[i] = 0;
44     fAnodeVoltagesMin[i] = 0;
45     fAnodeVoltagesMax[i] = 0;
46     fDriftVoltagesMin[i] = 0;
47     fDriftVoltagesMax[i] = 0;
48   }
49   for (Int_t i=0; i<360; ++i) {
50     fLVVoltage[i] = 0;
51     fLVCurrent[i] = 0;
52   }
53   for (Int_t i=0; i<6700; ++i) {
54     fADCTresholds[i] = 0;
55   }
56
57 }
58
59 //_____________________________________________________________________________
60 AliTRDCalMonitoring::AliTRDCalMonitoring(const Text_t *name, const Text_t *title)
61   :TNamed(name,title)
62   ,fDriftVelocity(0)
63   ,fGasComposition(0)
64   ,fEnvironmentTemperature(0)
65 {
66   //
67   // AliTRDCalMonitoring constructor
68   //
69
70   for (Int_t i=0; i<540; ++i) {
71     fAnodeCurrentsMin[i] = 0;
72     fAnodeCurrentsMax[i] = 0;
73     fDriftCurrentsMin[i] = 0;
74     fDriftCurrentsMax[i] = 0;
75     fAnodeVoltagesMin[i] = 0;
76     fAnodeVoltagesMax[i] = 0;
77     fDriftVoltagesMin[i] = 0;
78     fDriftVoltagesMax[i] = 0;
79   }
80   for (Int_t i=0; i<360; ++i) {
81     fLVVoltage[i] = 0;
82     fLVCurrent[i] = 0;
83   }
84   for (Int_t i=0; i<6700; ++i) {
85     fADCTresholds[i] = 0;
86   }
87
88 }
89