]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 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 | ||
88cb7938 | 16 | /* $Id$ */ |
0b572028 | 17 | |
0b572028 | 18 | //////////////////////////////////////////////////////////////////////// |
19 | // This Class owns the classes needed to to detector simulations and | |
20 | // reconstruction. This includes the detector segmentation classes, | |
21 | // the detector responce classes, the detector simulatin classes, and | |
22 | // the detector reconstruction (clustering) classes for all of the ITS | |
23 | // detectors. | |
24 | //////////////////////////////////////////////////////////////////////// | |
2f8d3f63 | 25 | #include "AliITSDetType.h" |
c0904637 | 26 | #include "AliITSClusterFinder.h" |
27 | #include "AliITSsimulation.h" | |
28 | ||
0b572028 | 29 | |
b0f5e3fc | 30 | ClassImp(AliITSDetType) |
31 | ||
8dd1cfa6 | 32 | //______________________________________________________________________ |
2f8d3f63 | 33 | AliITSDetType::AliITSDetType(){ |
34 | // constructor | |
35 | ||
36 | fSegmentation = 0; | |
37 | fResponse = 0; | |
38 | fSimulation = 0; | |
39 | fReconst = 0; | |
b0f5e3fc | 40 | } |
2f8d3f63 | 41 | //---------------------------------------------------------------------- |
42 | AliITSDetType::~AliITSDetType(){ | |
43 | // destructor | |
8dd1cfa6 | 44 | |
2f8d3f63 | 45 | if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0; |
fd2f354c | 46 | if(fResponse!=0) delete fResponse; fResponse = 0; |
2f8d3f63 | 47 | if(fSimulation!=0) delete fSimulation; fSimulation = 0; |
48 | if(fReconst!=0) delete fReconst; fReconst = 0; | |
c0904637 | 49 | } |
2f8d3f63 | 50 | //______________________________________________________________________ |
ac74f489 | 51 | AliITSDetType::AliITSDetType(const AliITSDetType &source) : TObject(source){ |
b0f5e3fc | 52 | // Copy Constructor |
c0904637 | 53 | |
b0f5e3fc | 54 | if(&source == this) return; |
2f8d3f63 | 55 | this->fReconst = source.fReconst; |
56 | this->fSimulation = source.fSimulation; | |
57 | this->fResponse = source.fResponse; | |
58 | this->fSegmentation = source.fSegmentation; | |
59 | this->fDigClassName = source.fDigClassName; | |
b0f5e3fc | 60 | this->fClustClassName = source.fClustClassName; |
61 | return; | |
62 | } | |
2f8d3f63 | 63 | //______________________________________________________________________ |
b0f5e3fc | 64 | AliITSDetType& AliITSDetType::operator=(const AliITSDetType &source){ |
65 | // Assignment operator | |
2f8d3f63 | 66 | |
b0f5e3fc | 67 | if(&source == this) return *this; |
2f8d3f63 | 68 | this->fReconst = source.fReconst; |
69 | this->fSimulation = source.fSimulation; | |
70 | this->fResponse = source.fResponse; | |
71 | this->fSegmentation = source.fSegmentation; | |
72 | this->fDigClassName = source.fDigClassName; | |
b0f5e3fc | 73 | this->fClustClassName = source.fClustClassName; |
2f8d3f63 | 74 | return *this; |
b0f5e3fc | 75 | } |