CMS 3D CMS Logo

Functions | Variables
LaserSorter.cc File Reference
#include "CalibCalorimetry/EcalLaserSorting/interface/LaserSorter.h"
#include "CalibCalorimetry/EcalLaserSorting/src/Majority.h"
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cerrno>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Provenance/interface/EventID.h"
#include "DataFormats/FEDRawData/interface/FEDRawData.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
#include "DataFormats/Provenance/interface/LuminosityBlockID.h"
#include "DataFormats/Provenance/interface/Timestamp.h"
#include "EventFilter/EcalRawToDigi/interface/MatacqRawEvent.h"

Go to the source code of this file.

Functions

static std::string now ()
 

Variables

static const char *const colorNames [] = {"Blue", "Green", "Red", "IR"}
 
static const char *const detailedTrigNames []
 
static const struct timeval nullTime = {0, 0}
 

Function Documentation

◆ now()

static std::string now ( )
static

Definition at line 60 of file LaserSorter.cc.

60  {
61  struct timeval t;
62  gettimeofday(&t, nullptr);
63 
64  char buf[256];
65  strftime(buf, sizeof(buf), "%F %R %S s", localtime(&t.tv_sec));
66  buf[sizeof(buf) - 1] = 0;
67 
68  stringstream buf2;
69  buf2 << buf << " " << ((t.tv_usec + 500) / 1000) << " ms";
70 
71  return buf2.str();
72 }

References visDQMUpload::buf, and OrderedSet::t.

Referenced by LaserSorter::analyze(), LaserSorter::closeOldStreams(), LaserSorter::closeOutStream(), LaserSorter::createOutStream(), LaserSorter::getDetailedTriggerType(), LaserSorter::getStream(), LaserSorter::LaserSorter(), LaserSorter::readIndexTable(), LaserSorter::streamFileName(), LaserSorter::writeEvent(), LaserSorter::writeEventHeader(), and LaserSorter::writeFedBlock().

Variable Documentation

◆ colorNames

const char* const colorNames[] = {"Blue", "Green", "Red", "IR"}
static

Definition at line 55 of file LaserSorter.cc.

Referenced by LaserSorter::analyze(), and LaserSorter::writeEventHeader().

◆ detailedTrigNames

const char* const detailedTrigNames[]
static
Initial value:
= {
"Inv0",
"Inv1",
"Inv2",
"Inv3",
"Las",
"Led",
"TP",
"Ped"
}

Definition at line 44 of file LaserSorter.cc.

Referenced by LaserSorter::analyze(), and LaserSorter::writeEventHeader().

◆ nullTime

const struct timeval nullTime = {0, 0}
static

Definition at line 42 of file LaserSorter.cc.

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