00001 #include "StGlobalElectron.h"
00002
00003 ClassImp(StGlobalElectron)
00004
00005 StGlobalElectron::StGlobalElectron(const StGlobalElectron &t) : TObject(t) {
00006 this->Charge = t.Charge;
00007 this->dEdx = t.dEdx;
00008 this->dEdxSigmaElectron = t.dEdxSigmaElectron;
00009 this->PGlobal = t.PGlobal;
00010 this->OGlobal = t.OGlobal;
00011
00012
00013
00014
00015
00016
00017
00018
00019 this->DCAGlobal = t.DCAGlobal;
00020 this->Chi2 = t.Chi2;
00021 this->NHitsFit = t.NHitsFit;
00022 this->NdEdxPts = t.NdEdxPts;
00023 this->NMaxPts = t.NMaxPts;
00024 }
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 void StGlobalElectron::setAll(Float_t data[14]){
00053 this->Charge = (Char_t)data[0];
00054 this->dEdx = data[1];
00055 this->dEdxSigmaElectron = data[2];
00056 this->setPGlobal(data[3],data[4],data[5]);
00057 this->setOGlobal(data[6],data[7],data[8]);
00058 this->DCAGlobal = data[9];
00059 this->Chi2 = data[10];
00060 this->NHitsFit = (UChar_t)data[11];
00061 this->NdEdxPts = (UChar_t)data[12];
00062 this->NMaxPts = (UChar_t)data[13];
00063
00064 return;
00065 }
00066
00067 void StGlobalElectron::setPGlobal(Float_t px, Float_t py, Float_t pz){
00068
00069 this->PGlobal.setX(px);
00070 this->PGlobal.setY(py);
00071 this->PGlobal.setZ(pz);
00072
00073
00074
00075
00076
00077 return;
00078 }
00079
00080 void StGlobalElectron::setOGlobal(Float_t ox, Float_t oy, Float_t oz){
00081
00082 this->OGlobal.setX(ox);
00083 this->OGlobal.setY(oy);
00084 this->OGlobal.setZ(oz);
00085
00086
00087
00088
00089
00090 return;
00091 }