]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONRawStream.cxx
Bug in AliMUONHit constructor for fPz and fPx calculation (Arthur, Bruce and Ivana)
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStream.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 /// This class provides access to MUON digits in raw data.
20 ///
21 /// It loops over all MUON digits in the raw data given by the AliRawReader.
22 /// The Next method goes to the next digit. If there are no digits left
23 /// it returns kFALSE.
24 /// 
25 /// First version implement only the structure for the moment
26 ///
27 ///////////////////////////////////////////////////////////////////////////////
28
29 #include "AliMUONRawStream.h"
30
31 #include "AliRawReader.h"
32
33
34 ClassImp(AliMUONRawStream)
35
36
37 AliMUONRawStream::AliMUONRawStream(AliRawReader* rawReader)
38 {
39 // create an object to read MUON raw digits
40
41   fRawReader = rawReader;
42   fRawReader->Select(0);
43   fData = new UShort_t[fgkDataMax];
44   fDataSize = fPosition = 0;
45   fCount = 0;
46
47 }
48
49 AliMUONRawStream::AliMUONRawStream(const AliMUONRawStream& stream) :
50   TObject(stream)
51 {
52   Fatal("AliMUONRawStream", "copy constructor not implemented");
53 }
54
55 AliMUONRawStream& AliMUONRawStream::operator = (const AliMUONRawStream& 
56                                               /* stream */)
57 {
58   Fatal("operator =", "assignment operator not implemented");
59   return *this;
60 }
61
62 AliMUONRawStream::~AliMUONRawStream()
63 {
64 // clean up
65
66   delete[] fData;
67 }
68
69
70 Bool_t AliMUONRawStream::Next()
71 {
72 // read the next raw digit
73 // returns kFALSE if there is no digit left
74
75   Fatal("Next","method not implemented for raw data input");
76
77
78   return kFALSE;
79 }
80
81