]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSCalibration.cxx
Fixes for report #68312: Improper usage of TClonesArrays in ITS
[u/mrichter/AliRoot.git] / ITS / AliITSCalibration.cxx
CommitLineData
fcf95fc7 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
2ae37d58 16/* $Id$ */
fcf95fc7 17
18//////////////////////////////////////////////////////
19// Calibration class for set:ITS //
20// Specific subdetector implementation is done in //
21// AliITSCalibrationSPD //
22// AliITSCalibrationSDD //
23// AliITSCalibrationSSD //
24//////////////////////////////////////////////////////
25
090026bf 26#include <Riostream.h>
27#include <TMath.h>
28
fcf95fc7 29#include "AliITSCalibration.h"
154bfd38 30#include "AliLog.h"
fcf95fc7 31
32ClassImp(AliITSCalibration)
33
34//______________________________________________________________________
4bfbde86 35AliITSCalibration::AliITSCalibration():
36TObject(),
37fDataType(),
bb292d31 38fT(300.)
39{
4bfbde86 40 // Default Constructor (300 microns and 80 volts)
bb292d31 41
fcf95fc7 42}
fcf95fc7 43
44//______________________________________________________________________
154bfd38 45AliITSCalibration::AliITSCalibration(const AliITSCalibration &ob):
e56160b8 46TObject(ob),
47fDataType(ob.fDataType),
bb292d31 48fT(ob.fT)
49
154bfd38 50{
51 // Copy constructor
154bfd38 52
e56160b8 53}
fcf95fc7 54//----------------------------------------------------------------------
55void AliITSCalibration::Print(ostream *os) const {
56 // Standard output format for this class.
57 // Inputs:
2ae37d58 58 *os << fT << " ";
fcf95fc7 59 // printf("%-10.6e %-10.6e %-10.6e %-10.6e \n",fdv,fN,fT,fGeVcharge);
60 return;
61}
62//----------------------------------------------------------------------
63void 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
2ae37d58 72 *is >> fT;
fcf95fc7 73 return;
74}
75//----------------------------------------------------------------------
76
77ostream &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//----------------------------------------------------------------------
91istream &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//----------------------------------------------------------------------