45 constexpr
int CEST(+2);
55 localTime = localtime(¤tTime);
56 int year = localTime->tm_year + 1900;
64 if (year >= 70 && year <= 137)
68 edm::LogError(
"BadTimeStamp") <<
"year reported is " << year <<
" !!" << std::endl;
73 "%4d-%02d-%02d %02d:%02d:%02d",
81 #ifdef STRIP_TRAILING_BLANKS_IN_TIMEZONE
82 unsigned int b = strlen(ts);
83 while (ts[--
b] ==
' ') {
95 : dxBin_(ps.getParameter<
int>(
"dxBin")),
96 dxMin_(ps.getParameter<double>(
"dxMin")),
97 dxMax_(ps.getParameter<double>(
"dxMax")),
99 vxBin_(ps.getParameter<
int>(
"vxBin")),
100 vxMin_(ps.getParameter<double>(
"vxMin")),
101 vxMax_(ps.getParameter<double>(
"vxMax")),
103 phiBin_(ps.getParameter<
int>(
"phiBin")),
104 phiMin_(ps.getParameter<double>(
"phiMin")),
105 phiMax_(ps.getParameter<double>(
"phiMax")),
107 dzBin_(ps.getParameter<
int>(
"dzBin")),
108 dzMin_(ps.getParameter<double>(
"dzMin")),
109 dzMax_(ps.getParameter<double>(
"dzMax")),
116 StartAverage_(
false),
213 edm::LogInfo(
"BeamMonitor") <<
"TimeOffset = " << eventTime << std::endl;
214 TDatime
da(eventTime);
219 auto daTime =
da.Convert(kTRUE);
226 h_nTrk_lumi = iBooker.
book1D(
"nTrk_lumi",
"Num. of selected tracks vs lumi (Fit)", 20, 0.5, 20.5);
231 h_nVtx_lumi = iBooker.
book1D(
"nVtx_lumi",
"Num. of selected Vtx vs lumi (Fit)", 20, 0.5, 20.5);
235 h_nVtx_lumi_all = iBooker.
book1D(
"nVtx_lumi_all",
"Num. of selected Vtx vs lumi (Fit) all", 20, 0.5, 20.5);
253 TDatime*
da =
new TDatime();
254 gStyle->SetTimeOffset(
da->Convert(kTRUE));
258 string coord[nvar_] = {
"x",
"y",
"z",
"sigmaX",
"sigmaY",
"sigmaZ"};
259 string label[nvar_] = {
260 "x_{0} (cm)",
"y_{0} (cm)",
"z_{0} (cm)",
"#sigma_{X_{0}} (cm)",
"#sigma_{Y_{0}} (cm)",
"#sigma_{Z_{0}} (cm)"};
262 hs.reserve(kNumHists);
263 for (
int i = 0;
i < 4;
i++) {
265 for (
int ic = 0; ic < nvar_; ++ic) {
266 TString histName(coord[ic]);
271 bool createHisto =
true;
274 histName +=
"0_time";
277 histTitle +=
" coordinate of beam spot vs time (Fit)";
284 histName.Insert(0,
"PV");
287 histTitle +=
" position of primary vtx vs lumi";
290 ytitle +=
" #pm #sigma_{PV";
299 histName.Insert(0,
"PV");
302 histTitle +=
" position of primary vtx vs time";
305 ytitle +=
" #pm #sigma_{PV";
312 histName +=
"0_lumi";
315 histTitle +=
" coordinate of beam spot vs lumi (Fit)";
321 edm::LogInfo(
"BeamMonitor") <<
"hitsName = " << histName <<
"; histTitle = " <<
histTitle << std::endl;
324 tmpHs->setAxisTitle(
xtitle, 1);
325 tmpHs->setAxisTitle(
ytitle, 2);
326 tmpHs->getTH1()->SetOption(
"E1");
327 if (histName.Contains(
"time")) {
330 tmpHs->setAxisTimeDisplay(1);
331 tmpHs->setAxisTimeFormat(
"%H:%M:%S", 1);
332 tmpHs->getTH1()->GetXaxis()->SetTimeOffset(daTime);
338 tmpHs->getTH1()->SetCanExtend(TH1::kAllAxes);
339 tmpHs->setAxisTitle(
xtitle, 1);
340 tmpHs->setAxisTitle(
ytitle, 2);
341 tmpHs->getTH1()->SetOption(
"E1");
342 if (histName.Contains(
"time")) {
345 tmpHs->setAxisTimeDisplay(1);
346 tmpHs->setAxisTimeFormat(
"%H:%M:%S", 1);
347 tmpHs->getTH1()->GetXaxis()->SetTimeOffset(daTime);
353 assert(0 == strcmp(
hs[k_sigmaY0_time]->getTH1()->GetName(),
"sigmaY0_time"));
354 assert(0 == strcmp(
hs[k_PVz_lumi_all]->getTH1()->GetName(),
"PVz_lumi_all"));
371 h_x0 = iBooker.
book1D(
"BeamMonitorFeedBack_x0",
"x coordinate of beam spot (Fit)", 100, -0.01, 0.01);
375 h_y0 = iBooker.
book1D(
"BeamMonitorFeedBack_y0",
"y coordinate of beam spot (Fit)", 100, -0.01, 0.01);
383 h_sigmaX0 = iBooker.
book1D(
"BeamMonitorFeedBack_sigmaX0",
"sigma x0 of beam spot (Fit)", 100, 0, 0.05);
387 h_sigmaY0 = iBooker.
book1D(
"BeamMonitorFeedBack_sigmaY0",
"sigma y0 of beam spot (Fit)", 100, 0, 0.05);
391 h_sigmaZ0 = iBooker.
book1D(
"BeamMonitorFeedBack_sigmaZ0",
"sigma z0 of beam spot (Fit)", 100, 0, 10);
396 h_trkPt = iBooker.
book1D(
"trkPt",
"p_{T} of all reco'd tracks (no selection)", 200, 0., 50.);
402 cutFlowTable = iBooker.
book1D(
"cutFlowTable",
"Cut flow table of track selection", 9, 0, 9);
405 fitResults = iBooker.
book2D(
"fitResults",
"Results of previous good beam fit", 2, 0, 2, 8, 0, 8);
422 h_nVtx = iBooker.
book1D(
"vtxNbr",
"Reconstructed Vertices(non-fake) in all Event", 60, -0.5, 59.5);
426 h_nVtx_st = iBooker.
book1D(
"vtxNbr_SelectedTriggers",
"Reconstructed Vertices(non-fake) in Events", 60, -0.5, 59.5);
430 h_PVx[0] = iBooker.
book1D(
"PVX",
"x coordinate of Primary Vtx", 50, -0.01, 0.01);
434 h_PVy[0] = iBooker.
book1D(
"PVY",
"y coordinate of Primary Vtx", 50, -0.01, 0.01);
441 h_PVx[1] = iBooker.
book1D(
"PVXFit",
"x coordinate of Primary Vtx (Last Fit)", 50, -0.01, 0.01);
445 h_PVy[1] = iBooker.
book1D(
"PVYFit",
"y coordinate of Primary Vtx (Last Fit)", 50, -0.01, 0.01);
461 pvResults = iBooker.
book2D(
"pvResults",
"Results of fitting Primary Vertices", 2, 0, 2, 6, 0, 6);
485 sprintf(
histo,
"x0_status");
488 sprintf(
histo,
"y0_status");
491 sprintf(
histo,
"z0_status");
527 const std::time_t ftmptime = fbegintimestamp >> 32;
571 map<int, std::time_t>::iterator itbstime =
mapBeginBSTime.begin();
572 map<int, std::time_t>::iterator itpvtime =
mapBeginPVTime.begin();
642 edm::LogInfo(
"BeamMonitor") <<
" beginLuminosityBlock:: Begin of Lumi: " << nthlumi << endl;
647 const int nthlumi =
iEvent.luminosityBlock();
649 edm::LogInfo(
"BeamMonitor") <<
"analyze:: Spilt event from previous lumi section!" << std::endl;
653 edm::LogInfo(
"BeamMonitor") <<
"analyze:: Spilt event from next lumi section!!!" << std::endl;
663 refBS = *recoBeamSpotHandle;
668 auto tmphisto = static_cast<TH1F*>(
theBeamFitter->getCutFlow());
670 tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
673 for (
int n = 0;
n < tmphisto->GetNbinsX();
n++)
690 bool JetTrigPass =
false;
706 if (
found != string::npos) {
724 if (
pv->isFake() ||
pv->tracksSize() == 0)
764 map<int, std::vector<float> >::iterator itpvx =
mapPVx.begin();
765 map<int, std::vector<float> >::iterator itpvy =
mapPVy.begin();
766 map<int, std::vector<float> >::iterator itpvz =
mapPVz.begin();
768 map<int, std::vector<int> >::iterator itbspvinfo =
mapNPV.begin();
785 edm::LogInfo(
"BeamMonitor") <<
"endLuminosityBlock:: Lumi of the last event before endLuminosityBlock: " << nthlumi
791 const std::time_t fendtime = fendtimestamp >> 32;
810 int currentlumi = nextlumi;
811 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: Lumi of the current fit: " << currentlumi << endl;
812 lastlumi = currentlumi;
821 size_t SizeToRemovePV = rmLSPVi->second;
822 for (std::map<int, std::size_t>::iterator rmLSPVe =
mapLSPVStoreSize.end(); ++rmLSPVi != rmLSPVe;)
823 rmLSPVi->second -= SizeToRemovePV;
831 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: Size of thePVvector After removing the PVs = "
835 bool resetHistoFlag_ =
false;
841 resetHistoFlag_ =
true;
845 int countEvtLastNLS_ = 0;
848 std::map<int, std::vector<int> >::iterator mnpv =
mapNPV.begin();
849 std::map<int, std::vector<float> >::iterator mpv2 =
mapPVy.begin();
850 std::map<int, std::vector<float> >::iterator mpv3 =
mapPVz.begin();
853 ++mpv1, ++mpv2, ++mpv3, ++mnpv) {
854 std::vector<float>::iterator mpvs2 = (mpv2->second).begin();
855 std::vector<float>::iterator mpvs3 = (mpv3->second).begin();
856 for (std::vector<float>::iterator mpvs1 = (mpv1->second).begin(); mpvs1 != (mpv1->second).
end();
857 ++mpvs1, ++mpvs2, ++mpvs3) {
858 if (resetHistoFlag_) {
866 for (std::vector<int>::iterator mnpvs = (mnpv->second).begin(); mnpvs != (mnpv->second).
end(); ++mnpvs) {
867 if ((*mnpvs > 0) && (resetHistoFlag_))
870 countTotPV_ += (*mnpvs);
871 if ((*mnpvs) > MaxPVs)
877 char tmpTitlePV[100];
881 std::vector<float> DipPVInfo_;
884 if (countTotPV_ != 0) {
885 DipPVInfo_.push_back((
float)countEvtLastNLS_);
890 DipPVInfo_.push_back((
float)MaxPVs);
891 DipPVInfo_.push_back((
float)countTotPV_);
894 for (
size_t i = 0;
i < 7;
i++) {
896 DipPVInfo_.push_back(0.);
898 DipPVInfo_.push_back((
float)countEvtLastNLS_);
903 countEvtLastNLS_ = 0;
907 const int countLS_bs =
hs[k_x0_lumi]->getTH1()->GetEntries();
908 const int countLS_pv =
hs[k_PVx_lumi]->getTH1()->GetEntries();
909 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: countLS_bs = " << countLS_bs <<
" ; countLS_pv = " << countLS_pv
911 int LSgap_bs = currentlumi /
fitNLumi_ - countLS_bs;
912 int LSgap_pv = currentlumi /
fitPVNLumi_ - countLS_pv;
917 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: LSgap_bs = " << LSgap_bs <<
" ; LSgap_pv = " << LSgap_pv << std::endl;
919 for (
int ig = 0; ig < LSgap_bs; ig++) {
923 hs[k_sigmaX0_lumi]->ShiftFillLast(0., 0.,
fitNLumi_);
924 hs[k_sigmaY0_lumi]->ShiftFillLast(0., 0.,
fitNLumi_);
925 hs[k_sigmaZ0_lumi]->ShiftFillLast(0., 0.,
fitNLumi_);
928 for (
int ig = 0; ig < LSgap_pv; ig++) {
934 for (
int i = 1;
i < (currentlumi - previousLS);
953 bool doPVFit =
false;
975 std::unique_ptr<TF1> fgaus{
new TF1(
"fgaus",
"gaus")};
977 fgaus->SetLineColor(4);
979 mean = fgaus->GetParameter(1);
980 width = fgaus->GetParameter(2);
981 meanErr = fgaus->GetParError(1);
982 widthErr = fgaus->GetParError(2);
985 hs[k_PVx_lumi_all]->setBinContent(currentlumi,
mean);
986 hs[k_PVx_lumi_all]->setBinError(currentlumi,
width);
989 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: Event time outside current range of time histograms!"
992 hs[k_PVx_time]->setBinContent(nthBin,
mean);
993 hs[k_PVx_time]->setBinError(nthBin,
width);
997 hs[k_PVx_time_all]->setBinContent(jthBin,
mean);
998 hs[k_PVx_time_all]->setBinError(jthBin,
width);
1009 tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
1016 mean = fgaus->GetParameter(1);
1017 width = fgaus->GetParameter(2);
1018 meanErr = fgaus->GetParError(1);
1019 widthErr = fgaus->GetParError(2);
1021 hs[k_PVy_lumi_all]->setBinContent(currentlumi,
mean);
1022 hs[k_PVy_lumi_all]->setBinError(currentlumi,
width);
1024 hs[k_PVy_time]->setBinContent(nthBin,
mean);
1025 hs[k_PVy_time]->setBinError(nthBin,
width);
1028 hs[k_PVy_time_all]->setBinContent(jthBin,
mean);
1029 hs[k_PVy_time_all]->setBinError(jthBin,
width);
1039 tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
1046 mean = fgaus->GetParameter(1);
1047 width = fgaus->GetParameter(2);
1048 meanErr = fgaus->GetParError(1);
1049 widthErr = fgaus->GetParError(2);
1051 hs[k_PVz_lumi_all]->setBinContent(currentlumi,
mean);
1052 hs[k_PVz_lumi_all]->setBinError(currentlumi,
width);
1054 hs[k_PVz_time]->setBinContent(nthBin,
mean);
1055 hs[k_PVz_time]->setBinError(nthBin,
width);
1058 hs[k_PVz_time_all]->setBinContent(jthBin,
mean);
1059 hs[k_PVz_time_all]->setBinError(jthBin,
width);
1069 tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
1083 vector<BSTrkParameters> theBSvector1 =
theBeamFitter->getBSvector();
1085 size_t PreviousRecords = 0;
1088 size_t SizeToRemove = 0;
1089 std::map<int, std::size_t>::iterator rmls =
mapLSBSTrkSize.begin();
1090 SizeToRemove = rmls->second;
1092 edm::LogInfo(
"BeamMonitor") <<
" The size to remove is = " << SizeToRemove << endl;
1093 int changedAfterThis = 0;
1095 ++rmLS, ++changedAfterThis) {
1096 if (changedAfterThis > 0) {
1097 (rmLS->second) = (rmLS->second) - SizeToRemove;
1099 PreviousRecords = (rmLS->second);
1108 std::pair<int, int> checkfitLS =
theBeamFitter->getFitLSRange();
1109 std::pair<time_t, time_t> checkfitTime =
theBeamFitter->getRefTime();
1115 vector<BSTrkParameters> theBSvector =
theBeamFitter->getBSvector();
1119 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: Size of theBSViector.size() After =" << theBSvector.size() << endl;
1121 bool countFitting =
false;
1122 if (theBSvector.size() >= PreviousRecords && theBSvector.size() >=
min_Ntrks_) {
1123 countFitting =
true;
1129 const TH1F& cutFlowToSubtract =
mapLSCF.begin()->second;
1131 std::map<int, TH1F>::iterator cf =
mapLSCF.begin();
1133 for (; cf !=
mapLSCF.end(); ++cf) {
1134 cf->second.Add(&cutFlowToSubtract, -1);
1155 unsigned int itrk = 0;
1156 for (vector<BSTrkParameters>::const_iterator BSTrk = theBSvector.begin(); BSTrk != theBSvector.end();
1160 double vx = BSTrk->vx();
1161 double vy = BSTrk->vy();
1162 double z0 = BSTrk->z0();
1194 <<
"; address = " << &
refBStime[0] << std::endl;
1196 <<
"; address = " << &
refBStime[1] << std::endl;
1205 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: [BeamFitter] Do BeamSpot Fit for LS = " << fitLS.first <<
" to "
1206 << fitLS.second << std::endl;
1216 edm::LogInfo(
"BeamMonitor") <<
"\n RESULTS OF DEFAULT FIT:" << endl;
1218 edm::LogInfo(
"BeamMonitor") <<
"[BeamFitter] fitting done \n" << endl;
1223 hs[k_sigmaX0_lumi]->ShiftFillLast(
bs.BeamWidthX(),
bs.BeamWidthXError(),
fitNLumi_);
1224 hs[k_sigmaY0_lumi]->ShiftFillLast(
bs.BeamWidthY(),
bs.BeamWidthYError(),
fitNLumi_);
1225 hs[k_sigmaZ0_lumi]->ShiftFillLast(
bs.sigmaZ(),
bs.sigmaZ0Error(),
fitNLumi_);
1226 hs[k_x0_lumi_all]->setBinContent(currentlumi,
bs.x0());
1227 hs[k_x0_lumi_all]->setBinError(currentlumi,
bs.x0Error());
1228 hs[k_y0_lumi_all]->setBinContent(currentlumi,
bs.y0());
1229 hs[k_y0_lumi_all]->setBinError(currentlumi,
bs.y0Error());
1230 hs[k_z0_lumi_all]->setBinContent(currentlumi,
bs.z0());
1231 hs[k_z0_lumi_all]->setBinError(currentlumi,
bs.z0Error());
1232 hs[k_sigmaX0_lumi_all]->setBinContent(currentlumi,
bs.BeamWidthX());
1233 hs[k_sigmaX0_lumi_all]->setBinError(currentlumi,
bs.BeamWidthXError());
1234 hs[k_sigmaY0_lumi_all]->setBinContent(currentlumi,
bs.BeamWidthY());
1235 hs[k_sigmaY0_lumi_all]->setBinError(currentlumi,
bs.BeamWidthYError());
1236 hs[k_sigmaZ0_lumi_all]->setBinContent(currentlumi,
bs.sigmaZ());
1237 hs[k_sigmaZ0_lumi_all]->setBinError(currentlumi,
bs.sigmaZ0Error());
1241 hs[k_x0_time]->setBinContent(nthBin,
bs.x0());
1242 hs[k_y0_time]->setBinContent(nthBin,
bs.y0());
1243 hs[k_z0_time]->setBinContent(nthBin,
bs.z0());
1244 hs[k_sigmaX0_time]->setBinContent(nthBin,
bs.BeamWidthX());
1245 hs[k_sigmaY0_time]->setBinContent(nthBin,
bs.BeamWidthY());
1246 hs[k_sigmaZ0_time]->setBinContent(nthBin,
bs.sigmaZ());
1247 hs[k_x0_time]->setBinError(nthBin,
bs.x0Error());
1248 hs[k_y0_time]->setBinError(nthBin,
bs.y0Error());
1249 hs[k_z0_time]->setBinError(nthBin,
bs.z0Error());
1250 hs[k_sigmaX0_time]->setBinError(nthBin,
bs.BeamWidthXError());
1251 hs[k_sigmaY0_time]->setBinError(nthBin,
bs.BeamWidthYError());
1252 hs[k_sigmaZ0_time]->setBinError(nthBin,
bs.sigmaZ0Error());
1257 hs[k_x0_time_all]->setBinContent(jthBin,
bs.x0());
1258 hs[k_y0_time_all]->setBinContent(jthBin,
bs.y0());
1259 hs[k_z0_time_all]->setBinContent(jthBin,
bs.z0());
1260 hs[k_sigmaX0_time_all]->setBinContent(jthBin,
bs.BeamWidthX());
1261 hs[k_sigmaY0_time_all]->setBinContent(jthBin,
bs.BeamWidthY());
1262 hs[k_sigmaZ0_time_all]->setBinContent(jthBin,
bs.sigmaZ());
1263 hs[k_x0_time_all]->setBinError(jthBin,
bs.x0Error());
1264 hs[k_y0_time_all]->setBinError(jthBin,
bs.y0Error());
1265 hs[k_z0_time_all]->setBinError(jthBin,
bs.z0Error());
1266 hs[k_sigmaX0_time_all]->setBinError(jthBin,
bs.BeamWidthXError());
1267 hs[k_sigmaY0_time_all]->setBinError(jthBin,
bs.BeamWidthYError());
1268 hs[k_sigmaZ0_time_all]->setBinError(jthBin,
bs.sigmaZ0Error());
1274 if (
bs.type() > 0) {
1282 double alpha = std::atan2(
bs.y0(),
bs.x0());
1283 std::unique_ptr<TF1>
f1{
new TF1(
"f1",
"[0]*sin(x-[1])", -3.14, 3.14)};
1284 f1->SetParameters(amp,
alpha);
1285 f1->SetParLimits(0, amp - 0.1, amp + 0.1);
1287 f1->SetLineColor(4);
1292 std::unique_ptr<TF1> fgaus{
new TF1(
"fgaus",
"gaus")};
1294 fgaus->SetLineColor(4);
1299 std::pair<int, int> LSRange =
theBeamFitter->getFitLSRange();
1301 sprintf(tmpTitle,
"%s %i %s %i",
"Fitted Beam Spot (cm) of LS: ", LSRange.first,
" to ", LSRange.second);
1309 if (
bs.type() > 0) {
1323 if (
bs.type() > 0) {
1359 for (
int i = 0;
i < 7; ++
i) {
1360 for (
int j = 0;
j < 7; ++
j) {
1371 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill::[PayloadCreation] BeamSpotOnline object created: \n" << std::endl;
1376 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill::[PayloadCreation] onlineDbService available \n" << std::endl;
1381 <<
"BeamMonitor::FitAndFill - [BeamFitter] Do BeamSpot Fit for LS = " << fitLS.first <<
" to "
1384 <<
"BeamMonitor::FitAndFill - [BeamMonitor] Do BeamSpot Fit for LS = " <<
beginLumiOfBSFit_ <<
" to "
1389 <<
"BeamMonitor::FitAndFill - [PayloadCreation] BeamSpotOnline object created:";
1393 <<
"BeamMonitor::FitAndFill - [PayloadCreation] SetCreationTime: " <<
creationTime
1394 <<
" [epoch in microseconds]";
1398 <<
"BeamMonitor::FitAndFill - [PayloadCreation] writeForNextLumisection executed correctly";
1401 <<
" for Run: " <<
frun <<
" - Lumi: " << fitLS.second;
1408 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill::[PayloadCreation] BeamSpotOnline payload created \n" << std::endl;
1413 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: [BeamMonitor] Beam fit fails!!! \n" << endl;
1414 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: [BeamMonitor] Output beam spot for DIP \n" << endl;
1424 hs[k_sigmaX0_lumi]->ShiftFillLast(
bs.BeamWidthX(),
bs.BeamWidthXError(),
fitNLumi_);
1425 hs[k_sigmaY0_lumi]->ShiftFillLast(
bs.BeamWidthY(),
bs.BeamWidthYError(),
fitNLumi_);
1426 hs[k_sigmaZ0_lumi]->ShiftFillLast(
bs.sigmaZ(),
bs.sigmaZ0Error(),
fitNLumi_);
1440 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: [BeamMonitor] No fitting \n" << endl;
1441 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: [BeamMonitor] Output fake beam spot for DIP \n" << endl;
1451 hs[k_sigmaX0_lumi]->ShiftFillLast(
bs.BeamWidthX(),
bs.BeamWidthXError(),
fitNLumi_);
1452 hs[k_sigmaY0_lumi]->ShiftFillLast(
bs.BeamWidthY(),
bs.BeamWidthYError(),
fitNLumi_);
1453 hs[k_sigmaZ0_lumi]->ShiftFillLast(
bs.sigmaZ(),
bs.sigmaZ0Error(),
fitNLumi_);
1483 edm::LogInfo(
"BeamMonitor") <<
"FitAndFill:: The flag is ON for running average Beam Spot fit" << endl;
1497 <<
" RestartingFitting:: Restart Beami everything to a fresh start !!! because Gap is > 10 LS" << endl;
1534 edm::LogInfo(
"BeamMonitor") <<
"dqmEndRun:: Clearing all the Maps " << endl;
1551 char offsetTime[64];
1553 TDatime
da(offsetTime);
1558 h->GetXaxis()->SetTimeOffset(
da.Convert(kTRUE));
1561 h->SetBinError(
bin, valErr);
1564 h->GetXaxis()->SetTimeOffset(
da.Convert(kTRUE));
1571 bool scroll_ =
false;
1574 edm::LogInfo(
"BeamMonitor") <<
"testScroll:: Reset Time Offset" << std::endl;
1577 if (
hs[k_x0_time]->getBinContent(
bin) > 0) {
1584 edm::LogInfo(
"BeamMonitor") <<
"testScroll:: Time difference too large since last readout" << std::endl;
1588 edm::LogInfo(
"BeamMonitor") <<
"testScroll:: Offset to last record" << std::endl;