]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIITSDCSSSD_H | |
2 | #define ALIITSDCSSSD_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //____________________________________________________________________ | |
8 | // | |
9 | // Class AliITSdcsSSD | |
10 | // describes Detector Control System parameters for one SSD module. | |
11 | // | |
12 | // This class stores parametrers such as gain, threshold | |
13 | // capacitive coupling. | |
14 | // | |
15 | // Class takes care of invalid strip menagement during | |
16 | // simulation and runtime | |
17 | // | |
18 | // | |
19 | // created at: Warsaw University of Technology | |
20 | // ver. 1.0 WARSAW, 23.12.1999 | |
21 | // | |
22 | //___________________________________________________________________ | |
23 | ||
24 | #include <TObject.h> | |
25 | ||
26 | class TArrayS; | |
27 | class TRandom; | |
28 | class AliITSsegmentation; | |
29 | class AliITSresponse; | |
30 | ||
31 | class AliITSdcsSSD: public TObject { | |
32 | ||
33 | public: | |
34 | AliITSdcsSSD(); // Default constructor | |
35 | // Standard constructor | |
36 | AliITSdcsSSD(AliITSsegmentation *s, AliITSresponse *r); | |
37 | virtual ~AliITSdcsSSD(); // Destructor | |
38 | AliITSdcsSSD(const AliITSdcsSSD &source); // copy constructor | |
39 | AliITSdcsSSD& operator=(const AliITSdcsSSD &source); // assignment operator | |
40 | //________________________________________________________________ | |
41 | // | |
42 | // Invalid strips management methods | |
43 | //________________________________________________________________ | |
44 | // Parameters for invalid strips MonteCarlo | |
45 | void SetInvalidParam(Float_t mean, Float_t sigma); | |
46 | void GetInvalidParam(Float_t &mean, Float_t &sigma); | |
47 | // Methods for creating invalid strips | |
48 | void SetInvalidMC(Float_t mean, Float_t sigma); | |
49 | void SetInvalidMC(); | |
50 | // Testing if strip is valid | |
51 | Bool_t IsValidN(Int_t strip); //True if strip works properly | |
52 | Bool_t IsValidP(Int_t strip); //True if strip works properly | |
53 | // Access to invalid strips | |
54 | TArrayS *GetInvalidP(); //Array of invalid P strips | |
55 | TArrayS *GetInvalidN(); //Array of invalid N strips | |
56 | Int_t GetNInvalidP(); //Number of invalid P strips | |
57 | Int_t GetNInvalidN(); //Number of invalid N strips | |
58 | // Creating invalid strips | |
59 | void SetInvalidP(Int_t strip, Bool_t side){//Set invalid if true | |
60 | } | |
61 | void SetInvalidN(Int_t strip, Bool_t side){//Set invalid if true | |
62 | } | |
63 | Float_t GetCouplingPR() {// couplings | |
64 | return fCouplingPR; | |
65 | } | |
66 | Float_t GetCouplingPL() {// couplings | |
67 | return fCouplingPL; | |
68 | } | |
69 | Float_t GetCouplingNR() {// couplings | |
70 | return fCouplingNR; | |
71 | } | |
72 | Float_t GetCouplingNL() {// couplings | |
73 | return fCouplingNL; | |
74 | } | |
75 | ||
76 | protected: | |
77 | //_____________________________________________ | |
78 | // | |
79 | // Parameters for invalid strips simulatation | |
80 | //_____________________________________________ | |
81 | Float_t fCouplingPR; // couplings | |
82 | Float_t fCouplingPL; // couplings | |
83 | Float_t fCouplingNR; // couplings | |
84 | Float_t fCouplingNL; // couplings | |
85 | ||
86 | Float_t fNstrips; //Number of strips | |
87 | Float_t fNInvalid; //Mean number of invalid strips (for simulation) | |
88 | Float_t fISigma; //RMS of invalid strips (Gaussian) | |
89 | ||
90 | TArrayS *fInvalidP; //Array of invalid strips on P-side | |
91 | TArrayS *fInvalidN; //Array of invalid strips on N-side | |
92 | ||
93 | ClassDef(AliITSdcsSSD, 1) // ITS SSD DCS specific class | |
94 | ||
95 | }; | |
96 | #endif |