51 #include "StSvtHybridCollection.hh"
52 #include "StSvtConfig.hh"
53 #include "StMessMgr.h"
77 StSvtHybridCollection::StSvtHybridCollection(
const char* config)
79 setConfiguration(config);
82 StSvtHybridCollection::StSvtHybridCollection(
StSvtConfig* config)
84 setConfiguration(config);
87 StSvtHybridCollection::~StSvtHybridCollection()
94 void StSvtHybridCollection::setConfiguration(
const char* config)
100 mSvtConfig->setConfiguration(config);
102 resize(mSvtConfig->getTotalNumberOfHybrids());
105 void StSvtHybridCollection::setConfiguration(
StSvtConfig* config)
109 mConfig = TString(config->getConfiguration());
111 mSvtConfig->setConfiguration(
mConfig);
113 resize(mSvtConfig->getTotalNumberOfHybrids());
116 int StSvtHybridCollection::getHybridIndex(
int barrelID,
int ladderID,
int waferID,
int hybridID)
123 return mSvtConfig->getHybridIndex(barrelID, ladderID, waferID, hybridID);
127 int StSvtHybridCollection::getProperHybridIndex(
int barrelID,
int ladderID,
int waferID,
int hybridID)
132 return mSvtConfig->getProperHybridIndex(barrelID, ladderID, waferID, hybridID);
147 StSvtHybridObject* StSvtHybridCollection::getObject(
int barrelID,
int ladderID,
int waferID,
int hybridID)
151 int index = getHybridIndex(barrelID, ladderID, waferID, hybridID);
153 if (index<0)
return 0;
159 int StSvtHybridCollection::getNumberOfBarrels() {
return mSvtConfig->getNumberOfBarrels();}
160 int StSvtHybridCollection::getNumberOfLadders(
int barrel) {
return mSvtConfig->getNumberOfLadders(barrel);}
161 int StSvtHybridCollection::getNumberOfWafers(
int barrel) {
return mSvtConfig->getNumberOfWafers(barrel);}
162 int StSvtHybridCollection::getNumberOfHybrids() {
return mSvtConfig->getNumberOfHybrids();}
163 int StSvtHybridCollection::getTotalNumberOfHybrids() {
return mSvtConfig->getTotalNumberOfHybrids();}
164 const char* StSvtHybridCollection::getConfiguration(){
return mConfig.Data();}
TString mConfig
SVT Configuration.