CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
beamSpotDipStandalone.cc File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cmath>
#include <cstring>
#include <ctime>
#include <sys/stat.h>
#include <bitset>
#include <unistd.h>
#include "Dip.h"
#include "DipFactory.h"
#include "DipPublication.h"
#include "DipTimestamp.h"

Go to the source code of this file.

Classes

class  ErrHandler
 

Functions

void beginServer ()
 
void CMS2LHCRF_POS (float x, float y, float z)
 
void endServer ()
 
void fakeRcd ()
 
string getDateTime (time_t t)
 
string getDateTime ()
 
long getFileSize (string filename)
 
time_t getLastTime (string filename)
 
int main (int narg, char *args[])
 
vector< string > parse (string line, const string &delimiter)
 
void polling ()
 
void problem ()
 
void publishRcd (string qlty, string err, bool pubCMS, bool fitTime)
 
bool readRcd (ifstream &file)
 
string tkStatus ()
 
void trueRcd ()
 

Variables

std::bitset< 8 > alive
 
float Centroid [3]
 
const int cm2mm = 10
 
const int cm2um = 10000
 
int currentLS = 0
 
DipFactory * dip
 
float dxdz = 0
 
float dydz = 0
 
string endTime
 
time_t endTimeStamp = 0
 
float err_dxdz = 0
 
float err_dydz = 0
 
float err_meanPV = 0
 
float err_rmsPV = 0
 
float err_sigma_z = 0
 
float err_width_x = 0
 
float err_width_y = 0
 
float err_x = 0
 
float err_y = 0
 
float err_z = 0
 
int events = 0
 
const int intLS = 1
 
long lastFitTime = 0
 
long lastModTime = 0
 
int lsCount = 0
 
string lumiRange = "0 - 0"
 
int maxPV = 0
 
float meanPV = 0
 
DipData * messageCMS
 
DipData * messageLHC
 
DipData * messagePV
 
int nPV = 0
 
DipPublication * publicationCMS
 
DipPublication * publicationLHC
 
DipPublication * publicationPV
 
const bool publishStatErrors = true
 
const char * qualities [3] = {"Uncertain", "Bad", "Good"}
 
string quality = "Uncertain"
 
const int rad2urad = 1000000
 
float rmsPV = 0
 
int runnum
 
const int secPerLS = 23
 
float sigma_z = 0
 
float Size [3]
 
string sourceFile = "/nfshome0/dqmpro/BeamMonitorDQM/BeamFitResultsForDIP.txt"
 
string sourceFile1 = "/nfshome0/dqmpro/BeamMonitorDQM/BeamFitResultsOld_TkStatus.txt"
 
string startTime
 
time_t startTimeStamp = 0
 
const string subjectCMS = "dip/CMS/Tracker/BeamSpot"
 
const string subjectLHC = "dip/CMS/LHC/LuminousRegion"
 
const string subjectPV = "dip/CMS/Tracker/PrimaryVertices"
 
bool testing = false
 
float Tilt [2]
 
const int timeoutLS [2] = {1, 2}
 
int type = -1
 
bool verbose = false
 
float width_x = 0
 
float width_y = 0
 
float x = 0
 
float y = 0
 
float z = 0
 

Function Documentation

void beginServer ( )

Definition at line 617 of file beamSpotDipStandalone.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, dip, alignCSCRings::e, cppFunctionSkipper::exception, getDateTime(), messageCMS, messageLHC, messagePV, publicationCMS, publicationLHC, publicationPV, publishRcd(), qualities, quality, subjectCMS, subjectLHC, subjectPV, and trueRcd().

Referenced by main().

617  {
618  try {
619  ErrHandler errHandler;
620 
621  cerr << "server started at " + getDateTime() << endl;
622 
623  cerr << "creating publication " + subjectCMS << endl;
624  publicationCMS = dip->createDipPublication(subjectCMS.c_str(), &errHandler);
625  messageCMS = dip->createDipData();
626 
627  cerr << "creating publication " + subjectLHC << endl;
628  publicationLHC = dip->createDipPublication(subjectLHC.c_str(), &errHandler);
629  messageLHC = dip->createDipData();
630 
631  cerr << "creating publication " + subjectPV << endl;
632  publicationPV = dip->createDipPublication(subjectPV.c_str(), &errHandler);
633  messagePV = dip->createDipData();
634 
635  trueRcd(); // starts with all 0
636  publishRcd("UNINITIALIZED", "", true, false);
637  } catch (exception& e) {
638  cerr << "exception (start up): " << e.what() << endl;
639  }
640 
641  quality = qualities[0]; // start with Uncertain
642 }
const string subjectLHC
string getDateTime(time_t t)
DipPublication * publicationPV
string quality
void publishRcd(string qlty, string err, bool pubCMS, bool fitTime)
void trueRcd()
DipData * messageCMS
const string subjectCMS
DipPublication * publicationCMS
const string subjectPV
const char * qualities[3]
DipData * messageLHC
DipPublication * publicationLHC
DipData * messagePV
DipFactory * dip
void CMS2LHCRF_POS ( float  x,
float  y,
float  z 
)

Definition at line 159 of file beamSpotDipStandalone.cc.

References Centroid, cm2mm, cm2um, x, y, and z.

Referenced by BeamSpotDipServer::trueRcd(), and trueRcd().

159  {
160  if (x != 0) { // Rotation + Translation + Inversion + Scaling
161  double tmpx = x;
162  // x*rotY[0]*rotZ[0] + y*rotY[0]*rotZ[1] - z*rotY[1] + trans[0];
163  Centroid[0] = tmpx;
164  Centroid[0] *= -1.0 * cm2um;
165  } else
166  Centroid[0] = x;
167 
168  if (y != 0) { // Rotation + Translation + Scaling
169  double tmpy = y;
170  // x*(rotX[1]*rotY[1]*rotZ[0] - rotX[0]*rotZ[1]) +
171  // y*(rotX[0]*rotZ[0] + rotX[1]*rotY[1]*rotZ[1]) +
172  // z*rotX[1]*rotY[0] + trans[1];
173  Centroid[1] = tmpy;
174  Centroid[1] *= cm2um;
175  } else
176  Centroid[1] = y;
177 
178  if (z != 0) { // Rotation + Translation + Inversion + Scaling
179  double tmpz = z;
180  // x*(rotX[0]*rotY[1]*rotZ[0] + rotX[1]*rotZ[1]) +
181  // y*(rotX[0]*rotY[1]*rotZ[1] - rotX[1]*rotZ[0]) +
182  // z*rotX[0]*rotY[0] + trans[2];
183  Centroid[2] = tmpz;
184  Centroid[2] *= -1.0 * cm2mm;
185  } else
186  Centroid[2] = z;
187 }
const int cm2mm
float float float z
float Centroid[3]
const int cm2um
float x
void endServer ( )

Definition at line 645 of file beamSpotDipStandalone.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, dip, messageCMS, messageLHC, messagePV, publicationCMS, publicationLHC, publicationPV, subjectCMS, subjectLHC, and subjectPV.

Referenced by main().

645  {
646  // destroy publications and data
647  cerr << "destroying publication " + subjectCMS << endl;
648  dip->destroyDipPublication(publicationCMS);
649  delete messageCMS;
650 
651  cerr << "destroying publication " + subjectLHC << endl;
652  dip->destroyDipPublication(publicationLHC);
653  delete messageLHC;
654 
655  cerr << "destroying publication " + subjectPV << endl;
656  dip->destroyDipPublication(publicationPV);
657  delete messagePV;
658 }
const string subjectLHC
DipPublication * publicationPV
DipData * messageCMS
const string subjectCMS
DipPublication * publicationCMS
const string subjectPV
DipData * messageLHC
DipPublication * publicationLHC
DipData * messagePV
DipFactory * dip
void fakeRcd ( )

Definition at line 256 of file beamSpotDipStandalone.cc.

References Centroid, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, alignCSCRings::e, cppFunctionSkipper::exception, messageLHC, Size, and Tilt.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), polling(), BeamSpotDipServer::problem(), and problem().

256  {
257  try {
258  Centroid[0] = 0;
259  Centroid[1] = 0;
260  Centroid[2] = 0;
261 
262  Size[0] = 0;
263  Size[1] = 0;
264  Size[2] = 0;
265 
266  Tilt[0] = 0;
267  Tilt[1] = 0;
268 
269  messageLHC->insert(Size, 3, "Size");
270  messageLHC->insert(Centroid, 3, "Centroid");
271  messageLHC->insert(Tilt, 2, "Tilt");
272  } catch (exception& e) {
273  cerr << "exception (fakeRcd): " << e.what() << endl;
274  }
275 }
float Centroid[3]
DipData * messageLHC
float Tilt[2]
float Size[3]
string getDateTime ( time_t  t)

Definition at line 102 of file beamSpotDipStandalone.cc.

Referenced by beginServer(), BeamSpotDipServer::dqmBeginRun(), BeamSpotDipServer::dqmEndLuminosityBlock(), BeamSpotDipServer::getDateTime(), getDateTime(), main(), polling(), and readRcd().

102  {
103  char mbstr[100];
104  strftime(mbstr, sizeof(mbstr), "%Y.%m.%d %H:%M:%S %z", std::localtime(&t));
105 
106  return mbstr;
107 }
string getDateTime ( )

Definition at line 109 of file beamSpotDipStandalone.cc.

References getDateTime(), and submitPVValidationJobs::t.

109  {
110  time_t t = time(nullptr);
111 
112  return getDateTime(t);
113 }
string getDateTime(time_t t)
long getFileSize ( string  filename)

Definition at line 127 of file beamSpotDipStandalone.cc.

References edm_modernize_messagelogger::stat.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), polling(), BeamSpotDipServer::tkStatus(), and tkStatus().

127  {
128  struct stat stat_buf;
129  int rc = stat(filename.c_str(), &stat_buf);
130  return (rc == 0 ? stat_buf.st_size : -1);
131 }
tuple filename
Definition: lut2db_cfg.py:20
time_t getLastTime ( string  filename)

Definition at line 134 of file beamSpotDipStandalone.cc.

References edm_modernize_messagelogger::stat.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), and polling().

134  {
135  struct stat stat_buf;
136  int rc = stat(filename.c_str(), &stat_buf);
137  return (rc == 0 ? stat_buf.st_mtime : -1);
138 }
tuple filename
Definition: lut2db_cfg.py:20
int main ( int  narg,
char *  args[] 
)

===============================================================================================================================================================================================


variant2: for each run define phi-averaged A for normalization channel (Dref,16) and then, divide Rijk on it, i.e. get RRijk

eta=27

eta=25

eta=23

eta=22

eta=21

eta=26

eta=24

eta=19

eta=17

eta=25

eta=23

eta=22

eta=21

eta=26

eta=24

eta=20

eta=19

eta=18

eta=27 L1=1

eta=25 L1=1

eta=23 L1=1

eta=22 L1=1

eta=21 L1=1

eta=29 L1=1

eta=26 L1=1

eta=24 L1=1

eta=20 L1=1

eta=19 L1=1

eta=18 L1=1

eta=17 L1=1

eta=28 L7=1

eta=27 L7=1

eta=25 L7=1

eta=23 L7=1

eta=22 L7=1

eta=21 L7=1

eta=26 L7=1

eta=24 L7=1

eta=20 L7=1

eta=19 L7=1

eta=18 L7=1

eta=17 L7=1

eta=27

eta=25

eta=23

eta=22

eta=21

eta=26

eta=24

eta=19

eta=17

eta=25

eta=23

eta=22

eta=21

eta=26

eta=24

eta=20

eta=19

eta=18

eta=27 L1=1

eta=25 L1=1

eta=23 L1=1

eta=22 L1=1

eta=21 L1=1

eta=26 L1=1

eta=24 L1=1

eta=20 L1=1

eta=19 L1=1

eta=18 L1=1

eta=17 L1=1

eta=28 L7=1

eta=27 L7=1

eta=25 L7=1

eta=23 L7=1

eta=22 L7=1

eta=21 L7=1

eta=26 L7=1

eta=24 L7=1

eta=20 L7=1

eta=19 L7=1

eta=18 L7=1

eta=17 L7=1

eta=27

eta=28

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

RBX:

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

RBX:

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

errA with average Amplitudes

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

Summed Amplitude Plots:

RBX:

Prepare maps of good/bad channels:

Prepare maps of good/bad channels:

Prepare maps of good/bad channels:

Prepare maps of good/bad channels:

Definition at line 661 of file beamSpotDipStandalone.cc.

References beginServer(), EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, beamerCreator::create(), dip, endServer(), endTime, getDateTime(), polling(), sourceFile, sourceFile1, startTime, testing, and verbose.

661  {
662  // options
663  verbose = strcmp(args[1], "true");
664  testing = strcmp(args[2], "true");
665 
666  sourceFile = args[3];
667  sourceFile1 = args[4];
668 
669  //
671  endTime = getDateTime();
672 
673  dip = Dip::create("CmsBeamSpotServer");
674  // dip->setDNSNode("cmsdimns1.cern.ch");
675  dip->setDNSNode("cmsdimns2.cern.ch");
676 
677  cerr << "reading from file (NFS)" << endl;
678 
679  //
680  beginServer();
681 
682  cerr << "entering polling loop" << endl;
683 
684  while (true) {
685  polling();
686  sleep(1);
687  }
688 
689  cerr << "[done]" << endl;
690 
691  //
692  endServer();
693 
694  return 0;
695 }
string getDateTime(time_t t)
bool testing
bool verbose
string startTime
void beginServer()
void polling()
string sourceFile1
DipFactory * dip
string sourceFile
void endServer()
string endTime
vector<string> parse ( string  line,
const string &  delimiter 
)
void polling ( )

Definition at line 551 of file beamSpotDipStandalone.cc.

References alive, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, alignCSCRings::e, cppFunctionSkipper::exception, fakeRcd(), getDateTime(), getFileSize(), getLastTime(), lastFitTime, lastModTime, heppy_check::logFile, lsCount, problem(), readRcd(), runnum, sourceFile, tkStatus(), createJobs::tmp, trueRcd(), and verbose.

Referenced by main().

551  {
552  try {
553  ifstream logFile(sourceFile);
554 
555  if (!logFile.good()) {
556  cerr << "Source File: " + sourceFile + " doesn't exist!" << endl;
557  problem();
558  } else {
560 
561  if (lastFitTime == 0)
563 
564  if (getFileSize(sourceFile) == 0) {
565  // source file has zero length
566  if (lastModTime > lastFitTime) {
567  string tmp = tkStatus();
568  cerr << "New run starts. Run number: " << runnum << endl;
569  if (verbose)
570  cerr << "Initial lastModTime = " + getDateTime(lastModTime) << endl;
571  }
573  }
574 
575  if (lastModTime > lastFitTime) {
576  // source file modified
577  if (verbose) {
578  cerr << "time of last fit = " + getDateTime(lastFitTime) << endl;
579  cerr << "time of current fit = " + getDateTime(lastModTime) << endl;
580  }
582 
583  // source file length > 0
584  if (getFileSize(sourceFile) > 0) {
585  if (verbose)
586  cerr << "reading record from " + sourceFile << endl;
587 
588  if (readRcd(logFile)) {
589  if (verbose)
590  cerr << "got new record from file" << endl;
591 
592  trueRcd();
593  alive.reset();
594  alive.flip(7);
595  } else {
596  if (verbose)
597  cerr << "problem with new record" << endl;
598  fakeRcd();
599  }
600 
601  lsCount = 0;
602  }
603  } else {
604  // source file not touched
605  problem();
606  }
607  }
608 
609  logFile.close();
610 
611  } catch (exception& e) {
612  cerr << "io exception (end of lumi): " << e.what() << endl;
613  };
614 }
string getDateTime(time_t t)
int runnum
bool verbose
long getFileSize(string filename)
string tkStatus()
void trueRcd()
bool readRcd(ifstream &file)
long lastFitTime
long lastModTime
int lsCount
time_t getLastTime(string filename)
tuple logFile
Definition: heppy_check.py:40
string sourceFile
void fakeRcd()
std::bitset< 8 > alive
void problem()
tmp
align.sh
Definition: createJobs.py:716
void problem ( )

Definition at line 513 of file beamSpotDipStandalone.cc.

References alive, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, fakeRcd(), lsCount, publishRcd(), secPerLS, timeoutLS, tkStatus(), trueRcd(), and verbose.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), and polling().

513  {
514  if (verbose)
515  cerr << "no update | alive = " << alive << endl;
516 
517  lsCount++;
518 
519  if ((lsCount % (timeoutLS[0] * secPerLS) == 0) && (lsCount % (timeoutLS[1] * secPerLS) != 0)) // first timeout
520  {
521  if (!alive.test(1))
522  alive.flip(1);
523  if (!alive.test(2)) {
524  if (!alive.test(7))
525  fakeRcd();
526  else
527  trueRcd();
528 
529  stringstream warnMsg;
530  warnMsg << "No new data for " << lsCount << " LS";
531  publishRcd("Uncertain", warnMsg.str(), false, false);
532  } else {
533  fakeRcd();
534 
535  stringstream warnMsg;
536  warnMsg << "No new data for " << lsCount << " LS: " << tkStatus();
537  publishRcd("Bad", warnMsg.str(), false, false);
538  }
539  } else if (lsCount % (timeoutLS[1] * secPerLS) == 0) { // second timeout
540  if (!alive.test(2))
541  alive.flip(2);
542  fakeRcd();
543 
544  stringstream warnMsg;
545  warnMsg << "No new data for " << lsCount << " LS: " << tkStatus();
546  publishRcd("Bad", warnMsg.str(), false, false);
547  }
548 }
bool verbose
void publishRcd(string qlty, string err, bool pubCMS, bool fitTime)
string tkStatus()
void trueRcd()
int lsCount
const int timeoutLS[2]
void fakeRcd()
const int secPerLS
std::bitset< 8 > alive
void publishRcd ( string  qlty,
string  err,
bool  pubCMS,
bool  fitTime 
)

Definition at line 278 of file beamSpotDipStandalone.cc.

References alive, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, currentLS, alignCSCRings::e, endTimeStamp, cppFunctionSkipper::exception, intLS, messageCMS, messageLHC, messagePV, publicationCMS, publicationLHC, publicationPV, qualities, and verbose.

Referenced by beginServer(), BeamSpotDipServer::dqmBeginRun(), BeamSpotDipServer::dqmEndLuminosityBlock(), BeamSpotDipServer::problem(), and problem().

278  {
279  try {
280  bool updateCMS = pubCMS && (currentLS % intLS == 0);
281 
282  if (verbose) {
283  cerr << "sending (" << qlty << " | " << err << ")";
284 
285  if (alive.test(7)) {
286  if (updateCMS)
287  cerr << " to CCC and CMS";
288  else if (!alive.test(1) && !alive.test(2))
289  cerr << " to CCC only";
290  }
291 
292  cerr << endl;
293  }
294 
295  DipTimestamp zeit;
296  if (fitTime) {
297  long epoch;
298  epoch = endTimeStamp * 1000; // convert to ms
299  zeit = DipTimestamp(epoch);
300  } else
301  zeit = DipTimestamp();
302 
303  // send
304  if (updateCMS)
305  publicationCMS->send(*messageCMS, zeit);
306 
307  publicationLHC->send(*messageLHC, zeit);
308  publicationPV->send(*messagePV, zeit);
309 
310  // set qualities
311 
312  if (qlty == qualities[0]) { // Uncertain
313  if (updateCMS)
314  publicationCMS->setQualityUncertain(err.c_str());
315 
316  publicationLHC->setQualityUncertain(err.c_str());
317  } else if (qlty == qualities[1]) { // Bad
318  if (updateCMS)
319  publicationCMS->setQualityBad(err.c_str());
320 
321  publicationLHC->setQualityBad(err.c_str());
322  } else if (qlty == "UNINITIALIZED") {
323  if (updateCMS)
324  publicationCMS->setQualityBad("UNINITIALIZED");
325 
326  publicationLHC->setQualityBad("UNINITIALIZED");
327  }
328  } catch (exception& e) {
329  cerr << "exception (publishRcd): " << e.what() << endl;
330  }
331 }
bool verbose
DipPublication * publicationPV
const int intLS
DipData * messageCMS
DipPublication * publicationCMS
const char * qualities[3]
DipData * messageLHC
DipPublication * publicationLHC
time_t endTimeStamp
DipData * messagePV
std::bitset< 8 > alive
int currentLS
bool readRcd ( ifstream &  file)

Definition at line 334 of file beamSpotDipStandalone.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, currentLS, dxdz, dydz, alignCSCRings::e, endTime, endTimeStamp, err_dxdz, err_dydz, err_meanPV, err_rmsPV, err_sigma_z, err_width_x, err_width_y, err_x, err_y, err_z, events, cppFunctionSkipper::exception, getDateTime(), lumiRange, maxPV, meanPV, nPV, parse(), qualities, quality, GlobalPosition_Frontier_DevDB_cff::record, rmsPV, runnum, sigma_z, mathSSE::sqrt(), startTime, startTimeStamp, testing, createJobs::tmp, verbose, width_x, width_y, x, y, and z.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), and polling().

334  {
335  int nthLnInRcd = 0;
336  bool rcdQlty = false;
337 
338  try {
339  string record;
340  while (getline(file, record)) {
341  nthLnInRcd++;
342 
343  vector<string> tmp = parse(record, " ");
344 
345  switch (nthLnInRcd) {
346  case 1:
347  if (record.rfind("Run", 0) != 0) {
348  cerr << "Reading of results text file interrupted. " + getDateTime() << endl;
349  return false;
350  }
351  runnum = stoi(tmp[1]);
352  break;
353  case 2:
354  startTime = tmp[1] + " " + tmp[2] + " " + tmp[3];
355  startTimeStamp = stol(tmp[4]);
356  break;
357  case 3:
358  endTime = tmp[1] + " " + tmp[2] + " " + tmp[3];
359  endTimeStamp = stol(tmp[4]);
360  break;
361  case 4:
362  lumiRange = record.substr(10);
363  if (verbose)
364  cerr << "lumisection range: " + lumiRange << endl;
365  currentLS = stoi(tmp[3]);
366  break;
367  case 5:
368  type = stoi(tmp[1]);
369  if (testing)
370  quality = qualities[0]; // Uncertain
371  else if (type >= 2)
372  quality = qualities[2]; // Good
373  else
374  quality = qualities[1]; // Bad
375  break;
376 
377  case 6:
378  x = stof(tmp[1]);
379  break;
380  case 7:
381  y = stof(tmp[1]);
382  break;
383  case 8:
384  z = stof(tmp[1]);
385  break;
386 
387  case 9:
388  sigma_z = stof(tmp[1]);
389  break;
390  case 10:
391  dxdz = stof(tmp[1]);
392  break;
393  case 11:
394  dydz = stof(tmp[1]);
395  break;
396  case 12:
397  width_x = stof(tmp[1]);
398  break;
399  case 13:
400  width_y = stof(tmp[1]);
401  break;
402 
403  case 14:
404  err_x = sqrt(stof(tmp[1]));
405  break;
406  case 15:
407  err_y = sqrt(stof(tmp[2]));
408  break;
409  case 16:
410  err_z = sqrt(stof(tmp[3]));
411  break;
412  case 17:
413  err_sigma_z = sqrt(stof(tmp[4]));
414  break;
415  case 18:
416  err_dxdz = sqrt(stof(tmp[5]));
417  break;
418  case 19:
419  err_dydz = sqrt(stof(tmp[6]));
420  break;
421  case 20:
422  err_width_x = sqrt(stof(tmp[7]));
424  break;
425  case 21:
426  break;
427  case 22:
428  break;
429  case 23:
430  break;
431  case 24:
432  events = stoi(tmp[1]);
433  break;
434 
435  case 25:
436  meanPV = stof(tmp[1]);
437  break;
438  case 26:
439  err_meanPV = stof(tmp[1]);
440  break;
441  case 27:
442  rmsPV = stof(tmp[1]);
443  break;
444  case 28:
445  err_rmsPV = stof(tmp[1]);
446  break;
447  case 29:
448  maxPV = stoi(tmp[1]);
449  break;
450  case 30:
451  nPV = stoi(tmp[1]);
452  rcdQlty = true;
453  break;
454 
455  default:
456  break;
457  }
458  }
459 
460  file.close();
461  } catch (exception& e) {
462  cerr << "io exception (readRcd): " << e.what() << endl;
463  }
464 
465  return rcdQlty;
466 }
float dydz
float width_x
float err_dydz
vector< string > parse(string line, const string &delimiter)
string getDateTime(time_t t)
bool testing
int runnum
float dxdz
float width_y
bool verbose
string quality
float rmsPV
float float float z
string startTime
T sqrt(T t)
Definition: SSEVec.h:19
float err_x
time_t startTimeStamp
float err_rmsPV
float err_z
const char * qualities[3]
time_t endTimeStamp
float err_width_x
float err_dxdz
float sigma_z
float x
float err_meanPV
string lumiRange
float err_y
float err_sigma_z
tmp
align.sh
Definition: createJobs.py:716
int currentLS
float err_width_y
int events
string endTime
float meanPV
string tkStatus ( )

Definition at line 469 of file beamSpotDipStandalone.cc.

References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, alignCSCRings::e, cppFunctionSkipper::exception, spr::find(), getFileSize(), dqmPostProcessing_online::logfile, parse(), GlobalPosition_Frontier_DevDB_cff::record, runnum, sourceFile1, and createJobs::tmp.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), polling(), BeamSpotDipServer::problem(), and problem().

469  {
470  string outstr;
471 
472  ifstream logfile(sourceFile1);
473 
474  if (!logfile.good() || getFileSize(sourceFile1) == 0) {
475  // file does not exist or has zero size
476  outstr = "No CMS Tracker status available. No DAQ/DQM.";
477  } else {
478  int nthLnInRcd = 0;
479  string record;
480 
481  try {
482  string record;
483 
484  while (getline(logfile, record)) {
485  nthLnInRcd++;
486  vector<string> tmp = parse(record, " ");
487 
488  switch (nthLnInRcd) {
489  case 7:
490  if (tmp[1].find("Yes") == string::npos)
491  outstr = "CMS Tracker OFF.";
492  else
493  outstr = "CMS not taking data or no beam.";
494  break;
495  case 8:
496  runnum = stoi(tmp[1]);
497  break;
498  default:
499  break;
500  }
501  }
502  } catch (exception& e) {
503  cerr << "exception (tkStatus): " << e.what() << endl;
504  }
505  }
506 
507  logfile.close();
508 
509  return outstr;
510 }
vector< string > parse(string line, const string &delimiter)
int runnum
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
long getFileSize(string filename)
string sourceFile1
tmp
align.sh
Definition: createJobs.py:716
void trueRcd ( )

Definition at line 190 of file beamSpotDipStandalone.cc.

References Centroid, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, cm2mm, cm2um, CMS2LHCRF_POS(), dxdz, dydz, alignCSCRings::e, endTime, endTimeStamp, err_dxdz, err_dydz, err_meanPV, err_rmsPV, err_sigma_z, err_width_x, err_width_y, err_x, err_y, err_z, events, cppFunctionSkipper::exception, lumiRange, maxPV, meanPV, messageCMS, messageLHC, messagePV, nPV, publishStatErrors, quality, rad2urad, rmsPV, runnum, sigma_z, Size, startTime, startTimeStamp, Tilt, width_x, width_y, x, y, and z.

Referenced by beginServer(), BeamSpotDipServer::dqmBeginRun(), BeamSpotDipServer::dqmEndLuminosityBlock(), polling(), BeamSpotDipServer::problem(), and problem().

190  {
191  try {
192  // CMS to LHC RF
193  CMS2LHCRF_POS(x, y, z);
194 
195  Tilt[0] = dxdz * rad2urad;
196  Tilt[1] = (dydz != 0 ? (dydz * -1 * rad2urad) : 0);
197 
198  Size[0] = width_x * cm2um;
199  Size[1] = width_y * cm2um;
200  Size[2] = sigma_z * cm2mm;
201 
202  // CMS
203  messageCMS->insert(runnum, "runnum");
204  messageCMS->insert(startTime, "startTime");
205  messageCMS->insert(endTime, "endTime");
206  messageCMS->insert(startTimeStamp, "startTimeStamp");
207  messageCMS->insert(endTimeStamp, "endTimeStamp");
208  messageCMS->insert(lumiRange, "lumiRange");
209  messageCMS->insert(quality, "quality");
210  messageCMS->insert(type, "type"); // Unknown=-1, Fake=0, Tracker=2(Good)
211  messageCMS->insert(x, "x");
212  messageCMS->insert(y, "y");
213  messageCMS->insert(z, "z");
214  messageCMS->insert(dxdz, "dxdz");
215  messageCMS->insert(dydz, "dydz");
216  messageCMS->insert(width_x, "width_x");
217  messageCMS->insert(width_y, "width_y");
218  messageCMS->insert(sigma_z, "sigma_z");
219 
220  if (publishStatErrors) {
221  messageCMS->insert(err_x, "err_x");
222  messageCMS->insert(err_y, "err_y");
223  messageCMS->insert(err_z, "err_z");
224  messageCMS->insert(err_dxdz, "err_dxdz");
225  messageCMS->insert(err_dydz, "err_dydz");
226  messageCMS->insert(err_width_x, "err_width_x");
227  messageCMS->insert(err_width_y, "err_width_y");
228  messageCMS->insert(err_sigma_z, "err_sigma_z");
229  }
230 
231  // LHC
232  messageLHC->insert(Size, 3, "Size");
233  messageLHC->insert(Centroid, 3, "Centroid");
234  messageLHC->insert(Tilt, 2, "Tilt");
235 
236  // PV
237  messagePV->insert(runnum, "runnum");
238  messagePV->insert(startTime, "startTime");
239  messagePV->insert(endTime, "endTime");
240  messagePV->insert(startTimeStamp, "startTimeStamp");
241  messagePV->insert(endTimeStamp, "endTimeStamp");
242  messagePV->insert(lumiRange, "lumiRange");
243  messagePV->insert(events, "events");
244  messagePV->insert(meanPV, "meanPV");
245  messagePV->insert(err_meanPV, "err_meanPV");
246  messagePV->insert(rmsPV, "rmsPV");
247  messagePV->insert(err_rmsPV, "err_rmsPV");
248  messagePV->insert(maxPV, "maxPV");
249  messagePV->insert(nPV, "nPV");
250  } catch (exception& e) {
251  cerr << "exception (trueRcd): " << e.what() << endl;
252  }
253 }
const int rad2urad
float dydz
float width_x
float err_dydz
int runnum
float dxdz
float width_y
const int cm2mm
string quality
float rmsPV
float float float z
DipData * messageCMS
string startTime
const bool publishStatErrors
float err_x
time_t startTimeStamp
float err_rmsPV
float err_z
float Centroid[3]
DipData * messageLHC
float Tilt[2]
time_t endTimeStamp
float err_width_x
DipData * messagePV
float err_dxdz
float sigma_z
const int cm2um
float Size[3]
float x
float err_meanPV
string lumiRange
float err_y
float err_sigma_z
float err_width_y
void CMS2LHCRF_POS(float x, float y, float z)
int events
string endTime
float meanPV

Variable Documentation

std::bitset<8> alive
float Centroid[3]
const int cm2mm = 10
const int cm2um = 10000
int currentLS = 0
DipFactory* dip
float dxdz = 0
float dydz = 0
string endTime
time_t endTimeStamp = 0
float err_dxdz = 0
float err_dydz = 0
float err_meanPV = 0
float err_rmsPV = 0
float err_sigma_z = 0
float err_width_x = 0
float err_width_y = 0
float err_x = 0
float err_y = 0
float err_z = 0
int events = 0
const int intLS = 1

Definition at line 28 of file beamSpotDipStandalone.cc.

Referenced by BeamSpotDipServer::publishRcd(), and publishRcd().

long lastFitTime = 0

Definition at line 31 of file beamSpotDipStandalone.cc.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), and polling().

long lastModTime = 0

Definition at line 32 of file beamSpotDipStandalone.cc.

Referenced by BeamSpotDipServer::dqmEndLuminosityBlock(), and polling().

int lsCount = 0
string lumiRange = "0 - 0"
int maxPV = 0
float meanPV = 0
DipData* messageCMS
DipData* messageLHC
DipData* messagePV
int nPV = 0
DipPublication* publicationCMS
DipPublication* publicationLHC
DipPublication* publicationPV
const bool publishStatErrors = true

Definition at line 22 of file beamSpotDipStandalone.cc.

Referenced by BeamSpotDipServer::trueRcd(), and trueRcd().

const char* qualities[3] = {"Uncertain", "Bad", "Good"}
HitContainer const *__restrict__ TkSoA const *__restrict__ Quality const *__restrict__ quality = "Uncertain"

Definition at line 53 of file beamSpotDipStandalone.cc.

Referenced by CSCALCTHeader::ALCTDigis(), SiStripHitEffFromCalibTree::algoAnalyze(), ME0SegmentsValidation::analyze(), CSCDigiToPattern::analyze(), L1TStage2EMTF::analyze(), EwkMuDQM::analyze(), TrackTypeMonitor::analyze(), SiPixelPhase1MonitorTrackSoA::analyze(), PatTrackAnalyzer::analyze(), StandaloneTrackMonitor::analyze(), TrackCount::analyze(), StudyCaloResponse::analyze(), MuonTrackValidator::analyze(), VertexAssociatorByTracks::associateRecoToSim(), TrackAssociatorByHitsImpl::associateRecoToSim(), TrackAssociatorByPositionImpl::associateRecoToSim(), QuickTrackAssociatorByHitsImpl::associateRecoToSim(), QuickTrackAssociatorByHitsImpl::associateRecoToSimImplementation(), VertexAssociatorByTracks::associateSimToReco(), TrackAssociatorByHitsImpl::associateSimToReco(), TrackAssociatorByPositionImpl::associateSimToReco(), QuickTrackAssociatorByHitsImpl::associateSimToReco(), QuickTrackAssociatorByHitsImpl::associateSimToRecoImplementation(), sistrip::badStripFromFedErr(), sistrip::badStripFromFedErrLegacyDQMFile(), PatTrackAnalyzer::beginJob(), beginServer(), CSCStubMatcher::bestAlctInChamber(), CSCStubMatcher::bestClctInChamber(), MuonCSCSeedFromRecHits::bestEndcapHit(), CSCStubMatcher::bestLctInChamber(), L1TDTTFClient::buildHighQualityPlot(), L1TMuonBarrelKalmanStubProcessor::buildStub(), L1TMuonBarrelKalmanStubProcessor::buildStubNoEta(), CSCTFPtLUT::calcPt(), OMTFSorter< GoldenPatternType >::candidates(), CSCCathodeLCTProcessor::constructCLCT(), PFAlgo::conversionAlgo(), L1TMuonBarrelKalmanAlgo::convertToBMTF(), MuonPathAssociator::correlateMPaths(), L1MuGMTMerger::createDTCSCCand(), PFCand_AssoMapAlgos::createMappings(), PF_PU_AssoMapAlgos::createMappings(), L1MuGMTMerger::createRPCCand(), JetTracksAssociationDR::createTrackRefs(), CSCALCTPreTriggerDigi::CSCALCTPreTriggerDigi(), PF_PU_AssoMapAlgos::DefineQuality(), BeamSpotDipServer::dqmBeginRun(), BeamSpotDipServer::dqmEndLuminosityBlock(), SiStripMonitorPedestals::fillCondDBMEs(), MuonIdProducer::fillTrackerKink(), CSCUpgradeCathodeLCTProcessor::findLCTs(), CSCCathodeLCTProcessor::findLCTs(), CastorDigiMonitor::getDbData(), SingleMultiplicity< T >::getEvent(), OMTFProcessor< GoldenPatternType >::getFinalcandidates(), PtAssignmentEngineAux::getGMTQuality(), L1MuBMExtrapolationUnit::getQuality(), L1MuDTExtrapolationUnit::getQuality(), DTTriggerEfficiencyTask::hasRPCTriggers(), CSCMake2DRecHit::hitFromStripAndWire(), HLTMuonL1TFilter::hltFilter(), HLTMuonL1RegionalFilter::hltFilter(), HLTMuonL1TRegionalFilter::hltFilter(), HLTMuonL1Filter::hltFilter(), RPCPacData::init(), JetIDSelectionFunctor::initialize(), RPCPacData::insertQualityRecord(), PFMuonAlgo::isGlobalLooseMuon(), PFMuonAlgo::isGlobalTightMuon(), PFMuonAlgo::isTrackerLooseMuon(), noPuUtils::isVertexAssociated(), noPuUtils::isVertexAssociated_fast(), JetIDSelectionFunctor::JetIDSelectionFunctor(), CSCSectorReceiverLUT::localPhi(), QualityCutsAnalyzer::LoopOverJetTracksAssociation(), CSCCathodeLCTProcessor::markBusyKeys(), GlobalCosmicMuonTrajectoryBuilder::match(), reco::tau::qcuts::minPackedCandVertexWeight(), PFTauMiniAODPrimaryVertexProducer::nonTauTracksInPVFromPackedCands(), btag::LeptonSelector::operator()(), operator<<(), PromptTrackCountingComputer::orderedSignificances(), l1t::Stage1Layer2TauAlgorithmImpPP::processEvent(), l1t::Stage1Layer2TauAlgorithmImpHW::processEvent(), SiPixelROCsStatusAndMappingWrapperESProducer::produce(), LightPFTrackProducer::produce(), SiStripClusterizerConditionsESProducer::produce(), PFConversionProducer::produce(), l1tpf::PFTrackProducerFromL1Tracks::produce(), pat::L1MuonMatcher::produce(), PFTrackProducer::produce(), CSCTFUnpacker::produce(), SiStripBadModuleConfigurableFakeESSource::produce(), SeedProducerFromSoA::produce(), pat::PATPackedCandidateProducer::produce(), PuppiProducer::produce(), HLTL1TMuonSelector::produce(), HLTL1MuonNoL2Selector::produce(), HLTL1MuonSelector::produce(), PixelTrackProducerFromSoA::produce(), PFPileUp::produce(), HLTScoutingPFProducer::produce(), PF_PU_FirstVertexTracks::produce(), PFCand_NoPU_WithAM::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), SiStripQualityESProducer::produce(), TriggerMatcherToHLTDebug::produce(), GoodSeedProducer::produce(), L1EGCrystalClusterEmulatorProducer::produce(), ecaldqm::TimingClient::producePlots(), ecaldqm::OccupancyClient::producePlots(), ecaldqm::MLClient::producePlots(), QcdUeDQM::QcdUeDQM(), L1MuBMAssignmentUnit::QuaAU(), L1MuDTAssignmentUnit::QuaAU(), L1MuBMAssignmentUnit::Quality(), btagbtvdeep::quality_from_pfcand(), BeamSpotDipServer::readRcd(), readRcd(), CocoaAnalyzer::readXMLFile(), RecoTrackSelectorBase::RecoTrackSelectorBase(), L1MuonSeededTrackingRegionsProducer::regions(), RPCMuon::RPCMuon(), RPCPacData::RPCPacData(), CSCTFMuonSorter::run(), RPCPac::runEnergeticPatternsGroups(), RPCPac::runTrackPatternsGroup(), MuonPathAnalyticAnalyzer::segment_fitter(), ME0TriggerPseudoBuilder::segmentConversion(), MuonCSCSeedFromRecHits::segmentQuality(), L2TauNNProducer::selectGoodTracksAndVertices(), RPCPacMuon::setAll(), CSCALCTPreTriggerDigi::setQuality(), RPCMuon::setQuality(), CSCALCTDigi::setQuality(), CSCCLCTDigi::setQuality(), pat::Muon::setSimMatchQuality(), pat::PackedCandidate::setTrackProperties(), L1DummyProducer::SimpleDigi(), PF_PU_AssoMapAlgos::SortAssociationMap(), PFCand_AssoMapAlgos::SortPFCandAssociationMap(), RPCPatternsParser::startElement(), L1MuGMTLFSortRankPtQLUT::TheLookupFunction(), RPCTBMuon::FSBOut::toBits(), CSCTFPtLUT::trackQuality(), BeamSpotDipServer::trueRcd(), and trueRcd().

const int rad2urad = 1000000

Definition at line 25 of file beamSpotDipStandalone.cc.

Referenced by BeamSpotDipServer::trueRcd(), and trueRcd().

float rmsPV = 0
int runnum
const int secPerLS = 23

Definition at line 24 of file beamSpotDipStandalone.cc.

Referenced by problem().

float sigma_z = 0
float Size[3]
string sourceFile = "/nfshome0/dqmpro/BeamMonitorDQM/BeamFitResultsForDIP.txt"
string sourceFile1 = "/nfshome0/dqmpro/BeamMonitorDQM/BeamFitResultsOld_TkStatus.txt"
string startTime
time_t startTimeStamp = 0
const string subjectCMS = "dip/CMS/Tracker/BeamSpot"
const string subjectLHC = "dip/CMS/LHC/LuminousRegion"
const string subjectPV = "dip/CMS/Tracker/PrimaryVertices"
bool testing = false
float Tilt[2]
const int timeoutLS[2] = {1, 2}
int type = -1

Definition at line 54 of file beamSpotDipStandalone.cc.

bool verbose = false

Definition at line 87 of file beamSpotDipStandalone.cc.

Referenced by gpuVertexFinder::__attribute__(), L1TDEMON::analyze(), L1TdeGCT::analyze(), BeamSpotDipServer::analyze(), FFTJetCorrectionProducer::applyCorrections(), BeamSpotDipServer::BeamSpotDipServer(), L1TdeGCT::bookHistograms(), L1TDEMON::bookHistograms(), reco::FlavorHistoryEvent::cache(), HltDiff::compare(), AngleCalculation::configure(), BestTrackSelection::configure(), PrimitiveSelection::configure(), SingleHitTrack::configure(), PrimitiveConversion::configure(), PrimitiveMatching::configure(), PatternRecognition::configure(), PtAssignment::configure(), PtAssignmentEngineDxy::configure(), PtAssignmentEngine::configure(), SectorProcessor::configure(), heppy::Davismt2::Davismt2(), BeamSpotDipServer::dqmEndLuminosityBlock(), DQMService::DQMService(), OptOSensor2D::fastTraversesLightRay(), PFJetFilter::filter(), GenHFHadronMatcher::findInMothers(), MultiVertexFitter::fit(), FlavorHistoryFilter::FlavorHistoryFilter(), SideBandSubtract::getYield(), JetMETDQMDCSFilter::JetMETDQMDCSFilter(), L1Analysis::L1AnalysisCaloTP::L1AnalysisCaloTP(), L1Analysis::L1AnalysisGCT::L1AnalysisGCT(), L1DummyProducer::L1DummyProducer(), L1EmulBias::L1EmulBias(), L1TdeGCT::L1TdeGCT(), L1TDEMON::L1TDEMON(), MultiVertexFitter::lostVertexClaimer(), main(), CMSG4CheckOverlap::makeReportForOverlaps(), GEMRecHitMatcher::matchRecHitsToSimTrack(), heppy::Davismt2::mt2_bisect(), heppy::Davismt2::mt2_massless(), TtDecayChannelSelector::operator()(), parseFFTJetCorrector(), PFJetFilter::PFJetFilter(), polling(), presort(), presort_egamma(), SideBandSubtract::printResults(), BeamSpotDipServer::problem(), problem(), LHECOMWeightProducer::produce(), L1EmulBias::produce(), L1DummyProducer::produce(), FFTJetLookupTableESProducer< CT >::produce(), FFTJetCorrectionESProducer< CT >::produce(), BeamSpotDipServer::publishRcd(), publishRcd(), BeamSpotDipServer::readRcd(), readRcd(), L1TTwinMuxAlgorithm::run(), PFPileUpAlgo::setVerbose(), TH1Store::setVerbose(), QCriterion::setVerbose(), PFECALSuperClusterAlgo::setVerbosityLevel(), sort_by_row_in_groups(), super_sort_matrix_rows(), MultiVertexFitter::updateSeeds(), MultiVertexFitter::updateWeights(), MultiVertexReconstructor::vertices(), and MultiVertexFitter::vertices().

float width_x = 0
float width_y = 0
float x = 0

Definition at line 55 of file beamSpotDipStandalone.cc.

Referenced by gpuPixelRecHits::__attribute__(), gpuPixelDoublets::__attribute__(), HcalOnlineHarvesting::_dqmEndLuminosityBlock(), BPHFittedBasicSelect::accept(), algorithm(), RPCDigiValid::analyze(), tadqm::TrackAnalyzer::analyze(), TreeProducerCalibSimul::analyze(), analyzer::SiPixelLorentzAngle::analyze(), PFAnalysis::analyze(), dqm::DQMFileSaverOnline::appendSnapshot(), SignedTransverseImpactParameter::apply(), edm::HepMCProduct::applyVtxGen(), approx_atan2f_P< 11 >(), approx_atan2f_P< 13 >(), approx_atan2f_P< 15 >(), approx_atan2f_P< 3 >(), approx_atan2f_P< 5 >(), approx_atan2f_P< 7 >(), approx_atan2f_P< 9 >(), approx_atan2i_P< 11 >(), approx_atan2i_P< 13 >(), approx_atan2i_P< 15 >(), approx_atan2i_P< 3 >(), approx_atan2i_P< 5 >(), approx_atan2i_P< 7 >(), approx_atan2i_P< 9 >(), approx_atan2s_P< 3 >(), approx_atan2s_P< 5 >(), approx_atan2s_P< 7 >(), approx_atan2s_P< 9 >(), approx_expf(), ticl::assignPCAtoTracksters(), PFAnalysis::associateClusterToSimCluster(), edm::ThinnedAssociationsHelper::associationToBranches(), fastmath::atan2r(), ESDaqInfoTask::beginJob(), ESDaqInfoTask::beginLuminosityBlock(), ME0GeometryBuilder::boundPlane(), GEMGeometryBuilder::boundPlane(), gen::HijingHadronizer::build_hijing(), gen::HijingHadronizer::build_hijing_vertex(), gen::HydjetHadronizer::build_hyjet(), gen::Hydjet2Hadronizer::build_hyjet2_vertex(), gen::HydjetHadronizer::build_hyjet_vertex(), RPCGeometryBuilder::buildGeometry(), edm::TypeWithDict::byName(), GlobalHaloAlgo::Calculate(), ESIntegrityTask::calculateDIFraction(), HGCalCLUEAlgoT< TILE >::calculatePosition(), HGCalImagingAlgo::calculatePosition(), HGCalImagingAlgo::calculatePositionWithFraction(), ThirdHitPrediction::calculateRangesForward(), hitfit::Base_Constrainer::call_constraint_fcn(), reco::GhostTrackPrediction::cartesianError(), cast_to_L1TMuonGlobalParams(), cast_to_L1TMuonGlobalParams_PUBLIC(), edm::service::MessageServicePSetValidation::catBoolRestriction(), edm::service::MessageServicePSetValidation::catInts(), edm::service::MessageServicePSetValidation::catNone(), EcalCrystalMatrixProbality< T >::Central(), SiPixelPI::checkAnswerOK(), OuterDetCompatibility::checkPhi(), RPCSeedPattern::checkStraightwithThreerecHits(), GlobalTrackingRegion::checkTracks(), CosmicTrackingRegion::checkTracks(), RectangularEtaPhiTrackingRegion::checkTracks(), clean(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), edm::EventSelector::combine(), tauImpactParameter::TrackHelixVertexFitter::computeLorentzVectorPar(), RPCSeedPattern::computePtwithThreerecHits(), RPCSeedPattern::computePtWithThreerecHits(), tauImpactParameter::TrackHelixVertexFitter::computeTrackPar(), barrelUtil::computeWindowSize(), mkfit::conformalFitMPlex(), HcalBarrelAlgo::constructInsideDetectors(), HcalBarrelAlgo::constructInsideLayers(), ConvertToHist(), npstat::convertToHistoAxis(), align::createPoints(), tauImpactParameter::ParticleBuilder::createTrackParticle(), DDCompareDDRotMat(), DDcreateRotationMatrix(), DDrot(), DDrotReflect(), cscdqm::Detector::Detector(), EcalCrystalMatrixProbality< T >::Diagonal(), CSCValidation::doADCTiming(), CSCValidation::doAFEBTiming(), CSCValidation::doCompTiming(), IntegralOverPhiFunction::DoEvalPar(), IntegrandThetaFunction::DoEvalPar(), CSCValidation::doGasGain(), MuonRecoTest::dqmEndJob(), dqmservices::DQMMonitoringService::DQMMonitoringService(), fwlite::Scanner< Collection >::draw2D(), DrawEB(), drawTable(), HcalObjRepresent::drawTable(), SiPixelPI::dress_occup_plot(), PixelROCMapHelper::dress_plot(), ChargeDrifterFP420::drift(), hcaldqm::ContainerXXX< STDTYPE >::dump(), funct::HistoPdf::dump(), EcalAlignmentXMLTranslator::dumpXML(), edm::NavigateEventsLooper::duringLoop(), editBoolParameter(), pixelCPEforGPU::errorFromDB(), hf_egamma::eSeLCorrected(), Chi2Strip1DEstimator::estimate(), kinem::eta(), metsig::SignAlgoResolutions::eval(), trklet::TrackletCalculatorDisplaced::exactprojdisk(), DDHCalTBZposAlgo::execute(), DDPixFwdBlades::execute(), edm::EventSelector::expandDecisionList(), hcaldqm::ContainerSingle1D::extendAxisRange(), hcaldqm::ContainerSingle2D::extendAxisRange(), hcaldqm::Container1D::extendAxisRange(), LMFDat::fetch(), CSCValHists::fill2DHistByEvent(), ecaldqm::MESet::fill_(), HcalObjRepresent::fillOneGain(), tmtt::ChiSquaredFitBase::fit(), emtf::Huber::fit(), fnc_dscb(), frsqrt(), Vx3DHLTAnalyzer::Gauss3DFunc(), FullModelReactionDynamics::GenerateXandPt(), HepMCValidationHelper::genMet(), funct::Master< F >::get(), deep_tau::DeepTauBase::Output::get_value(), TMTQ::getAmpl(), TAPD::getAPD(), TAPD::getAPDoAPD0(), TAPD::getAPDoAPD1(), TAPD::getAPDoPN(), TAPD::getAPDoPN0(), TAPD::getAPDoPN1(), ecaldqm::MESetProjection::getBinContent(), L1TOccupancyClient::getBinCoordinateOnAxisWithValue(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetProjection::getBinError(), egamma::conv::getConversionInfo(), TMTQ::getFit(), cond::payloadInspector::Histogram2D< PayloadType, IOV_M >::getFromPayload(), TMTQ::getFw20(), TMTQ::getFw80(), TMTQ::getFwhm(), getHcalSingleObject(), hcaldqm::quantity::getLabels_TTSubdetPM(), reco::TaggingVariableList::getList(), heppy::BTagSF::getMistag(), TMTQ::getPeak(), TMTQ::getPed(), TMTQ::getPedsig(), TPN::getPN(), TPN::getPNoPN(), TPN::getPNoPN0(), TPN::getPNoPN1(), GetRandom(), heppy::BTagSF::getSFb(), heppy::BTagSF::getSFc(), heppy::BTagSF::getSFl(), TMTQ::getSigma(), TMTQ::getSliding(), TAPD::getTime(), TMTQ::getTrise(), hcaldqm::quantity::getValue_ieta(), hcaldqm::quantity::getValue_TTSubdetPM(), GenXSecAnalyzer::globalEndLuminosityBlock(), DDHCalEndcapModuleAlgo::HcalEndcapPar::HcalEndcapPar(), HCalEndcapModuleAlgo::HcalEndcapPar::HcalEndcapPar(), gen::Cascade2Hadronizer::imposeProperTime(), gen::Pythia6Hadronizer::imposeProperTime(), InduceChargeFP420::induce(), edm::ThinnedAssociationsHelper::initAssociationsFromSecondary(), HCALResponse::interMU(), npstat::ArrayND< Numeric, StackLen, StackDim >::interpolate1(), interpolateLinear(), npstat::ArrayND< Numeric, StackLen, StackDim >::interpolateLoop(), npstat::LinInterpolatedTableND< Numeric, Axis >::invert1DResponse(), npstat::LinInterpolatedTableND< Numeric, Axis >::invertRatioResponse(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), linear(), FWPFMaths::lineCircleIntersect(), fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D(), hcaldqm::ContainerXXX< STDTYPE >::load(), edm::ThinnedAssociationsHelper::lower_bound(), main(), HGCalCLUEAlgoT< TILE >::makeClusters(), mkfit::Pool< mkfit::MkFitter >::makeOrGet(), cms::makeRotReflect(), ticl::PatternRecognitionbyCLUE3D< TILES >::makeTracksters(), SiStripGainFromCalibTree::merge(), RPCSeedPattern::MiddlePointsAlgorithm(), muonisolation::CaloExtractor::MuonAtCaloPosition(), MuonResidualsFitter_logGaussPowerTails(), edm::service::MessageServicePSetValidation::noneExcept(), fit::HistoChiSquare< T >::numberOfBins(), fit::HistoPoissonLikelihoodRatio< T >::numberOfBins(), TransientVertex::operator reco::VertexCompositePtrCandidate(), fit::HistoPoissonLikelihoodRatio< T >::operator()(), fit::HistoChiSquare< T >::operator()(), edm::operator<(), hitfit::Lepjets_Event_Lep::operator<(), fastsim::MultipleScattering::orthogonal(), barrelUtil::overlap(), tkDetUtil::overlapInPhi(), p1evlf(), edm::ThinnedAssociationsHelper::parentBegin(), edm::ThinnedAssociationsHelper::parentEnd(), reco::ParticleState::ParticleState(), kinem::phi(), DTLocalTriggerBaseTest::phiRange(), DTGeometryBuilderFromDDD::plane(), DTGeometryParsFromDD::plane(), PlotDebugFPIX_XYMap(), polevlf(), reco::BeamSpot::position(), reco::GhostTrackPrediction::positionError(), L1TOccupancyClient::printDeadChannels(), printRot(), tfwliteselectortest::ThingsWorker::process(), tfwliteselectortest::ThingsTSelector::process(), edm::CloseByParticleGunProducer::produce(), NtpProducer< C >::produce(), FakeTrackProducer< T >::produce(), RechitClusterProducerT< Trait >::produce(), CaloGeometryDBEP< T, U >::produceAligned(), tauImpactParameter::TrackTools::propagateToYPosition(), tauImpactParameter::TrackTools::propagateToZPosition(), ptomaine(), pulse(), pulse_yz(), l1t::LUT::read(), mkfit::Event::read_in(), l1t::PrescalesVetosFractHelper::readAndWriteFromEventSetup(), l1t::PrescalesVetosHelper::readAndWriteFromEventSetup(), l1t::GlobalParamsHelper::readAndWriteFromEventSetup(), l1t::EndCapParamsHelper::readAndWriteFromEventSetup(), cscdqm::Summary::ReadErrorChambers(), cscdqm::Summary::ReadReportingChambers(), cscdqm::Summary::ReadReportingChambersRef(), popcon::EcalIntercalibHandler::readTXT(), hcaltb::HcalTBTDCUnpacker::reconstructWC(), magneticfield::volumeHandle::referencePlane(), EcalCrystalMatrixProbality< T >::ReftRight(), HepMCValidationHelper::removeIsolatedLeptons(), ParabolaFit::result(), funct::RootHistoPdf::RootHistoPdf(), gen::PyquenHadronizer::rotateEvtPlane(), DDCoreToDDXMLOutput::rotation(), ContentsXRange::runTest(), scalebylumi(), tmtt::ChiSquaredFit4::seed(), mkfit::MkFinder::selectHitIndices(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetProjection::setBinError(), L1TOccupancyClientHistogramService::setMaskedBins(), tmtt::StubFEWindows::setZero(), pat::MET::shiftedP4(), pat::MET::shiftedP4_74x(), edm::ThinnedAssociationsHelper::shouldKeepAssociation(), sicif(), QGLikelihoodCalculator::smearingFunction(), DDCoreToDDXMLOutput::solid(), hitfit::Top_Decaykin::solve_nu(), sqr(), square(), trackerDTC::Stub::Stub(), reco::IPTagInfo< Container, Base >::taggingVariables(), mkfit::ConfigJson::test_Direct(), kinem::theta(), tmtt::TP::TP(), trackerStablePhiSort(), trklet::TrackletCalculator::TrackletCalculator(), trajectoryToResiduals(), nanoaod::MergeableCounterTable::tryMerge(), two_joined_lines(), unsafe_acos(), unsafe_acos07(), unsafe_acos71(), unsafe_asin(), unsafe_asin07(), unsafe_asin71(), unsafe_atan2f(), unsafe_atan2i(), unsafe_atan2s(), unsafe_expf(), unsafe_logf(), edm::ThinnedAssociationsHelper::updateFromSecondaryInput(), edm::service::CondorStatusService::updateImpl(), EcalCrystalMatrixProbality< T >::UpDown(), TauJetCorrector::ParametrizationTauJet::value(), JetPartonNamespace::ParametrizationJetParton::value(), sistripvvi::VVIObj::VVIObj(), edm::Lumi3DReWeighting::weight3D_init(), reweight::LumiReWeighting::weight3D_init(), cscdqm::Summary::Write(), cscdqm::Summary::WriteChamberState(), cscdqm::Summary::WriteMap(), xtalFromEtaPhi(), TangentApproachInRPhi::zCoord(), ClosestApproachInRPhi::zCoord(), and mkfit::Pool< mkfit::MkFitter >::~Pool().

float y = 0

Definition at line 56 of file beamSpotDipStandalone.cc.

float z = 0

Definition at line 57 of file beamSpotDipStandalone.cc.