15 #include "StSsdStrip.hh"
18 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rDigitSig, Float_t rSigma, Int_t rPedestal, Int_t *rIdMcHit,Int_t *rIdMcTrack) {
19 memset (first, 0, last - first);
21 mDigitSig = rDigitSig;
23 mPedestal = rPedestal;
24 for(Int_t e=0;e<5;e++) {
25 mIdMcHit[e] = rIdMcHit[e];
26 mIdMcTrack[e] = rIdMcTrack[e];
30 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rDigitSig, Float_t rSigma, Int_t rPedestal) {
31 memset (first, 0, last - first);
33 mDigitSig = rDigitSig;
35 mPedestal = rPedestal;
36 for(Int_t e=0;e<5;e++) mIdMcHit[e] = 0;
39 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rIdHit, Int_t rMcHit, Int_t rMcTrack, Float_t rAnalogSig) {
40 memset (first, 0, last - first);
44 mIdMcTrack[0] = rMcTrack;
46 mAnalogSig = rAnalogSig;
49 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rMcStrip, Int_t rDigitSig, Float_t rAnalogSig, Int_t *rIdMcHit) {
50 memset (first, 0, last - first);
53 mDigitSig = rDigitSig;
54 mAnalogSig = rAnalogSig;
55 for(Int_t e=0;e<5;e++) mIdMcHit[e] = rIdMcHit[e];
58 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rMcStrip, Int_t rDigitSig, Float_t rAnalogSig, Int_t *rIdMcHit,Int_t *rIdMcTrack) {
59 memset (first, 0, last - first);
62 mDigitSig = rDigitSig;
63 mAnalogSig = rAnalogSig;
64 for(Int_t e=0;e<5;e++) {
65 mIdMcHit[e] = rIdMcHit[e];
66 mIdMcTrack[e] = rIdMcTrack[e];
71 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rMcStrip, Float_t rAnalogSig) {
72 memset (first, 0, last - first);
75 mAnalogSig = rAnalogSig;
78 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rDigitSig) {
79 memset (first, 0, last - first);
81 mDigitSig = rDigitSig;
84 void StSsdStrip::copyTo(
StSsdStrip *ptrClone) {
85 memcpy (ptrClone->first, first, last - first);
86 ptrClone->mPrevStrip = ptrClone->mNextStrip = 0;