CMS 3D CMS Logo

Classes | Macros | Functions
MatacqProducer.cc File Reference
#include <cstdio>
#include "FWCore/Framework/interface/one/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

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   64

Definition at line 10 of file MatacqProducer.cc.

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Definition at line 8 of file MatacqProducer.cc.

Function Documentation

◆ now()

static std::string now ( )
static

Definition at line 358 of file MatacqProducer.cc.

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

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 }

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< MatacqProducer > > s_filler__LINE__ ( "MatacqProducer"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< MatacqProducer > > s_maker__LINE__ ( "MatacqProducer"  )
static