Skip to content

Commit

Permalink
Merge pull request #5492 from fwyzard/updates_for_DAQ2_testing
Browse files Browse the repository at this point in the history
updates for DAQ2 testing
  • Loading branch information
davidlange6 committed Sep 23, 2014
2 parents 62dbefc + 5a81fda commit 2b58495
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions EventFilter/Utilities/plugins/RawEventFileWriterForBU.cc
Expand Up @@ -272,12 +272,21 @@ void RawEventFileWriterForBU::endOfLS(int ls)
perLumiTotalEventCount_ = 0;
}

//runs on SIGINT and terminates the process
void RawEventFileWriterForBU::handler(int s){
void RawEventFileWriterForBU::stop()
{
// create EoR file
std::string path = destinationDir_ + "/" + runPrefix_ + "_ls0000_EoR.jsn";
runMon_->snap(0);
runMon_->outputFullJSON(path, 0);
}

// runs on SIGINT and terminates the process
void RawEventFileWriterForBU::handler(int s)
{
printf("Caught signal %d. Writing EOR file!\n",s);
if (destinationDir_.size() > 0)
{
// CREATE EOR file
// create EoR file
if (run_==-1) makeRunPrefix(destinationDir_);
std::string path = destinationDir_ + "/" + runPrefix_ + "_ls0000_EoR.jsn";
runMon_->snap(0);
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/Utilities/plugins/RawEventFileWriterForBU.h
Expand Up @@ -34,7 +34,7 @@ class RawEventFileWriterForBU
uint32 adler32() const { return (adlerb_ << 16) | adlera_; }

void start(){}
void stop() {}
void stop();
void initialize(std::string const& destinationDir, std::string const& name, int ls);
void endOfLS(int ls);
bool sharedMode() const {return false;}
Expand Down
2 changes: 1 addition & 1 deletion EventFilter/Utilities/src/EvFDaqDirector.cc
Expand Up @@ -213,7 +213,7 @@ namespace evf {
close(bu_readlock_fd_);
close(bu_writelock_fd_);
if (directorBu_) {
std::string filename = base_dir_ + "/bu.lock";
std::string filename = bu_run_dir_ + "/bu.lock";
removeFile(filename);
}
}
Expand Down

0 comments on commit 2b58495

Please sign in to comment.