Line data Source code
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 : $Log$
18 : Revision 1.1 2007/04/27 11:03:09 arcelli
19 : container for TOF raw data
20 :
21 : authors: Roberto Preghenella, preghenella@bo.infn.it
22 : with contribution from Chiara Zampolli, zampolli@bo.infn.it
23 : */
24 :
25 :
26 : ////////////////////////////////////////////////////////////////////////
27 : // //
28 : // This class provides access to TOF raw data in DDL files. //
29 : // //
30 : // It loops over all TOF raw data given by the AliRawReader. //
31 : // //
32 : ////////////////////////////////////////////////////////////////////////
33 :
34 : #include "AliTOFHitDataBuffer.h"
35 : #include "AliTOFHitData.h"
36 :
37 26 : ClassImp(AliTOFHitDataBuffer)
38 :
39 : AliTOFHitDataBuffer::AliTOFHitDataBuffer() :
40 1440 : TObject(),
41 1440 : fBuffer("AliTOFHitData")
42 7200 : {
43 1440 : fBuffer.SetOwner(kTRUE);
44 2880 : }
45 :
46 : //-----------------------------------------------------------------------------
47 :
48 : AliTOFHitDataBuffer::AliTOFHitDataBuffer(Int_t size) :
49 0 : TObject(),
50 0 : fBuffer("AliTOFHitData", size)
51 0 : {
52 0 : fBuffer.SetOwner(kTRUE);
53 0 : }
54 :
55 : //-----------------------------------------------------------------------------
56 :
57 : AliTOFHitDataBuffer::~AliTOFHitDataBuffer()
58 4608 : {
59 2304 : }
60 :
61 : //-----------------------------------------------------------------------------
62 :
63 : AliTOFHitDataBuffer& AliTOFHitDataBuffer::operator=(const AliTOFHitDataBuffer & source) {
64 : // operator =
65 0 : if (&source != this) {
66 0 : TObject::operator=(source);
67 0 : fBuffer = source.fBuffer;
68 0 : }
69 0 : return *this;
70 : }
71 :
72 : //-----------------------------------------------------------------------------
73 : Bool_t AliTOFHitDataBuffer::Add(AliTOFHitData &HitData) {
74 : // adding a new entry
75 :
76 0 : new (fBuffer[GetEntries()]) AliTOFHitData(HitData);
77 0 : return kFALSE;
78 0 : }
79 :
80 :
|