29 #include "StSvtHybridDaqPed.hh"
30 #include "StSvtDaqPed.hh"
31 #include "StDAQMaker/StSVTReader.h"
39 StSvtDaqPed::StSvtDaqPed(
const char* config,
StSVTReader* reader,
int run) :
63 int StSvtDaqPed::setPed(
StSVTReader* reader,
const char* type)
67 for (
int barrel = 1;barrel <= getNumberOfBarrels();barrel++) {
68 for (
int ladder = 1;ladder <= getNumberOfLadders(barrel);ladder++) {
69 for (
int wafer = 1;wafer <= getNumberOfWafers(barrel);wafer++) {
70 for (
int hybrid = 1;hybrid <= getNumberOfHybrids();hybrid++) {
72 if (getHybridIndex(barrel,ladder,wafer,hybrid) < 0)
continue;
77 if ( !strncmp(getConfiguration(),
"Y1L", strlen(
"Y1L")) ) {
99 if ( !strncmp(type,
"PED", strlen(
"PED")) )
100 status = mPed->setHybridPed(reader);
101 else if ( !strncmp(type,
"RMS", strlen(
"RMS")) )
102 status = mPed->setHybridRMSPed(reader);
108 if ( !strncmp(getConfiguration(),
"Y1L", strlen(
"Y1L")) ) {
109 if (hybrid == 1 || hybrid == 2 )
110 put_at(mPed, getHybridIndex(barrel,ladder,wafer,3-hybrid));
113 put_at(mPed, getHybridIndex(barrel,ladder,wafer,hybrid));