9 #include "tables/St_ssdConfiguration_Table.h"
14 :totLadderPresent(-1956)
15 ,mNumberOfLadders(-1956)
16 ,mNumberOfWafers(-1956)
17 ,mNumberOfHybrids(-1956)
18 ,mTotalNumberOfLadders(-1956)
19 ,mTotalNumberOfHybrids(-1956)
20 ,mNumberOfStrips(-1956)
22 { memset(mStatus,-1,
sizeof(mStatus)); }
24 StSsdConfig::~StSsdConfig()
35 void StSsdConfig::setConfiguration()
37 if ((totLadderPresent == 1))
38 mConfig = TString(
"LAD0");
39 else if (totLadderPresent == 10)
40 mConfig = TString(
"HALF");
41 else if (totLadderPresent == 20)
42 mConfig = TString(
"FULL");
44 mConfig = TString(
"NULL");
47 void StSsdConfig::setConfiguration(
const char* config)
51 mConfig = TString(config);
53 if ( !strncmp(config,
"HALF", strlen(
"HALF")) ) {
54 setNumberOfLadders(10);
55 setNumberOfWafers(160);
56 setNumberOfHybrids(2);
57 setTotalNumberOfHybrids(320);
58 }
else if ( !strncmp(config,
"FULL", strlen(
"FULL")) ) {
59 setNumberOfLadders(20);
60 setNumberOfWafers(320);
61 setNumberOfHybrids(2);
62 setTotalNumberOfHybrids(640);
64 LOG_ERROR <<
"Configuration of SSD not defined! It must be LAD0 or HALF or FULL "<< endm;
68 const char* StSsdConfig::getConfiguration()
70 return mConfig.Data();