StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdConfig.hh
Go to the documentation of this file.
1 
4 /***************************************************************************
5  * Author: christelle Roy
6  * Description: SSD Geometry object. It makes the link with the Data Base
7  **************************************************************************/
8 
9 #ifndef STSSDCONFIG_HH
10 #define STSSDCONFIG_HH
11 
12 #define MaxNumberOfLadders 20
13 
14 #include "StObject.h"
15 #include "TString.h"
16 
17 class ssdConfiguration_st;
18 
19 class StSsdConfig: public StObject
20 {
21  private:
22  StSsdConfig(const StSsdConfig&);
23  StSsdConfig& operator = (const StSsdConfig&);
24 public:
25  StSsdConfig();
26  virtual ~StSsdConfig();
27 
28 
29  int getNumberOfLadders() {return mNumberOfLadders;}
30  int getNumberOfWafers() {return mNumberOfWafers;}
31  int getNumberOfHybrids() {return mNumberOfHybrids;}
32  int getTotalNumberOfLadders() {return mTotalNumberOfLadders;}
33  int getTotalNumberOfHybrids() {return mTotalNumberOfHybrids;}
34  int getNumberOfStrips() {return mNumberOfStrips;}
35 
36  void setNumberOfLadders(int ladders){mNumberOfLadders = ladders;}
37  void setNumberOfWafers(int wafers) {mNumberOfWafers = wafers;}
38  void setNumberOfHybrids(int hybrids) {mNumberOfHybrids = hybrids;}
39  void setTotalNumberOfHybrids(int hybrids) {mTotalNumberOfHybrids = hybrids;}
40  void setTotalNumberOfLadders(int totladders) {mTotalNumberOfLadders = totladders;}
41  void setNumberOfStrips(int strips) {mNumberOfStrips = strips;}
42 
43  void setConfiguration(); // set the SSD configuration
44  void setConfiguration(const char* config); // set the SSD configuration
45 
46  void setLadderIsActive(int ladder, int status){mStatus[ladder-1] = status;}
47  int getLadderIsActive(int ladder){return mStatus[ladder-1];}
48 
49  const char* getConfiguration(); // Returns the SSD configuration
50 
51 protected:
52  int mStatus[MaxNumberOfLadders];
53  int totLadderPresent; // Number of Present Ladders //////////// A MODIFIER PLUS TARD
54  int mNumberOfLadders; // Number of Present Ladders
55  int mNumberOfWafers; // Number of Wafers of each Ladder (Barrel dependent)
56  int mNumberOfHybrids; // Number of Hybrids of each Wafer
57  int mTotalNumberOfLadders; // Total Number of Ladders (entire SSD)
58  int mTotalNumberOfHybrids; // Total Number of Hybrids (entire SSD)
59 
60  int mNumberOfStrips; // Number of Strips in one hybrid
61 
62  TString mConfig; // SSD Configuration
63 
64  ClassDef(StSsdConfig,1)
65 };
66 
67 #endif