CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/EcalDigi/interface/EcalMatacqDigi.h"
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <memory>
#include <stdio.h>
#include <fstream>
#include <iomanip>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>

Go to the source code of this file.

Functions

static std::string now ()
 

Function Documentation

static std::string now ( )
static

Definition at line 50 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().

50  {
51  struct timeval t;
52  gettimeofday(&t, 0);
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 }