46 #include "StSvtHybridDaqData.hh"
47 #include "StSvtDaqData.hh"
55 StSvtDaqData::StSvtDaqData(
const char* config,
StSVTReader* reader,
const char* option,
int run,
int event,
int trigger) :
63 mTriggerWord = trigger;
66 setData(reader,option);
69 StSvtDaqData::StSvtDaqData(
StSvtConfig* config,
StSVTReader* reader,
const char* option,
int run,
int event,
int trigger) :
77 mTriggerWord = trigger;
80 setData(reader,option);
83 int StSvtDaqData::setData(
StSVTReader* reader,
const char* option)
87 for (
int barrel = 1;barrel <= getNumberOfBarrels();barrel++) {
88 for (
int ladder = 1;ladder <= getNumberOfLadders(barrel);ladder++) {
89 for (
int wafer = 1;wafer <= getNumberOfWafers(barrel);wafer++) {
90 for (
int hybrid = 1;hybrid <= getNumberOfHybrids();hybrid++) {
92 index = getHybridIndex(barrel,ladder,wafer,hybrid);
93 if (index < 0)
continue;
98 if ( !strncmp(getConfiguration(),
"Y1L", strlen(
"Y1L")) ) {
100 index = getHybridIndex(barrel, ladder, wafer, 2);
101 else if (hybrid == 2)
102 index = getHybridIndex(barrel, ladder, wafer, 1);
105 if( (barrel == 2) && (ladder == 1) && (wafer > 3)){
106 if( hybrid ==1) index++;
107 if( hybrid ==2) index --;
109 else if( (barrel == 2) && (ladder == 8) && (wafer < 4)){
110 if( hybrid ==1) index++;
111 if( hybrid ==2) index --;
113 else if( (barrel == 3) && (ladder == 16) && (wafer > 4)){
116 else if( (barrel == 3) && (ladder == 15) && (wafer > 4)){
135 if ((barrel == 1) && (ladder == 1) && (wafer == 2)) {
143 put_at(mData, index);