CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions
MatacqProducer.cc File Reference
#include <cstdio>
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "EventFilter/EcalRawToDigi/interface/MatacqRawEvent.h"
#include "EventFilter/EcalRawToDigi/src/MatacqDataFormatter.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include <string>
#include <cinttypes>
#include <fstream>
#include <memory>
#include <sys/time.h>
#include <csignal>
#include <iomanip>
#include <iostream>
#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/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"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

struct  MatacqProducer::MatacqEventId
 
class  MatacqProducer
 
struct  NullOut
 
class  MatacqProducer::PosEstimator
 
struct  MatacqProducer::stats_t
 

Macros

#define _FILE_OFFSET_BITS   64
 
#define _LARGEFILE64_SOURCE
 

Functions

static std::string now ()
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< MatacqProducer > > 
s_filler__LINE__ ("MatacqProducer")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< MatacqProducer > > 
s_maker__LINE__ ("MatacqProducer")
 

Macro Definition Documentation

#define _FILE_OFFSET_BITS   64

Definition at line 10 of file MatacqProducer.cc.

#define _LARGEFILE64_SOURCE

Definition at line 8 of file MatacqProducer.cc.

Function Documentation

static std::string now ( )
static

Definition at line 358 of file MatacqProducer.cc.

References visDQMUpload::buf.

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

358  {
359  struct timeval t;
360  gettimeofday(&t, nullptr);
361 
362  char buf[256];
363  strftime(buf, sizeof(buf), "%F %R %S s", localtime(&t.tv_sec));
364  buf[sizeof(buf) - 1] = 0;
365 
366  stringstream buf2;
367  buf2 << buf << " " << ((t.tv_usec + 500) / 1000) << " ms";
368 
369  return buf2.str();
370 }
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< MatacqProducer > > s_filler__LINE__ ( "MatacqProducer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< MatacqProducer > > s_maker__LINE__ ( "MatacqProducer"  )
static