Adding the AliAnalysisGUI class which is the main class that controls the GUI.
[u/mrichter/AliRoot.git] / ITS / AliITSdigit.cxx
1 /**************************************************************************
2  * Copyright(c) 2004-2006, 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 //  Digits classes for all ITS detectors      //
20 //                                            //
21 //                                            //
22 ////////////////////////////////////////////////
23
24 #include "AliITSdigit.h"
25
26
27 //______________________________________________________________________
28 ClassImp(AliITSdigit)
29
30 AliITSdigit::AliITSdigit():
31 fCoord1(0),
32 fCoord2(0),
33 fSignal(0){
34   //default constructor. zero all values.
35 }
36
37
38 AliITSdigit::AliITSdigit(const Int_t *digits):
39 fCoord1(digits[0]),
40 fCoord2(digits[1]),
41 fSignal(digits[2]){
42   // Creates a real data digit object
43
44 }
45 //______________________________________________________________________
46 void AliITSdigit::Print(ostream *os) {
47     //Standard output format for this class
48
49     *os << fCoord1 <<","<< fCoord2 <<","<< fSignal;
50 }
51 //______________________________________________________________________
52 void AliITSdigit::Read(istream *os) {
53     //Standard input for this class
54
55     *os >> fCoord1 >> fCoord2 >> fSignal;
56 }
57 //______________________________________________________________________
58 ostream &operator<<(ostream &os,AliITSdigit &source){
59     // Standard output streaming function.
60
61     source.Print(&os);
62     return os;
63 }
64 //______________________________________________________________________
65 istream &operator>>(istream &os,AliITSdigit &source){
66     // Standard output streaming function.
67
68     source.Read(&os);
69     return os;
70 }
71
72