]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 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 | ||
e8189707 | 11 | |
b0f5e3fc | 12 | class AliITSClusterFinder; |
13 | class AliITSsimulation; | |
14 | ||
15 | class 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 | } | |
e8189707 | 51 | void ClassNames(const char *digit, const char *cluster) { |
b0f5e3fc | 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 | ||
e8189707 | 74 | void GetClassNames(char *digit,char *cluster) |
b0f5e3fc | 75 | { |
76 | // Get class names for digits and rec points | |
e8189707 | 77 | strcpy(digit,fDigClassName.Data()); strcpy(cluster,fClustClassName.Data()); |
b0f5e3fc | 78 | } |
79 | ||
80 | protected: | |
81 | ||
82 | AliITSClusterFinder *fReconst; // cluster finder | |
83 | AliITSsimulation *fSimulation; // simulation | |
84 | AliITSresponse *fResponse; // response | |
85 | AliITSsegmentation *fSegmentation; // segmentation | |
86 | ||
e8189707 | 87 | TString fDigClassName; // string |
88 | TString fClustClassName; // string | |
b0f5e3fc | 89 | |
92c19c36 | 90 | ClassDef(AliITSDetType,1) // container for simulation and reconstruction |
b0f5e3fc | 91 | |
e8189707 | 92 | }; |
b0f5e3fc | 93 | |
94 | #endif |