CMS 3D CMS Logo

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

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

References visDQMUpload::buf, and OrderedSet::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().

OrderedSet.t
t
Definition: OrderedSet.py:90
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154