]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSDetType.h
The macros was working only in SSD mode. Now it works il All mode
[u/mrichter/AliRoot.git] / ITS / AliITSDetType.h
CommitLineData
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 12class AliITSClusterFinder;
13class AliITSsimulation;
14
15class AliITSDetType:public TObject
16{
17
18 public:
19 AliITSDetType();
c0904637 20 virtual ~AliITSDetType();
b0f5e3fc 21 AliITSDetType(const AliITSDetType &source); // copy constructor
22 AliITSDetType& operator=(const AliITSDetType &source); // assign. operator
23
24// Set the defaults
c0904637 25 virtual void Init() {}
b0f5e3fc 26
27//
c0904637 28 virtual void SegmentationModel(AliITSsegmentation* thisSegmentation){
b0f5e3fc 29 // Configure segmentation model
30 if(fSegmentation) delete fSegmentation;
31 fSegmentation=thisSegmentation;
32 }
33 //
c0904637 34 virtual void ResponseModel(AliITSresponse* thisResponse) {
b0f5e3fc 35 // Configure response model
36 if(fResponse) delete fResponse;
37 fResponse=thisResponse;
38 }
39 //
c0904637 40 virtual void SimulationModel(AliITSsimulation *thisSimulation) {
b0f5e3fc 41 // Configure simulation model
42 fSimulation = thisSimulation;
43 }
44 //
c0904637 45 virtual void ReconstructionModel(AliITSClusterFinder *thisReconstruction) {
b0f5e3fc 46// Configure reconstruction model
47 fReconst = thisReconstruction;
48 }
c0904637 49 virtual void ClassNames(const char *digit, const char *cluster) {
b0f5e3fc 50 // Set class names for digits and clusters
51 fDigClassName=digit; fClustClassName=cluster;
52 }
53
54 AliITSsegmentation* &GetSegmentationModel(){
55 // Get reference to segmentation model
56 return fSegmentation;
57 }
58 AliITSresponse* &GetResponseModel(){
59 // Get reference to response model
60 return fResponse;
61 }
62 AliITSsimulation* &GetSimulationModel(){
63 // Get reference to simulation model
64 return fSimulation;
65 }
66 AliITSClusterFinder* &GetReconstructionModel(){
67 // Get reference to hit reconstruction model
68 return fReconst;
69 }
70 //
71
e8189707 72 void GetClassNames(char *digit,char *cluster)
b0f5e3fc 73 {
74 // Get class names for digits and rec points
e8189707 75 strcpy(digit,fDigClassName.Data()); strcpy(cluster,fClustClassName.Data());
b0f5e3fc 76 }
77
78protected:
79
80 AliITSClusterFinder *fReconst; // cluster finder
81 AliITSsimulation *fSimulation; // simulation
82 AliITSresponse *fResponse; // response
83 AliITSsegmentation *fSegmentation; // segmentation
84
e8189707 85 TString fDigClassName; // string
86 TString fClustClassName; // string
b0f5e3fc 87
c0904637 88 ClassDef(AliITSDetType,1)
b0f5e3fc 89
e8189707 90};
b0f5e3fc 91
92#endif