]>
Commit | Line | Data |
---|---|---|
e869281d | 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 | #include <TObjArray.h> | |
17 | #include "AliITSTransientDigit.h" | |
18 | ||
19 | /////////////////////////////////////////////////////////////////// | |
20 | // // | |
21 | // Class used internally by AliITSsimulationSDD | |
22 | // for SDD digitisation | |
23 | // It is not currently used any longer | |
24 | // The methods in ALiITSsimulationSDD using it are currently commented out | |
25 | // // | |
26 | /////////////////////////////////////////////////////////////////// | |
27 | ||
28 | ClassImp(AliITSTransientDigit) | |
29 | ||
30 | //______________________________________________________________________ | |
31 | AliITSTransientDigit::AliITSTransientDigit(Float_t phys,const Int_t *digits): | |
e56160b8 | 32 | AliITSdigitSDD(phys,digits), |
33 | fTrackList(0) { | |
e869281d | 34 | // Creates a digit object in a list of digits to be updated |
35 | ||
36 | fTrackList = new TObjArray; | |
37 | } | |
38 | //__________________________________________________________________________ | |
39 | AliITSTransientDigit::AliITSTransientDigit(const AliITSTransientDigit &source): | |
e56160b8 | 40 | AliITSdigitSDD(source), |
41 | fTrackList(source.fTrackList){ | |
e869281d | 42 | // Copy Constructor |
e869281d | 43 | } |
44 | //_________________________________________________________________________ | |
45 | AliITSTransientDigit& AliITSTransientDigit::operator=( | |
46 | const AliITSTransientDigit &source) { | |
47 | // Assignment operator | |
e56160b8 | 48 | this->~AliITSTransientDigit(); |
49 | new(this) AliITSTransientDigit(source); | |
50 | return *this; | |
51 | ||
e869281d | 52 | } |
53 | //______________________________________________________________________ | |
54 | void AliITSTransientDigit::Print(ostream *os){ | |
55 | //Standard output format for this class | |
56 | ||
57 | AliITSdigitSDD::Print(os); | |
58 | } | |
59 | //______________________________________________________________________ | |
60 | void AliITSTransientDigit::Read(istream *os){ | |
61 | //Standard input for this class | |
62 | ||
63 | AliITSdigitSDD::Read(os); | |
64 | } | |
65 | //______________________________________________________________________ | |
66 | ostream &operator<<(ostream &os,AliITSTransientDigit &source){ | |
67 | // Standard output streaming function. | |
68 | ||
69 | source.Print(&os); | |
70 | return os; | |
71 | } | |
72 | //______________________________________________________________________ | |
73 | istream &operator>>(istream &os,AliITSTransientDigit &source){ | |
74 | // Standard output streaming function. | |
75 | ||
76 | source.Read(&os); | |
77 | return os; | |
78 | } |