00001
00002
00003
00004
00005
00006
00008
00009 #include "AnalysisNtuples/ANtpBeamInfo.h"
00010 #include "AnalysisNtuples/ANtpDefaultValue.h"
00011 #include "MessageService/MsgService.h"
00012
00013 #include <cassert>
00014 #include <algorithm>
00015
00016 ClassImp(ANtpBeamInfo)
00017
00018 CVSID("$Id: ANtpBeamInfo.cxx,v 1.9 2010/01/19 18:10:24 tinti Exp $");
00019
00020
00021 ANtpBeamInfo::ANtpBeamInfo() :
00022 tor101(ANtpDefVal::kFloat),
00023 tr101d(ANtpDefVal::kFloat),
00024 tortgt(ANtpDefVal::kFloat),
00025 trtgtd(ANtpDefVal::kFloat),
00026 hornCurrent(ANtpDefVal::kFloat),
00027 targetBPMX(ANtpDefVal::kFloat),
00028 targetBPMY(ANtpDefVal::kFloat),
00029 profileWidthX(ANtpDefVal::kFloat),
00030 profileWidthY(ANtpDefVal::kFloat),
00031 hadronIntensity(ANtpDefVal::kFloat),
00032 muonIntensity1(ANtpDefVal::kFloat),
00033 muonIntensity2(ANtpDefVal::kFloat),
00034 muonIntensity3(ANtpDefVal::kFloat),
00035 beamType(ANtpDefVal::kInt),
00036 protonIntensity(ANtpDefVal::kFloat),
00037 timeToNearestSpill(ANtpDefVal::kFloat),
00038 streamSpillTimeDiff(ANtpDefVal::kFloat),
00039 nearestSecToSpill(ANtpDefVal::kInt),
00040 nearestNSToSpill(ANtpDefVal::kInt),
00041 goodSpill(ANtpDefVal::kInt),
00042 deltaSecToSpillGPS(ANtpDefVal::kInt),
00043 gpsError(ANtpDefVal::kInt)
00044 {
00045
00046 MSG("ANtpBeamInfo", Msg::kDebug) << "ANtpBeamInfo::Constructor" << endl;
00047
00048 }
00049
00050
00051 ANtpBeamInfo::~ANtpBeamInfo()
00052 {
00053
00054 MSG("ANtpBeamInfo", Msg::kDebug) << "ANtpBeamInfo::Destructor" << endl;
00055
00056 }
00057
00058
00059 void ANtpBeamInfo::Reset()
00060 {
00061 tor101 = ANtpDefVal::kFloat;
00062 tr101d = ANtpDefVal::kFloat;
00063 tortgt = ANtpDefVal::kFloat;
00064 trtgtd = ANtpDefVal::kFloat;
00065 hornCurrent = ANtpDefVal::kFloat;
00066 targetBPMX = ANtpDefVal::kFloat;
00067 targetBPMY = ANtpDefVal::kFloat;
00068 profileWidthX = ANtpDefVal::kFloat;
00069 profileWidthY = ANtpDefVal::kFloat;
00070 hadronIntensity = ANtpDefVal::kFloat;
00071 muonIntensity1 = ANtpDefVal::kFloat;
00072 muonIntensity2 = ANtpDefVal::kFloat;
00073 muonIntensity3 = ANtpDefVal::kFloat;
00074 beamType = ANtpDefVal::kInt;
00075 protonIntensity = ANtpDefVal::kFloat;
00076 timeToNearestSpill = ANtpDefVal::kFloat;
00077 streamSpillTimeDiff = ANtpDefVal::kFloat;
00078 nearestSecToSpill = ANtpDefVal::kInt;
00079 nearestNSToSpill = ANtpDefVal::kInt;
00080 goodSpill = ANtpDefVal::kInt;
00081 deltaSecToSpillGPS = ANtpDefVal::kInt;
00082 gpsError = ANtpDefVal::kInt;
00083
00084 return;
00085 }