#include <EvFDaqDirector.h>
Public Types | |
enum | FileStatus { noFile, sameFile, newFile, newLumi, runEnded, runAbort } |
Public Member Functions | |
std::string & | baseRunDir () |
std::string & | buBaseRunDir () |
std::string & | buBaseRunOpenDir () |
void | checkMergeTypePSet (edm::ProcessContext const &pc) |
void | checkTransferSystemPSet (edm::ProcessContext const &pc) |
EvFDaqDirector::FileStatus | contactFileBroker (unsigned int &serverHttpStatus, bool &serverState, uint32_t &serverLS, uint32_t &closedServerLS, std::string &nextFileJson, std::string &nextFileRaw, int maxLS) |
void | createBoLSFile (const uint32_t lumiSection, bool checkIfExists) const |
void | createLumiSectionFiles (const uint32_t lumiSection, const uint32_t currentLumiSection, bool doCreateBoLS=true) |
void | createProcessingNotificationMaybe () const |
void | createRunOpendirMaybe () |
EvFDaqDirector (const edm::ParameterSet &pset, edm::ActivityRegistry ®) | |
std::string | findCurrentRunDir () |
std::string | getBoLSFilePathOnFU (const unsigned int ls) const |
std::string | getDatFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getEoLSFilePathOnBU (const unsigned int ls) const |
std::string | getEoLSFilePathOnFU (const unsigned int ls) const |
std::string | getEoRFilePath () const |
std::string | getEoRFilePathOnFU () const |
std::string | getFFFParamsFilePathOnBU () const |
std::string | getInitFilePath (std::string const &stream) const |
std::string | getInputJsonFilePath (const unsigned int ls, const unsigned int index) const |
unsigned int | getLumisectionToStart () const |
std::string | getMergedDatChecksumFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getMergedDatFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getMergedProtocolBufferHistogramFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getMergedRootHistogramFilePath (const unsigned int ls, std::string const &stream) const |
FileStatus | getNextFromFileBroker (const unsigned int currentLumiSection, unsigned int &ls, std::string &nextFile, int &serverEventsInNewFile_, int64_t &fileSize, uint64_t &thisLockWaitTimeUs) |
std::string | getOpenDatFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getOpenInitFilePath (std::string const &stream) const |
std::string | getOpenInputJsonFilePath (const unsigned int ls, const unsigned int index) const |
std::string | getOpenOutputJsonFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getOpenProtocolBufferHistogramFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getOpenRawFilePath (const unsigned int ls, const unsigned int index) const |
std::string | getOpenRootHistogramFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getOutputJsonFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getProtocolBufferHistogramFilePath (const unsigned int ls, std::string const &stream) const |
std::string | getRawFilePath (const unsigned int ls, const unsigned int index) const |
std::string | getRootHistogramFilePath (const unsigned int ls, std::string const &stream) const |
unsigned int | getRunNumber () const |
std::string | getRunOpenDirPath () const |
std::string | getStreamDestinations (std::string const &stream) const |
std::string | getStreamMergeType (std::string const &stream, MergeType defaultType) |
int | grabNextJsonFile (std::string const &jsonSourcePath, std::string const &rawSourcePath, int64_t &fileSizeFromJson, bool &fileFound) |
int | grabNextJsonFileAndUnlock (boost::filesystem::path const &jsonSourcePath) |
void | initRun () |
bool | isSingleStreamThread () |
void | lockFULocal () |
void | lockFULocal2 () |
void | lockInitLock () |
bool | outputAdler32Recheck () const |
void | overrideRunNumber (unsigned int run) |
void | postEndRun (edm::GlobalContext const &globalContext) |
void | preallocate (edm::service::SystemBounds const &bounds) |
void | preBeginJob (edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &) |
void | preBeginRun (edm::GlobalContext const &globalContext) |
void | preGlobalEndLumi (edm::GlobalContext const &globalContext) |
int | readLastLSEntry (std::string const &file) |
void | removeFile (unsigned int ls, unsigned int index) |
void | removeFile (std::string) |
void | setDeleteTracking (std::mutex *fileDeleteLock, std::list< std::pair< int, InputFile * >> *filesToDelete) |
void | setFMS (evf::FastMonitoringService *fms) |
void | tryInitializeFuLockFile () |
void | unlockFULocal () |
void | unlockFULocal2 () |
void | unlockInitLock () |
FileStatus | updateFuLock (unsigned int &ls, std::string &nextFile, uint32_t &fsize, uint64_t &lockWaitTime) |
bool | useFileBroker () const |
~EvFDaqDirector () | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
static struct flock | make_flock (short type, short whence, off_t start, off_t len, pid_t pid) |
Private Member Functions | |
bool | bumpFile (unsigned int &ls, unsigned int &index, std::string &nextFile, uint32_t &fsize, int maxLS) |
std::string | eolsFileName (const unsigned int ls) const |
std::string | eorFileName () const |
int | getNFilesFromEoLS (std::string BUEoLSFile) |
std::string | initFileName (std::string const &stream) const |
std::string | inputFileNameStem (const unsigned int ls, const unsigned int index) const |
std::string | mergedFileNameStem (const unsigned int ls, std::string const &stream) const |
void | openFULockfileStream (bool create) |
std::string | outputFileNameStem (const unsigned int ls, std::string const &stream) const |
Private Attributes | |
std::string | base_dir_ |
std::string | bu_base_dir_ |
struct flock | bu_r_flk |
struct flock | bu_r_fulk |
FILE * | bu_r_lock_stream |
int | bu_readlock_fd_ |
std::string | bu_run_dir_ |
std::string | bu_run_open_dir_ |
FILE * | bu_t_monitor_stream |
struct flock | bu_w_flk |
struct flock | bu_w_fulk |
FILE * | bu_w_lock_stream |
FILE * | bu_w_monitor_stream |
int | bu_writelock_fd_ |
bool | directorBu_ |
DirManager | dirManager_ |
jsoncollector::DataPointDefinition * | dpd_ |
std::unique_ptr< boost::asio::ip::tcp::resolver::iterator > | endpoint_iterator_ |
unsigned int | eolsNFilesIndex_ = 1 |
std::string | fileBrokerHost_ |
bool | fileBrokerKeepAlive_ |
std::string | fileBrokerPort_ |
bool | fileBrokerUseLocalLock_ |
std::mutex * | fileDeleteLockPtr_ = nullptr |
std::list< std::pair< int, InputFile * > > * | filesToDeletePtr_ = nullptr |
evf::FastMonitoringService * | fms_ = nullptr |
int | fu_readwritelock_fd_ |
struct flock | fu_rw_flk |
struct flock | fu_rw_fulk |
FILE * | fu_rw_lock_stream |
int | fulocal_rwlock_fd2_ |
int | fulocal_rwlock_fd_ |
std::string | fulockfile_ |
unsigned int | fuLockPollInterval_ |
std::string | hltSourceDirectory_ |
std::string | hostname_ |
pthread_mutex_t | init_lock_ = PTHREAD_MUTEX_INITIALIZER |
boost::asio::io_service | io_service_ |
tbb::concurrent_hash_map< std::string, std::string > | mergeTypeMap_ |
std::string | mergeTypePset_ |
unsigned int | nStreams_ =0 |
unsigned int | nThreads_ =0 |
bool | outputAdler32Recheck_ |
std::string | pid_ |
unsigned long | previousFileSize_ |
std::unique_ptr< boost::asio::ip::tcp::resolver::query > | query_ |
bool | readEolsDefinition_ = true |
bool | requireTSPSet_ |
std::unique_ptr< boost::asio::ip::tcp::resolver > | resolver_ |
unsigned int | run_ |
std::string | run_dir_ |
std::string | run_nstring_ |
std::string | run_string_ |
std::string | selectedTransferMode_ |
std::unique_ptr< boost::asio::ip::tcp::socket > | socket_ |
unsigned int | startFromLS_ = 1 |
unsigned int | stop_ls_override_ = 0 |
std::string | stopFilePath_ |
std::string | stopFilePathPid_ |
std::shared_ptr< Json::Value > | transferSystemJson_ |
bool | useFileBroker_ |
Static Private Attributes | |
static const std::vector< std::string > | MergeTypeNames_ = {"","DAT","PB","JSNDATA"} |
Definition at line 62 of file EvFDaqDirector.h.
Enumerator | |
---|---|
noFile | |
sameFile | |
newFile | |
newLumi | |
runEnded | |
runAbort |
Definition at line 66 of file EvFDaqDirector.h.
|
explicit |
Definition at line 39 of file EvFDaqDirector.cc.
References endpoint_iterator_, Exception, fileBrokerHost_, fileBrokerPort_, fileBrokerUseLocalLock_, fuLockPollInterval_, hostname_, recoMuon::in, io_service_, postEndRun(), preallocate(), preBeginJob(), preBeginRun(), preGlobalEndLumi(), query_, resolver_, socket_, startFromLS_, trackingPlots::stat, AlCaHLTBitMon_QueryRunRegistry::string, useFileBroker_, edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreGlobalBeginRun(), and edm::ActivityRegistry::watchPreGlobalEndLumi().
evf::EvFDaqDirector::~EvFDaqDirector | ( | ) |
Definition at line 311 of file EvFDaqDirector.cc.
References RecoEcal_EventContent_cff::ec, fulocal_rwlock_fd2_, fulocal_rwlock_fd_, socket_, unlockFULocal(), and unlockFULocal2().
|
inline |
Definition at line 78 of file EvFDaqDirector.h.
Referenced by grabNextJsonFile(), and grabNextJsonFileAndUnlock().
|
inline |
Definition at line 79 of file EvFDaqDirector.h.
|
inline |
Definition at line 80 of file EvFDaqDirector.h.
|
private |
Definition at line 797 of file EvFDaqDirector.cc.
References evf::FastMonitoringService::accumulateFileSize(), fms_, getEoLSFilePathOnBU(), getInputJsonFilePath(), getNFilesFromEoLS(), eostools::ls(), previousFileSize_, trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by updateFuLock().
void evf::EvFDaqDirector::checkMergeTypePSet | ( | edm::ProcessContext const & | pc | ) |
Definition at line 1750 of file EvFDaqDirector.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameterSet(), edm::getParameterSet(), mergeTypeMap_, mergeTypePset_, edm::ProcessContext::parameterSetID(), BPhysicsValidation_cfi::pname, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by preBeginJob().
void evf::EvFDaqDirector::checkTransferSystemPSet | ( | edm::ProcessContext const & | pc | ) |
Definition at line 1647 of file EvFDaqDirector.cc.
References Json::Value::append(), Json::arrayValue, mps_fire::dest, myMessageLogger_cff::destinations, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), edm::getParameterSet(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, edm::ProcessContext::parameterSetID(), requireTSPSet_, and transferSystemJson_.
Referenced by preBeginJob().
EvFDaqDirector::FileStatus evf::EvFDaqDirector::contactFileBroker | ( | unsigned int & | serverHttpStatus, |
bool & | serverState, | ||
uint32_t & | serverLS, | ||
uint32_t & | closedServerLS, | ||
std::string & | nextFileJson, | ||
std::string & | nextFileRaw, | ||
int | maxLS | ||
) |
Definition at line 1248 of file EvFDaqDirector.cc.
References bu_run_dir_, DBConfiguration_cff::connect, MillePedeFileConverter_cfg::e, RecoEcal_EventContent_cff::ec, endpoint_iterator_, cppFunctionSkipper::exception, fileBrokerHost_, fileBrokerKeepAlive_, RecoTauValidation_cfi::header, SiStripPI::max, newFile, noFile, callgraph::path, pid_, run_nstring_, runEnded, socket_, AlCaHLTBitMon_QueryRunRegistry::string, and TriggerAnalyzer::write().
Referenced by getNextFromFileBroker().
void evf::EvFDaqDirector::createBoLSFile | ( | const uint32_t | lumiSection, |
bool | checkIfExists | ||
) | const |
Definition at line 936 of file EvFDaqDirector.cc.
References getBoLSFilePathOnFU(), trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by createLumiSectionFiles(), and FedRawDataInputSource::maybeOpenNewLumiSection().
void evf::EvFDaqDirector::createLumiSectionFiles | ( | const uint32_t | lumiSection, |
const uint32_t | currentLumiSection, | ||
bool | doCreateBoLS = true |
||
) |
Definition at line 947 of file EvFDaqDirector.cc.
References createBoLSFile(), runEdmFileComparison::found, getEoLSFilePathOnFU(), trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getNextFromFileBroker().
void evf::EvFDaqDirector::createProcessingNotificationMaybe | ( | ) | const |
Definition at line 1783 of file EvFDaqDirector.cc.
References run_dir_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FedRawDataInputSource::checkNextEvent().
void evf::EvFDaqDirector::createRunOpendirMaybe | ( | ) |
Definition at line 1604 of file EvFDaqDirector.cc.
References getRunOpenDirPath(), LogDebug, and callgraph::path.
Referenced by initRun().
|
private |
|
private |
|
static |
Definition at line 342 of file EvFDaqDirector.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 83 of file EvFDaqDirector.h.
References eostools::ls(), and AlCaHLTBitMon_QueryRunRegistry::string.
std::string evf::EvFDaqDirector::getBoLSFilePathOnFU | ( | const unsigned int | ls | ) | const |
Definition at line 514 of file EvFDaqDirector.cc.
References fffnaming::bolsFileName(), run_, and run_dir_.
Referenced by createBoLSFile().
std::string evf::EvFDaqDirector::getDatFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 450 of file EvFDaqDirector.cc.
References run_, run_dir_, and fffnaming::streamerDataFileNameWithPid().
std::string evf::EvFDaqDirector::getEoLSFilePathOnBU | ( | const unsigned int | ls | ) | const |
Definition at line 506 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::eolsFileName(), and run_.
Referenced by bumpFile(), and FedRawDataInputSource::checkNextEvent().
std::string evf::EvFDaqDirector::getEoLSFilePathOnFU | ( | const unsigned int | ls | ) | const |
Definition at line 510 of file EvFDaqDirector.cc.
References fffnaming::eolsFileName(), run_, and run_dir_.
Referenced by FedRawDataInputSource::checkNextEvent(), createLumiSectionFiles(), FedRawDataInputSource::maybeOpenNewLumiSection(), and updateFuLock().
std::string evf::EvFDaqDirector::getEoRFilePath | ( | ) | const |
Definition at line 518 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::eorFileName(), and run_.
Referenced by updateFuLock().
std::string evf::EvFDaqDirector::getEoRFilePathOnFU | ( | ) | const |
Definition at line 522 of file EvFDaqDirector.cc.
References fffnaming::eorFileName(), run_, and run_dir_.
Referenced by FedRawDataInputSource::checkNextEvent().
std::string evf::EvFDaqDirector::getFFFParamsFilePathOnBU | ( | ) | const |
std::string evf::EvFDaqDirector::getInitFilePath | ( | std::string const & | stream | ) | const |
Definition at line 478 of file EvFDaqDirector.cc.
References fffnaming::initFileNameWithPid(), run_, and run_dir_.
Referenced by DQMFileSaver::globalBeginRun().
std::string evf::EvFDaqDirector::getInputJsonFilePath | ( | const unsigned int | ls, |
const unsigned int | index | ||
) | const |
Definition at line 434 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::inputJsonFileName(), and run_.
Referenced by bumpFile().
unsigned int evf::EvFDaqDirector::getLumisectionToStart | ( | ) | const |
Definition at line 1631 of file EvFDaqDirector.cc.
References run_dir_, run_string_, startFromLS_, trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FedRawDataInputSource::readSupervisor().
std::string evf::EvFDaqDirector::getMergedDatChecksumFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 470 of file EvFDaqDirector.cc.
References hostname_, run_, run_dir_, and fffnaming::streamerDataChecksumFileNameWithInstance().
std::string evf::EvFDaqDirector::getMergedDatFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 466 of file EvFDaqDirector.cc.
References hostname_, run_, run_dir_, and fffnaming::streamerDataFileNameWithInstance().
std::string evf::EvFDaqDirector::getMergedProtocolBufferHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 490 of file EvFDaqDirector.cc.
References hostname_, fffnaming::protocolBufferHistogramFileNameWithInstance(), run_, and run_dir_.
std::string evf::EvFDaqDirector::getMergedRootHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 502 of file EvFDaqDirector.cc.
References hostname_, fffnaming::rootHistogramFileNameWithInstance(), run_, and run_dir_.
EvFDaqDirector::FileStatus evf::EvFDaqDirector::getNextFromFileBroker | ( | const unsigned int | currentLumiSection, |
unsigned int & | ls, | ||
std::string & | nextFile, | ||
int & | serverEventsInNewFile_, | ||
int64_t & | fileSize, | ||
uint64_t & | thisLockWaitTimeUs | ||
) |
Definition at line 1490 of file EvFDaqDirector.cc.
References bu_run_dir_, contactFileBroker(), createLumiSectionFiles(), fileBrokerUseLocalLock_, grabNextJsonFile(), mps_fire::i, lockFULocal2(), eostools::ls(), SiStripPI::max, newFile, noFile, readLastLSEntry(), runEnded, trackingPlots::stat, stop_ls_override_, stopFilePath_, stopFilePathPid_, AlCaHLTBitMon_QueryRunRegistry::string, mitigatedMETSequence_cff::U, and unlockFULocal2().
Referenced by FedRawDataInputSource::readSupervisor().
|
private |
Definition at line 736 of file EvFDaqDirector.cc.
References bu_run_dir_, data, def, jsoncollector::DataPoint::deserialize(), eolsNFilesIndex_, jsoncollector::DataPoint::getData(), jsoncollector::DataPoint::getDefinition(), jsoncollector::DataPointDefinition::getNames(), mps_fire::i, Json::Reader::parse(), readEolsDefinition_, matplotRender::reader, trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by bumpFile().
std::string evf::EvFDaqDirector::getOpenDatFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 454 of file EvFDaqDirector.cc.
References run_, run_dir_, and fffnaming::streamerDataFileNameWithPid().
std::string evf::EvFDaqDirector::getOpenInitFilePath | ( | std::string const & | stream | ) | const |
Definition at line 474 of file EvFDaqDirector.cc.
References fffnaming::initFileNameWithPid(), run_, and run_dir_.
std::string evf::EvFDaqDirector::getOpenInputJsonFilePath | ( | const unsigned int | ls, |
const unsigned int | index | ||
) | const |
Definition at line 446 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::inputJsonFileName(), and run_.
std::string evf::EvFDaqDirector::getOpenOutputJsonFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 458 of file EvFDaqDirector.cc.
References run_, run_dir_, and fffnaming::streamerJsonFileNameWithPid().
std::string evf::EvFDaqDirector::getOpenProtocolBufferHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 482 of file EvFDaqDirector.cc.
References fffnaming::protocolBufferHistogramFileNameWithPid(), run_, and run_dir_.
std::string evf::EvFDaqDirector::getOpenRawFilePath | ( | const unsigned int | ls, |
const unsigned int | index | ||
) | const |
Definition at line 442 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::inputRawFileName(), and run_.
std::string evf::EvFDaqDirector::getOpenRootHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 494 of file EvFDaqDirector.cc.
References fffnaming::rootHistogramFileNameWithPid(), run_, and run_dir_.
std::string evf::EvFDaqDirector::getOutputJsonFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 462 of file EvFDaqDirector.cc.
References run_, run_dir_, and fffnaming::streamerJsonFileNameWithPid().
std::string evf::EvFDaqDirector::getProtocolBufferHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 486 of file EvFDaqDirector.cc.
References fffnaming::protocolBufferHistogramFileNameWithPid(), run_, and run_dir_.
std::string evf::EvFDaqDirector::getRawFilePath | ( | const unsigned int | ls, |
const unsigned int | index | ||
) | const |
Definition at line 438 of file EvFDaqDirector.cc.
References bu_run_dir_, fffnaming::inputRawFileName(), and run_.
Referenced by removeFile().
std::string evf::EvFDaqDirector::getRootHistogramFilePath | ( | const unsigned int | ls, |
std::string const & | stream | ||
) | const |
Definition at line 498 of file EvFDaqDirector.cc.
References fffnaming::rootHistogramFileNameWithPid(), run_, and run_dir_.
|
inline |
Definition at line 115 of file EvFDaqDirector.h.
|
inline |
Definition at line 108 of file EvFDaqDirector.h.
Referenced by createRunOpendirMaybe(), and initRun().
std::string evf::EvFDaqDirector::getStreamDestinations | ( | std::string const & | stream | ) | const |
Definition at line 1703 of file EvFDaqDirector.cc.
References Json::Value::begin(), Json::Value::end(), Exception, mps_check::msg, requireTSPSet_, selectedTransferMode_, AlCaHLTBitMon_QueryRunRegistry::string, and transferSystemJson_.
std::string evf::EvFDaqDirector::getStreamMergeType | ( | std::string const & | stream, |
MergeType | defaultType | ||
) |
Definition at line 1768 of file EvFDaqDirector.cc.
References mergeTypeMap_, MergeTypeNames_, and AlCaHLTBitMon_QueryRunRegistry::string.
int evf::EvFDaqDirector::grabNextJsonFile | ( | std::string const & | jsonSourcePath, |
std::string const & | rawSourcePath, | ||
int64_t & | fileSizeFromJson, | ||
bool & | fileFound | ||
) |
Definition at line 964 of file EvFDaqDirector.cc.
References baseRunDir(), data, jsoncollector::DataPoint::deserialize(), dpd_, MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, jsoncollector::DataPoint::getData(), Json::Reader::getFormatedErrorMessages(), jsoncollector::DataPointDefinition::getNames(), mps_fire::i, LogDebug, lumiCalc2::outfile, Json::Reader::parse(), callgraph::path, pid_, matplotRender::reader, mps_fire::result, trackingPlots::stat, AlCaHLTBitMon_QueryRunRegistry::string, summarizeEdmComparisonLogfiles::success, and TriggerAnalyzer::write().
Referenced by getNextFromFileBroker().
int evf::EvFDaqDirector::grabNextJsonFileAndUnlock | ( | boost::filesystem::path const & | jsonSourcePath | ) |
Definition at line 1144 of file EvFDaqDirector.cc.
References baseRunDir(), popcon2dropbox::copy(), data, jsoncollector::DataPoint::deserialize(), dpd_, MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, Exception, jsoncollector::DataPoint::getData(), Json::Reader::getFormatedErrorMessages(), jsoncollector::DataPointDefinition::getNames(), mps_fire::i, LogDebug, Json::Reader::parse(), callgraph::path, matplotRender::reader, MatrixUtil::remove(), AlCaHLTBitMon_QueryRunRegistry::string, summarizeEdmComparisonLogfiles::success, and unlockFULocal().
Referenced by FedRawDataInputSource::readSupervisor().
|
private |
void evf::EvFDaqDirector::initRun | ( | ) |
Definition at line 152 of file EvFDaqDirector.cc.
References base_dir_, bu_base_dir_, bu_run_dir_, bu_run_open_dir_, bu_w_lock_stream, bu_writelock_fd_, eostools::chmod(), createRunOpendirMaybe(), directorBu_, dpd_, Exception, fu_readwritelock_fd_, fu_rw_lock_stream, fulocal_rwlock_fd2_, fulocal_rwlock_fd_, fulockfile_, getRunOpenDirPath(), hltSourceDirectory_, init_lock_, eostools::mkdir(), openFULockfileStream(), pid_, run_, run_dir_, run_nstring_, run_string_, trackingPlots::stat, stopFilePath_, stopFilePathPid_, AlCaHLTBitMon_QueryRunRegistry::string, and tryInitializeFuLockFile().
Referenced by preallocate().
|
private |
|
inline |
Definition at line 119 of file EvFDaqDirector.h.
References FrontierConditions_GlobalTag_cff::file, callgraph::path, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FedRawDataInputSource::getNextEvent().
void evf::EvFDaqDirector::lockFULocal | ( | ) |
Definition at line 915 of file EvFDaqDirector.cc.
References fulocal_rwlock_fd_.
Referenced by updateFuLock().
void evf::EvFDaqDirector::lockFULocal2 | ( | ) |
Definition at line 926 of file EvFDaqDirector.cc.
References fulocal_rwlock_fd2_.
Referenced by FedRawDataInputSource::checkNextEvent(), getNextFromFileBroker(), and FedRawDataInputSource::maybeOpenNewLumiSection().
void evf::EvFDaqDirector::lockInitLock | ( | ) |
|
static |
Definition at line 1789 of file EvFDaqDirector.cc.
References sysUtil::pid, and command_line::start.
|
private |
|
private |
Definition at line 886 of file EvFDaqDirector.cc.
References eostools::chmod(), fu_readwritelock_fd_, fu_rw_lock_stream, fulockfile_, and LogDebug.
Referenced by initRun().
|
inline |
Definition at line 109 of file EvFDaqDirector.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
|
inline |
void evf::EvFDaqDirector::postEndRun | ( | edm::GlobalContext const & | globalContext | ) |
Definition at line 381 of file EvFDaqDirector.cc.
References bu_readlock_fd_, bu_run_dir_, bu_writelock_fd_, directorBu_, corrVsCorr::filename, removeFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EvFDaqDirector().
void evf::EvFDaqDirector::preallocate | ( | edm::service::SystemBounds const & | bounds | ) |
Definition at line 334 of file EvFDaqDirector.cc.
References initRun(), edm::service::SystemBounds::maxNumberOfStreams(), edm::service::SystemBounds::maxNumberOfThreads(), nStreams_, and nThreads_.
Referenced by EvFDaqDirector().
void evf::EvFDaqDirector::preBeginJob | ( | edm::PathsAndConsumesOfModulesBase const & | , |
edm::ProcessContext const & | pc | ||
) |
Definition at line 363 of file EvFDaqDirector.cc.
References checkMergeTypePSet(), and checkTransferSystemPSet().
Referenced by EvFDaqDirector().
void evf::EvFDaqDirector::preBeginRun | ( | edm::GlobalContext const & | globalContext | ) |
Definition at line 369 of file EvFDaqDirector.cc.
References dirManager_, evf::DirManager::findHighestRunDir(), and run_dir_.
Referenced by EvFDaqDirector().
void evf::EvFDaqDirector::preGlobalEndLumi | ( | edm::GlobalContext const & | globalContext | ) |
Definition at line 390 of file EvFDaqDirector.cc.
References cppFunctionSkipper::exception, fileDeleteLockPtr_, filesToDeletePtr_, LogDebug, eostools::ls(), edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), callgraph::path, and MatrixUtil::remove().
Referenced by EvFDaqDirector().
int evf::EvFDaqDirector::readLastLSEntry | ( | std::string const & | file | ) |
Definition at line 1615 of file EvFDaqDirector.cc.
References Json::Value::asInt(), FrontierConditions_GlobalTag_cff::file, Json::Value::get(), Json::Reader::parse(), and matplotRender::reader.
Referenced by getNextFromFileBroker(), and updateFuLock().
void evf::EvFDaqDirector::removeFile | ( | unsigned int | ls, |
unsigned int | index | ||
) |
Definition at line 537 of file EvFDaqDirector.cc.
References getRawFilePath().
Referenced by postEndRun().
void evf::EvFDaqDirector::removeFile | ( | std::string | filename | ) |
Definition at line 530 of file EvFDaqDirector.cc.
|
inline |
Definition at line 139 of file EvFDaqDirector.h.
References beamerCreator::create(), fffnaming::eolsFileName(), fffnaming::eorFileName(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by FedRawDataInputSource::FedRawDataInputSource().
|
inline |
Definition at line 118 of file EvFDaqDirector.h.
Referenced by FedRawDataInputSource::FedRawDataInputSource().
void evf::EvFDaqDirector::tryInitializeFuLockFile | ( | ) |
Definition at line 875 of file EvFDaqDirector.cc.
References fu_rw_lock_stream, and getHLTprescales::readIndex().
Referenced by initRun().
void evf::EvFDaqDirector::unlockFULocal | ( | ) |
Definition at line 920 of file EvFDaqDirector.cc.
References fulocal_rwlock_fd_.
Referenced by grabNextJsonFileAndUnlock(), and ~EvFDaqDirector().
void evf::EvFDaqDirector::unlockFULocal2 | ( | ) |
Definition at line 931 of file EvFDaqDirector.cc.
References fulocal_rwlock_fd2_.
Referenced by FedRawDataInputSource::checkNextEvent(), getNextFromFileBroker(), FedRawDataInputSource::maybeOpenNewLumiSection(), and ~EvFDaqDirector().
void evf::EvFDaqDirector::unlockInitLock | ( | ) |
EvFDaqDirector::FileStatus evf::EvFDaqDirector::updateFuLock | ( | unsigned int & | ls, |
std::string & | nextFile, | ||
uint32_t & | fsize, | ||
uint64_t & | lockWaitTime | ||
) |
Definition at line 541 of file EvFDaqDirector.cc.
References bu_run_dir_, bumpFile(), trackerTree::check(), Exception, fu_readwritelock_fd_, fu_rw_flk, fu_rw_fulk, fulockfile_, fuLockPollInterval_, getEoLSFilePathOnFU(), getEoRFilePath(), lockFULocal(), LogDebug, eostools::ls(), newFile, noFile, getHLTprescales::readIndex(), readLastLSEntry(), runAbort, runEnded, trackingPlots::stat, stop_ls_override_, stopFilePath_, and stopFilePathPid_.
Referenced by FedRawDataInputSource::readSupervisor().
|
inline |
Definition at line 81 of file EvFDaqDirector.h.
Referenced by FedRawDataInputSource::FedRawDataInputSource().
|
private |
Definition at line 160 of file EvFDaqDirector.h.
Referenced by initRun().
|
private |
Definition at line 161 of file EvFDaqDirector.h.
Referenced by initRun().
|
private |
Definition at line 203 of file EvFDaqDirector.h.
|
private |
Definition at line 205 of file EvFDaqDirector.h.
|
private |
Definition at line 193 of file EvFDaqDirector.h.
|
private |
Definition at line 186 of file EvFDaqDirector.h.
Referenced by postEndRun().
|
private |
Definition at line 182 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), getEoLSFilePathOnBU(), getEoRFilePath(), getFFFParamsFilePathOnBU(), getInputJsonFilePath(), getNextFromFileBroker(), getNFilesFromEoLS(), getOpenInputJsonFilePath(), getOpenRawFilePath(), getRawFilePath(), initRun(), postEndRun(), and updateFuLock().
|
private |
Definition at line 183 of file EvFDaqDirector.h.
Referenced by initRun().
|
private |
Definition at line 196 of file EvFDaqDirector.h.
|
private |
Definition at line 202 of file EvFDaqDirector.h.
|
private |
Definition at line 204 of file EvFDaqDirector.h.
|
private |
Definition at line 192 of file EvFDaqDirector.h.
Referenced by initRun().
|
private |
Definition at line 195 of file EvFDaqDirector.h.
|
private |
Definition at line 187 of file EvFDaqDirector.h.
Referenced by initRun(), and postEndRun().
|
private |
Definition at line 162 of file EvFDaqDirector.h.
Referenced by initRun(), and postEndRun().
|
private |
Definition at line 198 of file EvFDaqDirector.h.
Referenced by preBeginRun().
|
private |
Definition at line 233 of file EvFDaqDirector.h.
Referenced by grabNextJsonFile(), grabNextJsonFileAndUnlock(), and initRun().
|
private |
Definition at line 238 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), and EvFDaqDirector().
|
private |
Definition at line 220 of file EvFDaqDirector.h.
Referenced by getNFilesFromEoLS().
|
private |
Definition at line 165 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), and EvFDaqDirector().
|
private |
Definition at line 167 of file EvFDaqDirector.h.
Referenced by contactFileBroker().
|
private |
Definition at line 166 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector().
|
private |
Definition at line 168 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector(), and getNextFromFileBroker().
|
private |
Definition at line 211 of file EvFDaqDirector.h.
Referenced by preGlobalEndLumi().
Definition at line 212 of file EvFDaqDirector.h.
Referenced by preGlobalEndLumi().
|
private |
Definition at line 209 of file EvFDaqDirector.h.
Referenced by bumpFile().
|
private |
Definition at line 188 of file EvFDaqDirector.h.
Referenced by initRun(), openFULockfileStream(), and updateFuLock().
|
private |
Definition at line 206 of file EvFDaqDirector.h.
Referenced by updateFuLock().
|
private |
Definition at line 207 of file EvFDaqDirector.h.
Referenced by updateFuLock().
|
private |
Definition at line 194 of file EvFDaqDirector.h.
Referenced by initRun(), openFULockfileStream(), and tryInitializeFuLockFile().
|
private |
Definition at line 190 of file EvFDaqDirector.h.
Referenced by initRun(), lockFULocal2(), unlockFULocal2(), and ~EvFDaqDirector().
|
private |
Definition at line 189 of file EvFDaqDirector.h.
Referenced by initRun(), lockFULocal(), unlockFULocal(), and ~EvFDaqDirector().
|
private |
Definition at line 184 of file EvFDaqDirector.h.
Referenced by initRun(), openFULockfileStream(), and updateFuLock().
|
private |
Definition at line 174 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector(), and updateFuLock().
|
private |
Definition at line 173 of file EvFDaqDirector.h.
Referenced by initRun().
|
private |
Definition at line 177 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector(), getMergedDatChecksumFilePath(), getMergedDatFilePath(), getMergedProtocolBufferHistogramFilePath(), and getMergedRootHistogramFilePath().
|
private |
Definition at line 214 of file EvFDaqDirector.h.
Referenced by initRun(), lockInitLock(), and unlockInitLock().
|
private |
Definition at line 235 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector().
|
private |
Definition at line 226 of file EvFDaqDirector.h.
Referenced by checkMergeTypePSet(), and getStreamMergeType().
|
staticprivate |
Definition at line 229 of file EvFDaqDirector.h.
Referenced by getStreamMergeType().
|
private |
Definition at line 175 of file EvFDaqDirector.h.
Referenced by checkMergeTypePSet().
|
private |
Definition at line 216 of file EvFDaqDirector.h.
Referenced by preallocate().
|
private |
Definition at line 217 of file EvFDaqDirector.h.
Referenced by preallocate().
|
private |
Definition at line 170 of file EvFDaqDirector.h.
|
private |
Definition at line 180 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), grabNextJsonFile(), and initRun().
|
private |
Definition at line 200 of file EvFDaqDirector.h.
Referenced by bumpFile().
|
private |
Definition at line 237 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector().
|
private |
Definition at line 219 of file EvFDaqDirector.h.
Referenced by getNFilesFromEoLS().
|
private |
Definition at line 171 of file EvFDaqDirector.h.
Referenced by checkTransferSystemPSet(), and getStreamDestinations().
|
private |
Definition at line 236 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector().
|
private |
Definition at line 163 of file EvFDaqDirector.h.
Referenced by getBoLSFilePathOnFU(), getDatFilePath(), getEoLSFilePathOnBU(), getEoLSFilePathOnFU(), getEoRFilePath(), getEoRFilePathOnFU(), getInitFilePath(), getInputJsonFilePath(), getMergedDatChecksumFilePath(), getMergedDatFilePath(), getMergedProtocolBufferHistogramFilePath(), getMergedRootHistogramFilePath(), getOpenDatFilePath(), getOpenInitFilePath(), getOpenInputJsonFilePath(), getOpenOutputJsonFilePath(), getOpenProtocolBufferHistogramFilePath(), getOpenRawFilePath(), getOpenRootHistogramFilePath(), getOutputJsonFilePath(), getProtocolBufferHistogramFilePath(), getRawFilePath(), getRootHistogramFilePath(), and initRun().
|
private |
Definition at line 181 of file EvFDaqDirector.h.
Referenced by createProcessingNotificationMaybe(), getBoLSFilePathOnFU(), getDatFilePath(), getEoLSFilePathOnFU(), getEoRFilePathOnFU(), getInitFilePath(), getLumisectionToStart(), getMergedDatChecksumFilePath(), getMergedDatFilePath(), getMergedProtocolBufferHistogramFilePath(), getMergedRootHistogramFilePath(), getOpenDatFilePath(), getOpenInitFilePath(), getOpenOutputJsonFilePath(), getOpenProtocolBufferHistogramFilePath(), getOpenRootHistogramFilePath(), getOutputJsonFilePath(), getProtocolBufferHistogramFilePath(), getRootHistogramFilePath(), initRun(), and preBeginRun().
|
private |
Definition at line 179 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), and initRun().
|
private |
Definition at line 178 of file EvFDaqDirector.h.
Referenced by getLumisectionToStart(), and initRun().
|
private |
Definition at line 172 of file EvFDaqDirector.h.
Referenced by getStreamDestinations().
|
private |
Definition at line 239 of file EvFDaqDirector.h.
Referenced by contactFileBroker(), EvFDaqDirector(), and ~EvFDaqDirector().
|
private |
Definition at line 169 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector(), and getLumisectionToStart().
|
private |
Definition at line 223 of file EvFDaqDirector.h.
Referenced by getNextFromFileBroker(), and updateFuLock().
|
private |
Definition at line 221 of file EvFDaqDirector.h.
Referenced by getNextFromFileBroker(), initRun(), and updateFuLock().
|
private |
Definition at line 222 of file EvFDaqDirector.h.
Referenced by getNextFromFileBroker(), initRun(), and updateFuLock().
|
private |
Definition at line 225 of file EvFDaqDirector.h.
Referenced by checkTransferSystemPSet(), and getStreamDestinations().
|
private |
Definition at line 164 of file EvFDaqDirector.h.
Referenced by EvFDaqDirector().