StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGlobalElectron.cxx
1 #include "StGlobalElectron.h"
2 
3 ClassImp(StGlobalElectron)
4 
5 StGlobalElectron::StGlobalElectron(const StGlobalElectron &t) : TObject(t) {
6  this->Charge = t.Charge;
7  this->dEdx = t.dEdx;
8  this->dEdxSigmaElectron = t.dEdxSigmaElectron;
9  this->PGlobal = t.PGlobal;
10  this->OGlobal = t.OGlobal;
11 /*
12  this->PxGlobal = t.PxGlobal;
13  this->PyGlobal = t.PyGlobal;
14  this->PzGlobal = t.PzGlobal;
15  this->OxGlobal = t.OxGlobal;
16  this->OyGlobal = t.OyGlobal;
17  this->OzGlobal = t.OzGlobal;
18 */
19  this->DCAGlobal = t.DCAGlobal;
20  this->Chi2 = t.Chi2;
21  this->NHitsFit = t.NHitsFit;
22  this->NdEdxPts = t.NdEdxPts;
23  this->NMaxPts = t.NMaxPts;
24 }
25 
26 /*StGlobalElectron::StGlobalElectron(const Tracks &t) {
27  this->Charge = (Char_t)t.Charge;
28  this->dEdx = t.dEdx;
29  this->dEdxSigmaElectron = t.dEdxSigmaElectron;
30 
31  this->PGlobal.setX(t.PxGlobal);
32  this->PGlobal.setY(t.PyGlobal);
33  this->PGlobal.setZ(t.PzGlobal);
34  this->OGlobal.setX(t.OxGlobal);
35  this->OGlobal.setY(t.OyGlobal);
36  this->OGlobal.setZ(t.OzGlobal);
37 
38 // this->PxGlobal = t.PxGlobal;
39 // this->PyGlobal = t.PyGlobal;
40 // this->PzGlobal = t.PzGlobal;
41 // this->OxGlobal = t.OxGlobal;
42 // this->OyGlobal = t.OyGlobal;
43 // this->OzGlobal = t.OzGlobal;
44 
45  this->DCAGlobal = t.DCAGlobal;
46  this->Chi2 = t.Chi2;
47  this->NHitsFit = (UChar_t)t.NHitsFit;
48  this->NdEdxPts = (UChar_t)t.NdEdxPts;
49  this->NMaxPts = (UChar_t)t.NMaxPts;
50 }*/
51 
52 void StGlobalElectron::setAll(Float_t data[14]){
53  this->Charge = (Char_t)data[0];
54  this->dEdx = data[1];
55  this->dEdxSigmaElectron = data[2];
56  this->setPGlobal(data[3],data[4],data[5]);
57  this->setOGlobal(data[6],data[7],data[8]);
58  this->DCAGlobal = data[9];
59  this->Chi2 = data[10];
60  this->NHitsFit = (UChar_t)data[11];
61  this->NdEdxPts = (UChar_t)data[12];
62  this->NMaxPts = (UChar_t)data[13];
63 
64  return;
65 }
66 
67 void StGlobalElectron::setPGlobal(Float_t px, Float_t py, Float_t pz){
68 
69  this->PGlobal.setX(px);
70  this->PGlobal.setY(py);
71  this->PGlobal.setZ(pz);
72 /*
73  this->PxGlobal = px;
74  this->PyGlobal = py;
75  this->PzGlobal = pz;
76 */
77  return;
78 }
79 
80 void StGlobalElectron::setOGlobal(Float_t ox, Float_t oy, Float_t oz){
81 
82  this->OGlobal.setX(ox);
83  this->OGlobal.setY(oy);
84  this->OGlobal.setZ(oz);
85 /*
86  this->OxGlobal = ox;
87  this->OyGlobal = oy;
88  this->OzGlobal = oz;
89 */
90  return;
91 }
Charge
Define charge.
Definition: StPicoCommon.h:20