StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdStrip.cc
1 // $Id: StSsdStrip.cc,v 1.2 2008/10/20 19:25:32 bouchet Exp $
2 //
3 // $Log: StSsdStrip.cc,v $
4 // Revision 1.2 2008/10/20 19:25:32 bouchet
5 // propagate idMcTrack used for IdTruth
6 //
7 // Revision 1.1 2006/10/16 16:43:29 bouchet
8 // StSsdUtil regroups now methods for the classes StSsdStrip, StSsdCluster and StSsdPoint
9 //
10 // Revision 1.6 2005/03/18 14:15:51 lmartin
11 // missing CVS header added
12 //
13 
14 #include <string.h>
15 #include "StSsdStrip.hh"
16 
17 //________________________________________________________________________________
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);
20  mNStrip = rNStrip;
21  mDigitSig = rDigitSig;
22  mSigma = rSigma;
23  mPedestal = rPedestal;
24  for(Int_t e=0;e<5;e++) {
25  mIdMcHit[e] = rIdMcHit[e];
26  mIdMcTrack[e] = rIdMcTrack[e];
27  }
28 }
29 //________________________________________________________________________________
30 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rDigitSig, Float_t rSigma, Int_t rPedestal) {
31  memset (first, 0, last - first);
32  mNStrip = rNStrip;
33  mDigitSig = rDigitSig;
34  mSigma = rSigma;
35  mPedestal = rPedestal;
36  for(Int_t e=0;e<5;e++) mIdMcHit[e] = 0;
37 }
38 //________________________________________________________________________________
39 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rIdHit, Int_t rMcHit, Int_t rMcTrack, Float_t rAnalogSig) {
40  memset (first, 0, last - first);
41  mNStrip = rNStrip;
42  mIdHit[0] = rIdHit;
43  mIdMcHit[0] = rMcHit;
44  mIdMcTrack[0] = rMcTrack;
45  mNHits = 1;
46  mAnalogSig = rAnalogSig;
47 }
48 //________________________________________________________________________________
49 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rMcStrip, Int_t rDigitSig, Float_t rAnalogSig, Int_t *rIdMcHit) {
50  memset (first, 0, last - first);
51  mNStrip = rNStrip;
52  mMcStrip = rMcStrip;
53  mDigitSig = rDigitSig;
54  mAnalogSig = rAnalogSig;
55  for(Int_t e=0;e<5;e++) mIdMcHit[e] = rIdMcHit[e];
56 }
57 //_________________
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);
60  mNStrip = rNStrip;
61  mMcStrip = rMcStrip;
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];
67  }
68 }
69 
70 //________________________________________________________________________________
71 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rMcStrip, Float_t rAnalogSig) {
72  memset (first, 0, last - first);
73  mNStrip = rNStrip;
74  mMcStrip = rMcStrip;
75  mAnalogSig = rAnalogSig;
76 }
77 //________________________________________________________________________________
78 StSsdStrip::StSsdStrip(Int_t rNStrip, Int_t rDigitSig) {
79  memset (first, 0, last - first);
80  mNStrip = rNStrip;
81  mDigitSig = rDigitSig;
82 }
83 //________________________________________________________________________________
84 void StSsdStrip::copyTo(StSsdStrip *ptrClone) {
85  memcpy (ptrClone->first, first, last - first);
86  ptrClone->mPrevStrip = ptrClone->mNextStrip = 0;
87 }
88 //________________________________________________________________________________
89 
90