]>
Commit | Line | Data |
---|---|---|
38300302 | 1 | //////////////////////////////////////////////////// |
2 | // Base class to define // | |
3 | // ITS beam test // | |
4 | // // | |
5 | // Origin: E. Crescio crescio@to.infn.it // | |
6 | //////////////////////////////////////////////////// | |
7 | ||
8 | #include "AliITSBeamTest.h" | |
9 | ||
10 | const Int_t AliITSBeamTest::fgkNumberOfSPD=6; | |
11 | const Int_t AliITSBeamTest::fgkNumberOfSDD=2; | |
12 | const Int_t AliITSBeamTest::fgkNumberOfSSD=4; | |
13 | ||
14 | ||
15 | ClassImp(AliITSBeamTest) | |
16 | ||
17 | ||
18 | //_____________________________________________________________ | |
19 | AliITSBeamTest::AliITSBeamTest() : AliITS() | |
20 | { | |
21 | // | |
22 | // Constructor | |
23 | // | |
24 | ||
25 | ||
26 | SetNumberOfSPD(fgkNumberOfSPD); | |
27 | SetNumberOfSDD(fgkNumberOfSDD); | |
28 | SetNumberOfSSD(fgkNumberOfSSD); | |
29 | } | |
30 | ||
31 | //_____________________________________________________________ | |
32 | AliITSBeamTest::AliITSBeamTest(const char* name,const char *title) : AliITS(name,title) | |
33 | { | |
34 | // | |
35 | // Constructor | |
36 | // | |
37 | ||
38 | ||
39 | SetNumberOfSPD(fgkNumberOfSPD); | |
40 | SetNumberOfSDD(fgkNumberOfSDD); | |
41 | SetNumberOfSSD(fgkNumberOfSSD); | |
42 | } | |
43 | ||
44 | ||
45 | //__________________________________________________________________ | |
46 | AliITSBeamTest::~AliITSBeamTest() | |
47 | { | |
48 | // | |
49 | // Destructor | |
50 | // | |
51 | ||
52 | } | |
53 | ||
54 | //____________________________________________________________________ | |
55 | Int_t AliITSBeamTest::GetNumberOfSubDet(const TString& det) const{ | |
56 | ||
57 | if(det.Contains("SPD")) return fNspd; | |
58 | if(det.Contains("SDD")) return fNsdd; | |
59 | if(det.Contains("SSD")) return fNssd; | |
60 | return 0; | |
61 | } |