27 #ifndef STSVTCONFIG_HH
28 #define STSVTCONFIG_HH
30 #define MAX_NUMBER_OF_BARRELS 3
44 int getNumberOfBarrels() {
return mNumberOfBarrels;}
45 int getNumberOfLadders(
int barrel) {
return mNumberOfLadders[barrel-1];}
46 int getNumberOfWafers(
int barrel) {
return mNumberOfWafers[barrel-1];}
47 int getNumberOfHybrids() {
return mNumberOfHybrids;}
48 int getTotalNumberOfHybrids() {
return mTotalNumberOfHybrids;}
50 int getNumberOfAnodes() {
return mNumberOfAnodes;}
51 int getNumberOfTimeBins() {
return mNumberOfTimeBins;}
53 void setNumberOfBarrels(
int barrels) {mNumberOfBarrels = barrels;}
54 void setNumberOfLadders(
int barrel,
int ladders) {mNumberOfLadders[barrel-1] = ladders;}
55 void setNumberOfWafers(
int barrel,
int wafers) {mNumberOfWafers[barrel-1] = wafers;}
56 void setNumberOfHybrids(
int hybrids) {mNumberOfHybrids = hybrids;}
57 void setTotalNumberOfHybrids(
int hybrids) {mTotalNumberOfHybrids = hybrids;}
59 void setNumberOfAnodes(
int anodes) {mNumberOfAnodes = anodes;}
60 void setNumberOfTimeBins(
int timeBins) {mNumberOfTimeBins = timeBins;}
62 void setConfiguration();
63 void setConfiguration(
const char* config);
65 int getHybridIndex(
int barrelID,
int ladderID,
int waferID,
int hybridID);
66 int getProperHybridIndex(
int barrelID,
int ladderID,
int waferID,
int hybridID);
67 int getBarrel(
int index);
68 int getLayer(
int index);
69 int getLadder(
int index);
70 int getWafer(
int index);
71 int getHybrid(
int index);
73 const char* getConfiguration();
77 int mNumberOfLadders[MAX_NUMBER_OF_BARRELS];
78 int mNumberOfWafers[MAX_NUMBER_OF_BARRELS];
81 int mTotalNumberOfHybrids;
84 int mNumberOfTimeBins;