]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - ITS/AliITSDetType.h
Corrected by F. Carminati for v3.04
[u/mrichter/AliRoot.git] / ITS / AliITSDetType.h
... / ...
CommitLineData
1#ifndef ALIITSDETTYPE_H
2#define ALIITSDETTYPE_H
3
4
5#include <TString.h>
6#include <TObject.h>
7
8#include "AliITSsegmentation.h"
9#include "AliITSresponse.h"
10
11
12class AliITSClusterFinder;
13class AliITSsimulation;
14
15class AliITSDetType:public TObject
16{
17
18 public:
19 AliITSDetType();
20 ~AliITSDetType(){
21 //destructor
22 }
23 AliITSDetType(const AliITSDetType &source); // copy constructor
24 AliITSDetType& operator=(const AliITSDetType &source); // assign. operator
25
26// Set the defaults
27 void Init() {}
28
29//
30 void SegmentationModel(AliITSsegmentation* thisSegmentation){
31 // Configure segmentation model
32 if(fSegmentation) delete fSegmentation;
33 fSegmentation=thisSegmentation;
34 }
35 //
36 void ResponseModel(AliITSresponse* thisResponse) {
37 // Configure response model
38 if(fResponse) delete fResponse;
39 fResponse=thisResponse;
40 }
41 //
42 void SimulationModel(AliITSsimulation *thisSimulation) {
43 // Configure simulation model
44 fSimulation = thisSimulation;
45 }
46 //
47 void ReconstructionModel(AliITSClusterFinder *thisReconstruction) {
48// Configure reconstruction model
49 fReconst = thisReconstruction;
50 }
51 void ClassNames(const char *digit, const char *cluster) {
52 // Set class names for digits and clusters
53 fDigClassName=digit; fClustClassName=cluster;
54 }
55
56 AliITSsegmentation* &GetSegmentationModel(){
57 // Get reference to segmentation model
58 return fSegmentation;
59 }
60 AliITSresponse* &GetResponseModel(){
61 // Get reference to response model
62 return fResponse;
63 }
64 AliITSsimulation* &GetSimulationModel(){
65 // Get reference to simulation model
66 return fSimulation;
67 }
68 AliITSClusterFinder* &GetReconstructionModel(){
69 // Get reference to hit reconstruction model
70 return fReconst;
71 }
72 //
73
74 void GetClassNames(char *digit,char *cluster)
75 {
76 // Get class names for digits and rec points
77 strcpy(digit,fDigClassName.Data()); strcpy(cluster,fClustClassName.Data());
78 }
79
80protected:
81
82 AliITSClusterFinder *fReconst; // cluster finder
83 AliITSsimulation *fSimulation; // simulation
84 AliITSresponse *fResponse; // response
85 AliITSsegmentation *fSegmentation; // segmentation
86
87 TString fDigClassName; // string
88 TString fClustClassName; // string
89
90 ClassDef(AliITSDetType,1) // container for simulation and reconstruction
91
92};
93
94#endif