1 #ifndef ALIITSDETTYPE_H
2 #define ALIITSDETTYPE_H
8 #include "AliITSsegmentation.h"
9 #include "AliITSresponse.h"
12 class AliITSClusterFinder;
13 class AliITSsimulation;
15 class AliITSDetType:public TObject
20 virtual ~AliITSDetType();
21 AliITSDetType(const AliITSDetType &source); // copy constructor
22 AliITSDetType& operator=(const AliITSDetType &source); // assign. operator
25 virtual void Init() {}
28 virtual void SegmentationModel(AliITSsegmentation* thisSegmentation){
29 // Configure segmentation model
30 if(fSegmentation) delete fSegmentation;
31 fSegmentation=thisSegmentation;
34 virtual void ResponseModel(AliITSresponse* thisResponse) {
35 // Configure response model
36 if(fResponse) delete fResponse;
37 fResponse=thisResponse;
40 virtual void SimulationModel(AliITSsimulation *thisSimulation) {
41 // Configure simulation model
42 fSimulation = thisSimulation;
45 virtual void ReconstructionModel(AliITSClusterFinder *thisReconstruction) {
46 // Configure reconstruction model
47 fReconst = thisReconstruction;
49 virtual void ClassNames(const char *digit, const char *cluster) {
50 // Set class names for digits and clusters
51 fDigClassName=digit; fClustClassName=cluster;
54 AliITSsegmentation* &GetSegmentationModel(){
55 // Get reference to segmentation model
58 AliITSresponse* &GetResponseModel(){
59 // Get reference to response model
62 AliITSsimulation* &GetSimulationModel(){
63 // Get reference to simulation model
66 AliITSClusterFinder* &GetReconstructionModel(){
67 // Get reference to hit reconstruction model
72 void GetClassNames(char *digit,char *cluster)
74 // Get class names for digits and rec points
75 strcpy(digit,fDigClassName.Data()); strcpy(cluster,fClustClassName.Data());
80 AliITSClusterFinder *fReconst; // cluster finder
81 AliITSsimulation *fSimulation; // simulation
82 AliITSresponse *fResponse; // response
83 AliITSsegmentation *fSegmentation; // segmentation
85 TString fDigClassName; // string
86 TString fClustClassName; // string
88 ClassDef(AliITSDetType,1)