]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSDetType.cxx
Bug fix for SDD test beam simulation.
[u/mrichter/AliRoot.git] / ITS / AliITSDetType.cxx
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 /* $Id$ */
17
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 ////////////////////////////////////////////////////////////////////////
25 #include "AliITSDetType.h"
26 #include "AliITSClusterFinder.h"
27 #include "AliITSsimulation.h"
28
29
30 ClassImp(AliITSDetType)  
31
32 //______________________________________________________________________
33 AliITSDetType::AliITSDetType(){
34     // constructor
35
36     fSegmentation = 0;
37     fResponse     = 0;
38     fSimulation   = 0;
39     fReconst      = 0;
40 }
41 //----------------------------------------------------------------------
42 AliITSDetType::~AliITSDetType(){
43     // destructor
44
45     if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0;
46     if(fResponse!=0)     delete fResponse;     fResponse     = 0;
47     if(fSimulation!=0)   delete fSimulation;   fSimulation   = 0;
48     if(fReconst!=0)      delete fReconst;      fReconst      = 0;
49 }
50 //______________________________________________________________________
51 AliITSDetType::AliITSDetType(const AliITSDetType &source) : TObject(source){
52   //     Copy Constructor 
53
54   if(&source == this) return;
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;
60   this->fClustClassName = source.fClustClassName;
61   return;
62 }
63 //______________________________________________________________________
64 AliITSDetType& AliITSDetType::operator=(const AliITSDetType &source){
65   //    Assignment operator
66
67   if(&source == this) return *this;
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;
73   this->fClustClassName = source.fClustClassName;
74   return *this;  
75 }