00001
00002
00003
00004
00005
00006
00008
00009 #include "AnalysisNtuples/ANtpEventInfo.h"
00010 #include "AnalysisNtuples/ANtpDefaultValue.h"
00011 #include "MessageService/MsgService.h"
00012
00013 #include <cassert>
00014 #include <algorithm>
00015
00016 ClassImp(ANtpEventInfo)
00017
00018 CVSID("$Id: ANtpEventInfo.cxx,v 1.11 2006/02/22 16:07:03 brebel Exp $");
00019
00020
00021 ANtpEventInfo::ANtpEventInfo() :
00022 index(ANtpDefVal::kInt),
00023 pulseHeight(ANtpDefVal::kFloat),
00024 energyGeV(ANtpDefVal::kFloat),
00025 begPlane(ANtpDefVal::kInt),
00026 endPlane(ANtpDefVal::kInt),
00027 planes(ANtpDefVal::kInt),
00028 totalStrips(ANtpDefVal::kInt),
00029 passStrips(ANtpDefVal::kInt),
00030 showers(ANtpDefVal::kInt),
00031 tracks(ANtpDefVal::kInt),
00032 vtxX(ANtpDefVal::kFloat),
00033 vtxY(ANtpDefVal::kFloat),
00034 vtxZ(ANtpDefVal::kFloat),
00035 vertexTime(ANtpDefVal::kFloat),
00036 vtxMetersToBeam(ANtpDefVal::kFloat),
00037 vtxMetersToCoil(ANtpDefVal::kFloat),
00038 vtxMetersToCloseEdge(ANtpDefVal::kFloat)
00039 {
00040
00041 for(int i = 0; i < 500; ++i) stripsPerPlane[i] = 0;
00042
00043 MSG("ANtpEventInfo", Msg::kDebug) << "ANtpEventInfo::Constructor" << endl;
00044
00045 }
00046
00047
00048 ANtpEventInfo::~ANtpEventInfo()
00049 {
00050
00051 MSG("ANtpEventInfo", Msg::kDebug) << "ANtpEventInfo::Destructor" << endl;
00052
00053 }
00054
00055
00056 void ANtpEventInfo::Reset()
00057 {
00058 index = ANtpDefVal::kInt;
00059 pulseHeight = ANtpDefVal::kFloat;
00060 energyGeV = ANtpDefVal::kFloat;
00061 begPlane = ANtpDefVal::kInt;
00062 endPlane = ANtpDefVal::kInt;
00063 planes = ANtpDefVal::kInt;
00064 totalStrips = ANtpDefVal::kInt;
00065 passStrips = ANtpDefVal::kInt;
00066 showers = ANtpDefVal::kInt;
00067 tracks = ANtpDefVal::kInt;
00068 vtxX = ANtpDefVal::kFloat;
00069 vtxY = ANtpDefVal::kFloat;
00070 vtxZ = ANtpDefVal::kFloat;
00071 vertexTime = ANtpDefVal::kFloat;
00072 vtxMetersToBeam = ANtpDefVal::kFloat;
00073 vtxMetersToCoil = ANtpDefVal::kFloat;
00074 vtxMetersToCloseEdge = ANtpDefVal::kFloat;
00075 for(int i = 0; i < 500; ++i) stripsPerPlane[i] = 0;
00076 return;
00077 }