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

static std::string now ( )
static

Definition at line 51 of file MatacqProducer.cc.

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().

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