00001
00002
00003
00004
00005
00006
00008
00009 #include "AnalysisNtuples/ANtpTrackInfo.h"
00010 #include "AnalysisNtuples/ANtpDefaultValue.h"
00011 #include "MessageService/MsgService.h"
00012
00013 #include <cassert>
00014 #include <algorithm>
00015
00016 ClassImp(ANtpTrackInfo)
00017
00018 CVSID("$Id: ANtpTrackInfo.cxx,v 1.13 2007/02/26 17:50:53 litchfld Exp $");
00019
00020
00021 ANtpTrackInfo::ANtpTrackInfo() :
00022 planes(ANtpDefVal::kInt),
00023 totalStrips(ANtpDefVal::kInt),
00024 pulseHeight(ANtpDefVal::kFloat),
00025 fitMomentum(ANtpDefVal::kFloat),
00026 rangeMomentum(ANtpDefVal::kFloat),
00027 sigmaQoverP(ANtpDefVal::kFloat),
00028 begPlane(ANtpDefVal::kInt),
00029 endPlane(ANtpDefVal::kInt),
00030 begPlaneU(ANtpDefVal::kInt),
00031 endPlaneU(ANtpDefVal::kInt),
00032 begPlaneV(ANtpDefVal::kInt),
00033 endPlaneV(ANtpDefVal::kInt),
00034 length(ANtpDefVal::kFloat),
00035 vtxX(ANtpDefVal::kFloat),
00036 vtxY(ANtpDefVal::kFloat),
00037 vtxZ(ANtpDefVal::kFloat),
00038 dcosXVtx(ANtpDefVal::kFloat),
00039 dcosYVtx(ANtpDefVal::kFloat),
00040 dcosZVtx(ANtpDefVal::kFloat),
00041 endX(ANtpDefVal::kFloat),
00042 endY(ANtpDefVal::kFloat),
00043 endZ(ANtpDefVal::kFloat),
00044 dcosXEnd(ANtpDefVal::kFloat),
00045 dcosYEnd(ANtpDefVal::kFloat),
00046 dcosZEnd(ANtpDefVal::kFloat),
00047 reducedChi2(ANtpDefVal::kFloat),
00048 passedFit(ANtpDefVal::kInt),
00049 traceVtx(ANtpDefVal::kFloat),
00050 traceVtxZ(ANtpDefVal::kFloat),
00051 traceEnd(ANtpDefVal::kFloat),
00052 traceEndZ(ANtpDefVal::kFloat),
00053 endMetersToBeam(ANtpDefVal::kFloat),
00054 endMetersToCoil(ANtpDefVal::kFloat),
00055 endMetersToCloseEdge(ANtpDefVal::kFloat),
00056 vtxMetersToBeam(ANtpDefVal::kFloat),
00057 vtxMetersToCoil(ANtpDefVal::kFloat),
00058 vtxMetersToCloseEdge(ANtpDefVal::kFloat),
00059 forwardRMS(ANtpDefVal::kFloat),
00060 backwardRMS(ANtpDefVal::kFloat)
00061 {
00062
00063 MSG("ANtpTrackInfo", Msg::kDebug) << "ANtpTrackInfo::Constructor" << endl;
00064 for(int i = 0; i < 500; ++i) stripsPerPlane[i] = 0;
00065
00066 }
00067
00068
00069 ANtpTrackInfo::~ANtpTrackInfo()
00070 {
00071
00072 MSG("ANtpTrackInfo", Msg::kDebug) << "ANtpTrackInfo::Destructor" << endl;
00073
00074 }
00075
00076
00077 void ANtpTrackInfo::Reset()
00078 {
00079 planes = ANtpDefVal::kInt;
00080 totalStrips = ANtpDefVal::kInt;
00081 pulseHeight = ANtpDefVal::kFloat;
00082 fitMomentum = ANtpDefVal::kFloat;
00083 rangeMomentum = ANtpDefVal::kFloat;
00084 sigmaQoverP = ANtpDefVal::kFloat;
00085 begPlane = ANtpDefVal::kInt;
00086 endPlane = ANtpDefVal::kInt;
00087 begPlaneU = ANtpDefVal::kInt;
00088 endPlaneU = ANtpDefVal::kInt;
00089 begPlaneV = ANtpDefVal::kInt;
00090 endPlaneV = ANtpDefVal::kInt;
00091 length = ANtpDefVal::kFloat;
00092 vtxX = ANtpDefVal::kFloat;
00093 vtxY = ANtpDefVal::kFloat;
00094 vtxZ = ANtpDefVal::kFloat;
00095 dcosXVtx = ANtpDefVal::kFloat;
00096 dcosYVtx = ANtpDefVal::kFloat;
00097 dcosZVtx = ANtpDefVal::kFloat;
00098 endX = ANtpDefVal::kFloat;
00099 endY = ANtpDefVal::kFloat;
00100 endZ = ANtpDefVal::kFloat;
00101 dcosXEnd = ANtpDefVal::kFloat;
00102 dcosYEnd = ANtpDefVal::kFloat;
00103 dcosZEnd = ANtpDefVal::kFloat;
00104 reducedChi2 = ANtpDefVal::kFloat;
00105 passedFit = ANtpDefVal::kInt;
00106 traceVtx = ANtpDefVal::kFloat;
00107 traceVtxZ = ANtpDefVal::kFloat;
00108 traceEnd = ANtpDefVal::kFloat;
00109 traceEndZ = ANtpDefVal::kFloat;
00110 endMetersToBeam = ANtpDefVal::kFloat;
00111 endMetersToCoil = ANtpDefVal::kFloat;
00112 endMetersToCloseEdge = ANtpDefVal::kFloat;
00113 vtxMetersToBeam = ANtpDefVal::kFloat;
00114 vtxMetersToCoil = ANtpDefVal::kFloat;
00115 vtxMetersToCloseEdge = ANtpDefVal::kFloat;
00116 forwardRMS = ANtpDefVal::kFloat;
00117 backwardRMS = ANtpDefVal::kFloat;
00118
00119 for(int i = 0; i < 500; ++i) stripsPerPlane[i] = 0;
00120
00121 return;
00122 }
00123