]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSCalibration.cxx
Fix for the case of non-existent calibration files
[u/mrichter/AliRoot.git] / ITS / AliITSCalibration.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 //  Calibration class for set:ITS                   //
20 //  Specific subdetector implementation is done in  //
21 //  AliITSCalibrationSPD                            //
22 //  AliITSCalibrationSDD                            //
23 //  AliITSCalibrationSSD                            //
24 //////////////////////////////////////////////////////
25
26 #include <Riostream.h>
27 #include <TMath.h>
28
29 #include "AliITSCalibration.h"
30 #include "AliLog.h"
31
32 ClassImp(AliITSCalibration)
33
34 //______________________________________________________________________
35 AliITSCalibration::AliITSCalibration():
36 TObject(),
37 fDataType(),
38 fT(300.)
39 {
40     // Default Constructor (300 microns and 80 volts)
41
42 }
43
44 //______________________________________________________________________
45 AliITSCalibration::AliITSCalibration(const AliITSCalibration &ob):
46 TObject(ob),
47 fDataType(ob.fDataType),
48 fT(ob.fT)
49
50 {
51   // Copy constructor
52
53 }
54 //----------------------------------------------------------------------
55 void AliITSCalibration::Print(ostream *os) const {
56   // Standard output format for this class.
57   // Inputs:
58     *os << fT << " ";
59   //    printf("%-10.6e  %-10.6e %-10.6e %-10.6e \n",fdv,fN,fT,fGeVcharge);
60     return;
61 }
62 //----------------------------------------------------------------------
63 void AliITSCalibration::Read(istream *is) {
64   // Standard input format for this class.
65   // Inputs:
66   //    ostream *is  Pointer to the output stream
67   // Outputs:
68   //    none:
69   // Return:
70   //    none.
71
72     *is >> fT;
73     return;
74 }
75 //----------------------------------------------------------------------
76
77 ostream &operator<<(ostream &os,AliITSCalibration &p){
78   // Standard output streaming function.
79   // Inputs:
80   //    ostream *os  Pointer to the output stream
81   // Outputs:
82   //    none:
83   // Return:
84   //    none.
85
86     p.Print(&os);
87     return os;
88 }
89
90 //----------------------------------------------------------------------
91 istream &operator>>(istream &is,AliITSCalibration &r){
92   // Standard input streaming function.
93   // Inputs:
94   //    ostream *os  Pointer to the output stream
95   // Outputs:
96   //    none:
97   // Return:
98   //    none.
99
100     r.Read(&is);
101     return is;
102 }
103 //----------------------------------------------------------------------