]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSDetType.cxx
Continuation of TFlukaGeo based on TGeo.
[u/mrichter/AliRoot.git] / ITS / AliITSDetType.cxx
CommitLineData
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 30ClassImp(AliITSDetType)
31
8dd1cfa6 32//______________________________________________________________________
aacedc3e 33AliITSDetType::AliITSDetType():
34TObject(),
35fDetType(kND),
36fResponse(0),
37fSegmentation(0),
38fSimulation(0),
39fReconst(0),
40fDigClassName(""),
41fClustClassName(""){
42 // Default constructor.
43 // Inputs:
44 // none.
45 // Output:
46 // none.
47 // Return:
48 // A default constructed AliITSDetType class.
49}
50//______________________________________________________________________
51AliITSDetType::AliITSDetType(AliITSDetector det,AliITSresponse *res,
52 AliITSsegmentation *seg,AliITSsimulation *sim,
53 AliITSClusterFinder *cf,
54 const Char_t *DigClassName,
55 const Char_t *ClustClassName):
56TObject(),
57fDetType(det),
58fResponse(res),
59fSegmentation(seg),
60fSimulation(sim),
61fReconst(cf),
62fDigClassName(DigClassName),
63fClustClassName(ClustClassName){
64 // Standard constructor
65 // Inputs:
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
73 // used
74 // Output:
75 // none.
76 // Return:
77 // A Standard constructed AliITSDetType class.
b0f5e3fc 78}
2f8d3f63 79//----------------------------------------------------------------------
80AliITSDetType::~AliITSDetType(){
81 // destructor
aacedc3e 82 // Inputs:
83 // none.
84 // Output:
85 // none.
86 // Return:
87 // none.
8dd1cfa6 88
2f8d3f63 89 if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0;
fd2f354c 90 if(fResponse!=0) delete fResponse; fResponse = 0;
2f8d3f63 91 if(fSimulation!=0) delete fSimulation; fSimulation = 0;
92 if(fReconst!=0) delete fReconst; fReconst = 0;
c0904637 93}
2f8d3f63 94//______________________________________________________________________
ac74f489 95AliITSDetType::AliITSDetType(const AliITSDetType &source) : TObject(source){
aacedc3e 96 // Copy Constructor
97 // Inputs:
98 // const AliITSDetType &source class to copy from.
99 // Output:
100 // none.
101 // Return:
102 // none.
c0904637 103
aacedc3e 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;
112 return;
b0f5e3fc 113}
2f8d3f63 114//______________________________________________________________________
b0f5e3fc 115AliITSDetType& AliITSDetType::operator=(const AliITSDetType &source){
aacedc3e 116 // Assignment operator
117 // Inputs:
118 // const AliITSDetType &source class to copy from.
119 // Output:
120 // none.
121 // Return:
122 // a new AliITSDetType class with the same values as in source.
2f8d3f63 123
aacedc3e 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;
132 return *this;
b0f5e3fc 133}