CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
dqmservices::DQMFileIterator Class Reference

#include <DQMFileIterator.h>

Classes

struct  EorEntry
 
struct  LumiEntry
 

Public Types

enum  State { OPEN = 0, EOR_CLOSING = 1, EOR = 2 }
 

Public Member Functions

void advanceToLumi (unsigned int lumi, std::string reason)
 
void delay ()
 
 DQMFileIterator (edm::ParameterSet const &pset)
 
void initialise (int run, const std::string &, const std::string &)
 
unsigned int lastLumiFound ()
 
void logFileAction (const std::string &msg, const std::string &fileName="") const
 
void logLumiState (const LumiEntry &lumi, const std::string &msg)
 
bool lumiReady ()
 
LumiEntry open ()
 
void pop ()
 
void reset ()
 
unsigned int runNumber ()
 
State state ()
 
void update_state ()
 
 ~DQMFileIterator ()
 

Static Public Member Functions

static void fillDescription (edm::ParameterSetDescription &d)
 

Private Member Functions

void collect (bool ignoreTimers)
 
void monUpdateLumi (const LumiEntry &lumi)
 
std::time_t mtimeHash () const
 

Private Attributes

unsigned int datafnPosition_
 
unsigned long delayMillis_
 
EorEntry eor_
 
std::unordered_set< std::string > filesSeen_
 
bool flagScanOnce_
 
long forceFileCheckTimeoutMillis_
 
std::chrono::high_resolution_clock::time_point lastLumiLoad_
 
std::map< unsigned int, LumiEntrylumiSeen_
 
edm::Service
< DQMMonitoringService
mon_
 
unsigned int nextLumiNumber_
 
long nextLumiTimeoutMillis_
 
std::string runInputDir_
 
unsigned int runNumber_
 
std::vector< std::string > runPath_
 
std::chrono::high_resolution_clock::time_point runPathLastCollect_
 
std::time_t runPathMTime_
 
State state_
 
std::string streamLabel_
 

Detailed Description

Definition at line 18 of file DQMFileIterator.h.

Member Enumeration Documentation

Enumerator
OPEN 
EOR_CLOSING 
EOR 

Definition at line 48 of file DQMFileIterator.h.

48  {
49  OPEN = 0,
50  EOR_CLOSING = 1, // EoR file found, but lumis are still pending
51  EOR = 2,
52  };

Constructor & Destructor Documentation

dqmservices::DQMFileIterator::DQMFileIterator ( edm::ParameterSet const &  pset)

Definition at line 80 of file DQMFileIterator.cc.

dqmservices::DQMFileIterator::~DQMFileIterator ( )

Definition at line 96 of file DQMFileIterator.cc.

Member Function Documentation

void dqmservices::DQMFileIterator::advanceToLumi ( unsigned int  lumi,
std::string  reason 
)

Definition at line 154 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::collect ( bool  ignoreTimers)
private

Definition at line 202 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::delay ( )

Definition at line 401 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::fillDescription ( edm::ParameterSetDescription d)
static

Definition at line 407 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::initialise ( int  run,
const std::string &  ,
const std::string &   
)
unsigned int dqmservices::DQMFileIterator::lastLumiFound ( )

Definition at line 146 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::logFileAction ( const std::string &  msg,
const std::string &  fileName = "" 
) const

Definition at line 383 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::logLumiState ( const LumiEntry lumi,
const std::string &  msg 
)

Definition at line 390 of file DQMFileIterator.cc.

bool dqmservices::DQMFileIterator::lumiReady ( )

Definition at line 136 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::monUpdateLumi ( const LumiEntry lumi)
private

Definition at line 180 of file DQMFileIterator.cc.

std::time_t dqmservices::DQMFileIterator::mtimeHash ( ) const
private

Definition at line 189 of file DQMFileIterator.cc.

DQMFileIterator::LumiEntry dqmservices::DQMFileIterator::open ( )

Definition at line 130 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::pop ( )
void dqmservices::DQMFileIterator::reset ( void  )

Definition at line 98 of file DQMFileIterator.cc.

unsigned int dqmservices::DQMFileIterator::runNumber ( )

Definition at line 144 of file DQMFileIterator.cc.

DQMFileIterator::State dqmservices::DQMFileIterator::state ( )

Definition at line 128 of file DQMFileIterator.cc.

void dqmservices::DQMFileIterator::update_state ( )

Definition at line 322 of file DQMFileIterator.cc.

Member Data Documentation

unsigned int dqmservices::DQMFileIterator::datafnPosition_
private

Definition at line 101 of file DQMFileIterator.h.

unsigned long dqmservices::DQMFileIterator::delayMillis_
private

Definition at line 95 of file DQMFileIterator.h.

EorEntry dqmservices::DQMFileIterator::eor_
private

Definition at line 104 of file DQMFileIterator.h.

std::unordered_set<std::string> dqmservices::DQMFileIterator::filesSeen_
private

Definition at line 109 of file DQMFileIterator.h.

bool dqmservices::DQMFileIterator::flagScanOnce_
private

Definition at line 98 of file DQMFileIterator.h.

long dqmservices::DQMFileIterator::forceFileCheckTimeoutMillis_
private

Definition at line 97 of file DQMFileIterator.h.

std::chrono::high_resolution_clock::time_point dqmservices::DQMFileIterator::lastLumiLoad_
private

Definition at line 117 of file DQMFileIterator.h.

std::map<unsigned int, LumiEntry> dqmservices::DQMFileIterator::lumiSeen_
private

Definition at line 108 of file DQMFileIterator.h.

edm::Service<DQMMonitoringService> dqmservices::DQMFileIterator::mon_
private

Definition at line 124 of file DQMFileIterator.h.

unsigned int dqmservices::DQMFileIterator::nextLumiNumber_
private

Definition at line 107 of file DQMFileIterator.h.

long dqmservices::DQMFileIterator::nextLumiTimeoutMillis_
private

Definition at line 96 of file DQMFileIterator.h.

std::string dqmservices::DQMFileIterator::runInputDir_
private

Definition at line 93 of file DQMFileIterator.h.

unsigned int dqmservices::DQMFileIterator::runNumber_
private

Definition at line 92 of file DQMFileIterator.h.

std::vector<std::string> dqmservices::DQMFileIterator::runPath_
private

Definition at line 102 of file DQMFileIterator.h.

std::chrono::high_resolution_clock::time_point dqmservices::DQMFileIterator::runPathLastCollect_
private

Definition at line 114 of file DQMFileIterator.h.

std::time_t dqmservices::DQMFileIterator::runPathMTime_
private

Definition at line 113 of file DQMFileIterator.h.

State dqmservices::DQMFileIterator::state_
private

Definition at line 105 of file DQMFileIterator.h.

std::string dqmservices::DQMFileIterator::streamLabel_
private

Definition at line 94 of file DQMFileIterator.h.