]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRawStream.cxx
Introduce extern for the common block references
[u/mrichter/AliRoot.git] / MUON / AliMUONRawStream.cxx
CommitLineData
cf464691 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"
8c343c7c 32#include "AliLog.h"
cf464691 33
34
35ClassImp(AliMUONRawStream)
36
37
38AliMUONRawStream::AliMUONRawStream(AliRawReader* rawReader)
39{
40// create an object to read MUON raw digits
41
42 fRawReader = rawReader;
43 fRawReader->Select(0);
44 fData = new UShort_t[fgkDataMax];
45 fDataSize = fPosition = 0;
46 fCount = 0;
47
48}
49
50AliMUONRawStream::AliMUONRawStream(const AliMUONRawStream& stream) :
51 TObject(stream)
52{
8c343c7c 53 AliFatal("copy constructor not implemented");
cf464691 54}
55
56AliMUONRawStream& AliMUONRawStream::operator = (const AliMUONRawStream&
57 /* stream */)
58{
8c343c7c 59 AliFatal("assignment operator not implemented");
cf464691 60 return *this;
61}
62
63AliMUONRawStream::~AliMUONRawStream()
64{
65// clean up
66
67 delete[] fData;
68}
69
70
71Bool_t AliMUONRawStream::Next()
72{
73// read the next raw digit
74// returns kFALSE if there is no digit left
75
8c343c7c 76 AliFatal("method not implemented for raw data input");
cf464691 77
78
79 return kFALSE;
80}
81
82