StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPrimaryElectron.cxx
1 #include <assert.h>
2 #include "StPrimaryElectron.h"
3 #include "StGlobalElectron.h"
4 #include <cassert>
5 
6 ClassImp(StPrimaryElectron)
7 
9  assert(&t!=NULL);
10  this->Charge = t.Charge;
11  this->dEdx = t.dEdx;
12  this->dEdxSigmaElectron = t.dEdxSigmaElectron;
13  this->P = t.P;
14  this->DCA = t.DCA;
15  this->Eta = t.Eta;
16  this->Phi = t.Phi;
17  this->Pt = t.Pt;
18 /*
19  this->PxGlobal = t.PxGlobal;
20  this->PyGlobal = t.PyGlobal;
21  this->PzGlobal = t.PzGlobal;
22  this->OxGlobal = t.OxGlobal;
23  this->OyGlobal = t.OyGlobal;
24  this->OzGlobal = t.OzGlobal;
25 */
26  this->DCAGlobal = t.DCAGlobal;
27  this->Chi2 = t.Chi2;
28  this->NHitsFit = t.NHitsFit;
29  this->NdEdxPts = t.NdEdxPts;
30  this->NMaxPts = t.NMaxPts;
31  this->ProjEta = t.ProjEta;
32  this->ProjPhi = t.ProjPhi;
33  this->ProjZ = t.ProjZ;
34  this->PointEta = t.PointEta;
35  this->PointPhi = t.PointPhi;
36  this->PointZ = t.PointZ;
37  this->E = t.E;
38  this->POverE = t.POverE;
39  this->NEtaStrips = t.NEtaStrips;
40  this->NPhiStrips = t.NPhiStrips;
41  this->NTowers = t.NTowers;
42  this->ZDist = t.ZDist;
43  this->EtaDist = t.EtaDist;
44  this->PhiDist = t.PhiDist;
45  this->R = t.R;
46  this->NPoints = t.NPoints;
47  this->PointNTracks = t.PointNTracks;
48 
49  this->mGlobalRef = t.mGlobalRef;
50 }
51 
52 /*StPrimaryElectron::StPrimaryElectron(const Tracks &t) {
53  assert(&t!=NULL);
54  this->Charge = (Char_t)t.Charge;
55  this->dEdx = t.dEdx;
56  this->dEdxSigmaElectron = t.dEdxSigmaElectron;
57  this->P = t.P;
58  this->DCA = t.DCA;
59  this->Eta = t.Eta;
60  this->Phi = t.Phi;
61  this->Pt = t.Pt;
62 
63  //this->PxGlobal = t.PxGlobal;
64  //this->PyGlobal = t.PyGlobal;
65  //this->PzGlobal = t.PzGlobal;
66  //this->OxGlobal = t.OxGlobal;
67  //this->OyGlobal = t.OyGlobal;
68  //this->OzGlobal = t.OzGlobal;
69 
70  this->DCAGlobal = t.DCAGlobal;
71  this->Chi2 = t.Chi2;
72  this->NHitsFit = (UChar_t)t.NHitsFit;
73  this->NdEdxPts = (UChar_t)t.NdEdxPts;
74  this->NMaxPts = (UChar_t)t.NMaxPts;
75  this->ProjEta = t.ProjEta;
76  this->ProjPhi = t.ProjPhi;
77  this->ProjZ = t.ProjZ;
78  this->PointEta = t.PointEta;
79  this->PointPhi = t.PointPhi;
80  this->PointZ = t.PointZ;
81  this->E = t.E;
82  this->POverE = t.POverE;
83  this->NEtaStrips = (UChar_t)t.NEtaStrips;
84  this->NPhiStrips = (UChar_t)t.NPhiStrips;
85  this->NTowers = (UChar_t)t.NTowers;
86  this->ZDist = t.ZDist;
87  this->EtaDist = t.EtaDist;
88  this->PhiDist = t.PhiDist;
89  this->R = t.R;
90  this->NPoints = (UChar_t)t.NPoints;
91  this->PointNTracks = (UChar_t)t.PointNTracks;
92 }*/
93 
94 void StPrimaryElectron::setAll(Float_t data[29]){
95 
96  this->Charge = (Char_t)data[0];
97  this->dEdx = data[1];
98  this->dEdxSigmaElectron = data[2];
99  this->P = data[3];
100  this->DCA = data[4];
101  this->Eta = data[5];
102  this->Phi = data[6];
103  this->Pt = data[7];
104  this->DCAGlobal = data[8];
105  this->Chi2 = data[9];
106  this->NHitsFit = (UChar_t)data[10];
107  this->NdEdxPts = (UChar_t)data[11];
108  this->NMaxPts = (UChar_t)data[12];
109  this->ProjEta = data[13];
110  this->ProjPhi = data[14];
111  this->ProjZ = data[15];
112  this->PointEta = data[16];
113  this->PointPhi = data[17];
114  this->PointZ = data[18];
115  this->E = data[19];
116  this->POverE = data[20];
117  this->NEtaStrips = (UChar_t)data[21];
118  this->NPhiStrips = (UChar_t)data[22];
119  this->NTowers = (UChar_t)data[23];
120  this->ZDist = data[24];
121  this->EtaDist = data[25];
122  this->PhiDist = data[26];
123  this->NPoints = (UChar_t)data[27];
124  this->PointNTracks = (UChar_t)data[28];
125 
126  return;
127 }
Charge
Define charge.
Definition: StPicoCommon.h:20