1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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
24 ////////////////////////////////////////////////////////////////////////
25 #include "AliITSDetType.h"
26 #include "AliITSClusterFinder.h"
27 #include "AliITSsimulation.h"
30 ClassImp(AliITSDetType)
32 //______________________________________________________________________
33 AliITSDetType::AliITSDetType():
42 // Default constructor.
48 // A default constructed AliITSDetType class.
50 //______________________________________________________________________
51 AliITSDetType::AliITSDetType(AliITSDetector det,AliITSresponse *res,
52 AliITSsegmentation *seg,AliITSsimulation *sim,
53 AliITSClusterFinder *cf,
54 const Char_t *DigClassName,
55 const Char_t *ClustClassName):
62 fDigClassName(DigClassName),
63 fClustClassName(ClustClassName){
64 // Standard constructor
66 // AliITSDetector det Detector type
67 // AliITSresponse *res response class to use
68 // AliITSsegmentation *seg Segmentation class to use
69 // AliITSsimulation *sim Simulation class to use
70 // AliITSClusterFinder *cf Cluster Finder/Reconstruction class to use
71 // const Char_t DigClassName Name of the digit class to be used
72 // const Char_t ClustClassName Name of the cluster class to be
77 // A Standard constructed AliITSDetType class.
79 //----------------------------------------------------------------------
80 AliITSDetType::~AliITSDetType(){
89 if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0;
90 if(fResponse!=0) delete fResponse; fResponse = 0;
91 if(fSimulation!=0) delete fSimulation; fSimulation = 0;
92 if(fReconst!=0) delete fReconst; fReconst = 0;
94 //______________________________________________________________________
95 AliITSDetType::AliITSDetType(const AliITSDetType &source) : TObject(source){
98 // const AliITSDetType &source class to copy from.
104 if(&source == this) return;
105 this->fDetType = source.fDetType;
106 this->fReconst = source.fReconst;
107 this->fSimulation = source.fSimulation;
108 this->fResponse = source.fResponse;
109 this->fSegmentation = source.fSegmentation;
110 this->fDigClassName = source.fDigClassName;
111 this->fClustClassName = source.fClustClassName;
114 //______________________________________________________________________
115 AliITSDetType& AliITSDetType::operator=(const AliITSDetType &source){
116 // Assignment operator
118 // const AliITSDetType &source class to copy from.
122 // a new AliITSDetType class with the same values as in source.
124 if(&source == this) return *this;
125 this->fDetType = source.fDetType;
126 this->fReconst = source.fReconst;
127 this->fSimulation = source.fSimulation;
128 this->fResponse = source.fResponse;
129 this->fSegmentation = source.fSegmentation;
130 this->fDigClassName = source.fDigClassName;
131 this->fClustClassName = source.fClustClassName;