37 #include "StSvtWaferCollection.hh"
38 #include "StSvtConfig.hh"
39 #include "StMessMgr.h"
63 StSvtWaferCollection::StSvtWaferCollection(
const char* config)
65 setConfiguration(config);
68 StSvtWaferCollection::StSvtWaferCollection(
StSvtConfig* config)
70 setConfiguration(config);
73 StSvtWaferCollection::~StSvtWaferCollection()
78 void StSvtWaferCollection::setConfiguration(
const char* config)
84 mSvtConfig->setConfiguration(config);
87 resize(mSvtConfig->getTotalNumberOfHybrids()/2);
90 void StSvtWaferCollection::setConfiguration(
StSvtConfig* config)
95 mConfig = TString(mSvtConfig->getConfiguration());
98 resize(mSvtConfig->getTotalNumberOfHybrids()/2);
101 int StSvtWaferCollection::getWaferIndex(
int barrelID,
int ladderID,
int waferID)
110 index = (int)mSvtConfig->getHybridIndex(barrelID, ladderID, waferID, 1)/2;
129 StSvtHybridObject* StSvtWaferCollection::getObject(
int barrelID,
int ladderID,
int waferID)
133 int index = getWaferIndex(barrelID, ladderID, waferID);
135 if (index<0)
return 0;
141 int StSvtWaferCollection::getNumberOfBarrels() {
return mSvtConfig->getNumberOfBarrels();}
142 int StSvtWaferCollection::getNumberOfLadders(
int barrel) {
return mSvtConfig->getNumberOfLadders(barrel);}
143 int StSvtWaferCollection::getNumberOfWafers(
int barrel) {
return mSvtConfig->getNumberOfWafers(barrel);}
144 int StSvtWaferCollection::getTotalNumberOfWafers() {
return (
int)mSvtConfig->getTotalNumberOfHybrids()/2;}
145 const char* StSvtWaferCollection::getConfiguration(){
return mConfig.Data();}
TString mConfig
SVT Configuration.