32 #include "StSvtHybridPixels.hh"
42 mNumberOfTimeBins = 0;
44 mTotalNumberOfPixels = 0;
47 StSvtHybridPixels::StSvtHybridPixels(
int barrel,
int ladder,
int wafer,
int hybrid,
int size,
float* x) :
52 mNumberOfAnodes = 240;
53 mNumberOfTimeBins = 128;
55 mTotalNumberOfPixels = mNumberOfAnodes*mNumberOfTimeBins;
59 Set(mTotalNumberOfPixels,x);
63 Set(mTotalNumberOfPixels);
66 StSvtHybridPixels::~StSvtHybridPixels()
73 for (
int i=0;i<mTotalNumberOfPixels;i++) {
84 for (
int i=0;i<mTotalNumberOfPixels;i++) {
92 Float_t StSvtHybridPixels::getPixelContent(
int anode,
int time)
95 int index = getPixelIndex(anode, time);
100 void StSvtHybridPixels::addToPixel(
int anode,
int time,
float x)
103 int index = getPixelIndex(anode, time);
109 void StSvtHybridPixels::addToPixel(
int index,
float x)
117 int StSvtHybridPixels::getPixelIndex(
int anode,
int time)
124 index = mNumberOfTimeBins*(anode-1) + time;
129 void StSvtHybridPixels::reset()
131 for (
int i=0;i<mTotalNumberOfPixels;i++)