]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSTransientDigit.cxx
Use of appropriate sensor depending response objects in SPD simulation
[u/mrichter/AliRoot.git] / ITS / AliITSTransientDigit.cxx
CommitLineData
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
28ClassImp(AliITSTransientDigit)
29
30//______________________________________________________________________
31AliITSTransientDigit::AliITSTransientDigit(Float_t phys,const Int_t *digits):
32 AliITSdigitSDD(phys,digits) {
33 // Creates a digit object in a list of digits to be updated
34
35 fTrackList = new TObjArray;
36}
37//__________________________________________________________________________
38AliITSTransientDigit::AliITSTransientDigit(const AliITSTransientDigit &source):
39 AliITSdigitSDD(source){
40 // Copy Constructor
41 if(&source == this) return;
42 this->fTrackList = source.fTrackList;
43 return;
44}
45//_________________________________________________________________________
46AliITSTransientDigit& AliITSTransientDigit::operator=(
47 const AliITSTransientDigit &source) {
48 // Assignment operator
49 if(&source == this) return *this;
50 this->fTrackList = source.fTrackList;
51 return *this;
52}
53//______________________________________________________________________
54void AliITSTransientDigit::Print(ostream *os){
55 //Standard output format for this class
56
57 AliITSdigitSDD::Print(os);
58}
59//______________________________________________________________________
60void AliITSTransientDigit::Read(istream *os){
61 //Standard input for this class
62
63 AliITSdigitSDD::Read(os);
64}
65//______________________________________________________________________
66ostream &operator<<(ostream &os,AliITSTransientDigit &source){
67 // Standard output streaming function.
68
69 source.Print(&os);
70 return os;
71}
72//______________________________________________________________________
73istream &operator>>(istream &os,AliITSTransientDigit &source){
74 // Standard output streaming function.
75
76 source.Read(&os);
77 return os;
78}