CMS 3D CMS Logo

Functions
MatacqProducer.cc File Reference
#include <csignal>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <glob.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fmt/printf.h>
#include <boost/algorithm/string.hpp>
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DataFormats/EcalDigi/interface/EcalMatacqDigi.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "EventFilter/EcalRawToDigi/interface/MatacqProducer.h"
#include "EventFilter/EcalRawToDigi/src/Majority.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"

Go to the source code of this file.

Functions

static std::string now ()
 

Function Documentation

◆ now()

static std::string now ( )
static

Definition at line 48 of file MatacqProducer.cc.

48  {
49  struct timeval t;
50  gettimeofday(&t, nullptr);
51 
52  char buf[256];
53  strftime(buf, sizeof(buf), "%F %R %S s", localtime(&t.tv_sec));
54  buf[sizeof(buf) - 1] = 0;
55 
56  stringstream buf2;
57  buf2 << buf << " " << ((t.tv_usec + 500) / 1000) << " ms";
58 
59  return buf2.str();
60 }

References visDQMUpload::buf, and submitPVValidationJobs::t.

Referenced by MatacqProducer::addMatacqData(), MatacqProducer::getMatacqEvent(), MatacqProducer::getMatacqFile(), MatacqProducer::PosEstimator::init(), MatacqProducer::loadOrbitOffset(), MatacqProducer::MatacqProducer(), MatacqProducer::mread(), MatacqProducer::mseek(), MatacqProducer::newRun(), MatacqProducer::PosEstimator::pos(), MatacqProducer::produce(), and MatacqProducer::~MatacqProducer().

visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644