1 #ifndef ALIITSDETTYPE_H
2 #define ALIITSDETTYPE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////////////////////////////
9 // This Class owns the classes needed to to detector simulations and
10 // reconstruction. This includes the detector segmentation classes,
11 // the detector responce classes, the detector simulatin classes, and
12 // the detector reconstruction (clustering) classes for all of the ITS
14 ////////////////////////////////////////////////////////////////////////
19 #include "AliITSsegmentation.h"
20 #include "AliITSresponse.h"
22 class AliITSClusterFinder;
23 class AliITSsimulation;
25 class AliITSDetType:public TObject{
29 virtual ~AliITSDetType();
30 AliITSDetType(const AliITSDetType &source); // copy constructor
31 AliITSDetType& operator=(const AliITSDetType &source); // assign. operator
34 virtual void Init() {}
36 virtual void SegmentationModel(AliITSsegmentation* thisSegmentation){
37 // Configure segmentation model
38 if(fSegmentation) delete fSegmentation;
39 fSegmentation=thisSegmentation;
42 virtual void ResponseModel(AliITSresponse* thisResponse) {
43 // Configure response model
44 if(fResponse) delete fResponse;
45 fResponse=thisResponse;
48 virtual void SimulationModel(AliITSsimulation *thisSimulation) {
49 // Configure simulation model
50 fSimulation = thisSimulation;
53 virtual void ReconstructionModel(AliITSClusterFinder *thisReconstruction) {
54 // Configure reconstruction model
55 fReconst = thisReconstruction;
57 virtual void ClassNames(const char *digit, const char *cluster) {
58 // Set class names for digits and clusters
59 fDigClassName=digit; fClustClassName=cluster;
61 AliITSsegmentation* &GetSegmentationModel(){
62 // Get reference to segmentation model
65 AliITSresponse* &GetResponseModel(){
66 // Get reference to response model
69 AliITSsimulation* &GetSimulationModel(){
70 // Get reference to simulation model
73 AliITSClusterFinder* &GetReconstructionModel(){
74 // Get reference to hit reconstruction model
78 void GetClassNames(char *digit,char *cluster){
79 // Get class names for digits and rec points
80 strcpy(digit,fDigClassName.Data());
81 strcpy(cluster,fClustClassName.Data());
85 AliITSresponse *fResponse; // response
86 AliITSsegmentation *fSegmentation; // segmentation
87 AliITSsimulation *fSimulation; // simulation
88 AliITSClusterFinder *fReconst; // cluster finder
90 TString fDigClassName; // string
91 TString fClustClassName; // string
93 ClassDef(AliITSDetType,1) //Detector simulation/reconstruction class holder