CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
RawEventFileWriterForBU Class Reference

#include <RawEventFileWriterForBU.h>

Public Member Functions

uint32 adler32 () const
 
void doOutputEvent (boost::shared_array< unsigned char > &msg)
 
void doOutputEvent (FRDEventMsgView const &msg)
 
void doOutputEventFragment (unsigned char *dataPtr, unsigned long dataSize)
 
void endOfLS (int ls)
 
void initialize (std::string const &destinationDir, std::string const &name, int ls)
 
void makeRunPrefix (std::string const &destinationDir)
 
 RawEventFileWriterForBU (edm::ParameterSet const &ps)
 
 RawEventFileWriterForBU (std::string const &fileName)
 
bool sharedMode () const
 
void start ()
 
void stop ()
 
 ~RawEventFileWriterForBU ()
 

Private Member Functions

bool closefd ()
 
void finishFileWrite (int ls)
 
void writeJsds ()
 

Private Attributes

uint32 adlera_
 
uint32 adlerb_
 
std::string destinationDir_
 
jsoncollector::DataPointDefinition eolJsonDef_
 
jsoncollector::DataPointDefinition eorJsonDef_
 
jsoncollector::FastMonitorfileMon_ = nullptr
 
std::string fileName_
 
unsigned int frdFileVersion_
 
unsigned int lumiClosed_ = 0
 
jsoncollector::FastMonitorlumiMon_ = nullptr
 
unsigned int lumiOpen_ = 0
 
int microSleep_
 
std::unique_ptr< std::ofstream > ost_
 
int outfd_ = -1
 
jsoncollector::IntJ perFileEventCount_
 
jsoncollector::IntJ perFileSize_
 
jsoncollector::IntJ perLumiEventCount_
 
jsoncollector::IntJ perLumiFileCount_
 
jsoncollector::IntJ perLumiLostEventCount_
 
jsoncollector::IntJ perLumiSize_
 
jsoncollector::IntJ perLumiTotalEventCount_
 
jsoncollector::IntJ perRunEventCount_
 
jsoncollector::IntJ perRunFileCount_
 
jsoncollector::IntJ perRunLastLumi_
 
jsoncollector::IntJ perRunLumiCount_
 
jsoncollector::DataPointDefinition rawJsonDef_
 
int run_ = -1
 
jsoncollector::FastMonitorrunMon_ = nullptr
 
std::string runPrefix_
 
bool writtenJSDs_ = false
 

Detailed Description

Definition at line 18 of file RawEventFileWriterForBU.h.

Constructor & Destructor Documentation

◆ RawEventFileWriterForBU() [1/2]

RawEventFileWriterForBU::RawEventFileWriterForBU ( edm::ParameterSet const &  ps)
explicit

Definition at line 26 of file RawEventFileWriterForBU.cc.

27  : // default to .5ms sleep per event
28  microSleep_(ps.getUntrackedParameter<int>("microSleep", 0)),
29  frdFileVersion_(ps.getUntrackedParameter<unsigned int>("frdFileVersion", 0))
30 //debug_(ps.getUntrackedParameter<bool>("debug", False))
31 {
32  //per-file JSD and FastMonitor
33  rawJsonDef_.setDefaultGroup("legend");
34  rawJsonDef_.addLegendItem("NEvents", "integer", DataPointDefinition::SUM);
35 
36  perFileEventCount_.setName("NEvents");
37  perFileSize_.setName("NBytes");
38 
39  fileMon_ = new FastMonitor(&rawJsonDef_, false);
42  fileMon_->commit(nullptr);
43 
44  //per-lumi JSD and FastMonitor
45  eolJsonDef_.setDefaultGroup("legend");
46  eolJsonDef_.addLegendItem("NEvents", "integer", DataPointDefinition::SUM);
48  eolJsonDef_.addLegendItem("TotalEvents", "integer", DataPointDefinition::SUM);
49  eolJsonDef_.addLegendItem("NLostEvents", "integer", DataPointDefinition::SUM);
50 
51  perLumiEventCount_.setName("NEvents");
52  perLumiFileCount_.setName("NFiles");
53  perLumiTotalEventCount_.setName("TotalEvents");
54  perLumiLostEventCount_.setName("NLostEvents");
55  perLumiSize_.setName("NBytes");
56 
57  lumiMon_ = new FastMonitor(&eolJsonDef_, false);
63  lumiMon_->commit(nullptr);
64 
65  //per-run JSD and FastMonitor
66  eorJsonDef_.setDefaultGroup("legend");
67  eorJsonDef_.addLegendItem("NEvents", "integer", DataPointDefinition::SUM);
70  eorJsonDef_.addLegendItem("LastLumi", "integer", DataPointDefinition::SUM);
71 
72  perRunEventCount_.setName("NEvents");
73  perRunFileCount_.setName("NFiles");
74  perRunLumiCount_.setName("NLumis");
75  perRunLastLumi_.setName("LastLumi");
76 
77  runMon_ = new FastMonitor(&eorJsonDef_, false);
82  runMon_->commit(nullptr);
83 }

References jsoncollector::DataPointDefinition::addLegendItem(), jsoncollector::FastMonitor::commit(), eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiLostEventCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, rawJsonDef_, jsoncollector::FastMonitor::registerGlobalMonitorable(), runMon_, jsoncollector::DataPointDefinition::setDefaultGroup(), jsoncollector::JsonMonitorable::setName(), and SUM.

◆ RawEventFileWriterForBU() [2/2]

RawEventFileWriterForBU::RawEventFileWriterForBU ( std::string const &  fileName)
explicit

Definition at line 85 of file RawEventFileWriterForBU.cc.

85 {}

◆ ~RawEventFileWriterForBU()

RawEventFileWriterForBU::~RawEventFileWriterForBU ( )

Definition at line 87 of file RawEventFileWriterForBU.cc.

87  {
88  delete fileMon_;
89  delete lumiMon_;
90  delete runMon_;
91 }

References fileMon_, lumiMon_, and runMon_.

Member Function Documentation

◆ adler32()

uint32 RawEventFileWriterForBU::adler32 ( ) const
inline

Definition at line 28 of file RawEventFileWriterForBU.h.

28 { return (adlerb_ << 16) | adlera_; }

References adlera_, and adlerb_.

◆ closefd()

bool RawEventFileWriterForBU::closefd ( )
inlineprivate

Definition at line 38 of file RawEventFileWriterForBU.h.

38  {
39  if (outfd_ >= 0) {
40  close(outfd_);
41  outfd_ = -1;
42  return true;
43  } else
44  return false;
45  }

References outfd_.

Referenced by endOfLS(), finishFileWrite(), and initialize().

◆ doOutputEvent() [1/2]

void RawEventFileWriterForBU::doOutputEvent ( boost::shared_array< unsigned char > &  msg)
inline

Definition at line 25 of file RawEventFileWriterForBU.h.

25 {};

◆ doOutputEvent() [2/2]

void RawEventFileWriterForBU::doOutputEvent ( FRDEventMsgView const &  msg)

Definition at line 93 of file RawEventFileWriterForBU.cc.

93  {
94  ssize_t retval = write(outfd_, (void*)msg.startAddress(), msg.size());
95 
96  if ((unsigned)retval != msg.size()) {
97  throw cms::Exception("RawEventFileWriterForBU", "doOutputEvent")
98  << "Error writing FED Raw Data event data to " << fileName_ << ". Possibly the output disk "
99  << "is full?" << std::endl;
100  }
101 
102  // throttle event output
103  usleep(microSleep_);
105  perFileSize_.value() += msg.size();
106 
107  // cms::Adler32((const char*) msg.startAddress(), msg.size(), adlera_, adlerb_);
108 }

References Exception, fileName_, microSleep_, mps_check::msg, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), and writeEcalDQMStatus::write.

◆ doOutputEventFragment()

void RawEventFileWriterForBU::doOutputEventFragment ( unsigned char *  dataPtr,
unsigned long  dataSize 
)

Definition at line 110 of file RawEventFileWriterForBU.cc.

110  {
111  throw cms::Exception("RawEventFileWriterForBU", "doOutputEventFragment") << "Unsupported output mode ";
112 
113  //cms::Adler32((const char*) dataPtr, dataSize, adlera_, adlerb_);
114 }

References Exception.

◆ endOfLS()

void RawEventFileWriterForBU::endOfLS ( int  ls)

Definition at line 260 of file RawEventFileWriterForBU.cc.

260  {
261  if (outfd_ != -1) {
263  closefd();
264  }
265  lumiMon_->snap(ls);
266 
267  std::ostringstream ostr;
268 
269  if (run_ == -1)
271 
272  ostr << destinationDir_ << "/" << runPrefix_ << "_ls" << std::setfill('0') << std::setw(4) << ls << "_EoLS"
273  << ".jsn";
274  //outfd_ = open(ostr.str().c_str(), O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR | S_IWGRP | S_IRGRP | S_IWOTH | S_IROTH);
275  //closefd();
276 
277  std::string path = ostr.str();
280 
283  perRunLumiCount_.value() += 1;
285 
286  perLumiEventCount_ = 0;
287  perLumiFileCount_ = 0;
289  perLumiSize_ = 0;
290  lumiClosed_ = ls;
291 }

References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), finishFileWrite(), eostools::ls(), lumiClosed_, lumiMon_, makeRunPrefix(), outfd_, jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, perRunEventCount_, perRunFileCount_, perRunLastLumi_, perRunLumiCount_, run_, runPrefix_, jsoncollector::FastMonitor::snap(), AlCaHLTBitMon_QueryRunRegistry::string, and jsoncollector::IntJ::value().

Referenced by stop().

◆ finishFileWrite()

void RawEventFileWriterForBU::finishFileWrite ( int  ls)
private

Definition at line 218 of file RawEventFileWriterForBU.cc.

218  {
219  if (frdFileVersion_ > 0) {
220  //rewind
221  lseek(outfd_, 0, SEEK_SET);
222  FRDFileHeader_v1 frdFileHeader(perFileEventCount_.value(), (uint32_t)ls, perFileSize_.value());
223  write(outfd_, (char*)&frdFileHeader, sizeof(FRDFileHeader_v1));
224  closefd();
225  //move raw file from open to run directory
226  rename(fileName_.c_str(), (destinationDir_ + fileName_.substr(fileName_.rfind("/"))).c_str());
227 
228  edm::LogInfo("RawEventFileWriterForBU")
229  << "Wrote RAW input file: " << fileName_ << " with perFileEventCount = " << perFileEventCount_.value()
230  << " and size " << perFileSize_.value();
231  } else {
232  closefd();
233  //move raw file from open to run directory
234  rename(fileName_.c_str(), (destinationDir_ + fileName_.substr(fileName_.rfind("/"))).c_str());
235  //create equivalent JSON file
236  //TODO:fix this to use DaqDirector convention and better extension replace
238  std::string path = source.replace_extension(".jsn").string();
239 
240  fileMon_->snap(ls);
243 
244  //move the json file from open
245  rename(path.c_str(), (destinationDir_ + path.substr(path.rfind("/"))).c_str());
246 
247  edm::LogInfo("RawEventFileWriterForBU")
248  << "Wrote JSON input file: " << path << " with perFileEventCount = " << perFileEventCount_.value()
249  << " and size " << perFileSize_.value();
250  }
251  //there is a small chance that script gets interrupted while this isn't consistent (non-atomic)
256  //update open lumi value when first file is completed
257  lumiOpen_ = ls;
258 }

References closefd(), destinationDir_, jsoncollector::FastMonitor::discardCollected(), fileMon_, fileName_, frdFileVersion_, eostools::ls(), lumiOpen_, outfd_, jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, perFileEventCount_, perFileSize_, perLumiEventCount_, perLumiFileCount_, perLumiSize_, perLumiTotalEventCount_, jsoncollector::FastMonitor::snap(), source, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::IntJ::value(), and writeEcalDQMStatus::write.

Referenced by endOfLS(), and initialize().

◆ initialize()

void RawEventFileWriterForBU::initialize ( std::string const &  destinationDir,
std::string const &  name,
int  ls 
)

Definition at line 116 of file RawEventFileWriterForBU.cc.

116  {
117  destinationDir_ = destinationDir;
118 
119  if (outfd_ != -1) {
121  closefd();
122  }
123 
124  fileName_ = name;
125 
126  if (!writtenJSDs_) {
127  writeJsds();
128  /* std::stringstream ss;
129  ss << destinationDir_ << "/jsd";
130  mkdir(ss.str().c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
131 
132  std::string rawJSDName = ss.str()+"/rawData.jsd";
133  std::string eolJSDName = ss.str()+"/EoLS.jsd";
134  std::string eorJSDName = ss.str()+"/EoR.jsd";
135 
136  fileMon_->setDefPath(rawJSDName);
137  lumiMon_->setDefPath(eolJSDName);
138  runMon_->setDefPath(eorJSDName);
139 
140  struct stat fstat;
141  if (stat (rawJSDName.c_str(), &fstat) != 0) {
142  std::string content;
143  JSONSerializer::serialize(&rawJsonDef_,content);
144  FileIO::writeStringToFile(rawJSDName, content);
145  }
146 
147  if (stat (eolJSDName.c_str(), &fstat) != 0) {
148  std::string content;
149  JSONSerializer::serialize(&eolJsonDef_,content);
150  FileIO::writeStringToFile(eolJSDName, content);
151  }
152 
153  if (stat (eorJSDName.c_str(), &fstat) != 0) {
154  std::string content;
155  JSONSerializer::serialize(&eorJsonDef_,content);
156  FileIO::writeStringToFile(eorJSDName, content);
157  }
158 */
159  writtenJSDs_ = true;
160  }
161 
162  outfd_ = open(fileName_.c_str(), O_WRONLY | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
163  edm::LogInfo("RawEventFileWriterForBU") << " opened " << fileName_;
164 
165  if (outfd_ < 0) { //attention here... it may happen that outfd_ is *not* set (e.g. missing initialize call...)
166  throw cms::Exception("RawEventFileWriterForBU", "initialize")
167  << "Error opening FED Raw Data event output file: " << name << ": " << strerror(errno) << "\n";
168  }
169 
171  perFileSize_.value() = 0;
172 
173  adlera_ = 1;
174  adlerb_ = 0;
175 
176  if (frdFileVersion_ > 0) {
177  assert(frdFileVersion_ == 1);
178  //reserve space for file header
179  ftruncate(outfd_, sizeof(FRDFileHeader_v1));
180  lseek(outfd_, sizeof(FRDFileHeader_v1), SEEK_SET);
181  perFileSize_.value() = sizeof(FRDFileHeader_v1);
182  }
183 }

References adlera_, adlerb_, cms::cuda::assert(), closefd(), destinationDir_, Exception, fileName_, finishFileWrite(), frdFileVersion_, eostools::ls(), Skims_PA_cff::name, outfd_, perFileEventCount_, perFileSize_, jsoncollector::IntJ::value(), writeJsds(), and writtenJSDs_.

◆ makeRunPrefix()

void RawEventFileWriterForBU::makeRunPrefix ( std::string const &  destinationDir)

Definition at line 308 of file RawEventFileWriterForBU.cc.

308  {
309  //dirty hack: extract run number from destination directory
310  std::string::size_type pos = destinationDir.find("run");
311  std::string run = destinationDir.substr(pos + 3);
312  run_ = atoi(run.c_str());
313  std::stringstream ss;
314  ss << "run" << std::setfill('0') << std::setw(6) << run_;
315  runPrefix_ = ss.str();
316 }

References writedatasetfile::run, run_, runPrefix_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by endOfLS(), and stop().

◆ sharedMode()

bool RawEventFileWriterForBU::sharedMode ( ) const
inline

Definition at line 34 of file RawEventFileWriterForBU.h.

34 { return false; }

◆ start()

void RawEventFileWriterForBU::start ( )
inline

◆ stop()

void RawEventFileWriterForBU::stop ( )

Definition at line 293 of file RawEventFileWriterForBU.cc.

293  {
294  if (lumiOpen_ > lumiClosed_)
296  edm::LogInfo("RawEventFileWriterForBU") << "Writing EOR file!";
297  if (!destinationDir_.empty()) {
298  // create EoR file
299  if (run_ == -1)
301  std::string path = destinationDir_ + "/" + runPrefix_ + "_ls0000_EoR.jsn";
302  runMon_->snap(0);
304  }
305 }

References destinationDir_, endOfLS(), lumiClosed_, lumiOpen_, makeRunPrefix(), jsoncollector::FastMonitor::outputFullJSON(), castor_dqm_sourceclient_file_cfg::path, run_, runMon_, runPrefix_, jsoncollector::FastMonitor::snap(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ writeJsds()

void RawEventFileWriterForBU::writeJsds ( )
private

Definition at line 185 of file RawEventFileWriterForBU.cc.

185  {
186  std::stringstream ss;
187  ss << destinationDir_ << "/jsd";
188  mkdir(ss.str().c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
189 
190  std::string rawJSDName = ss.str() + "/rawData.jsd";
191  std::string eolJSDName = ss.str() + "/EoLS.jsd";
192  std::string eorJSDName = ss.str() + "/EoR.jsd";
193 
194  fileMon_->setDefPath(rawJSDName);
195  lumiMon_->setDefPath(eolJSDName);
196  runMon_->setDefPath(eorJSDName);
197 
198  struct stat fstat;
199  if (stat(rawJSDName.c_str(), &fstat) != 0) {
202  FileIO::writeStringToFile(rawJSDName, content);
203  }
204 
205  if (stat(eolJSDName.c_str(), &fstat) != 0) {
208  FileIO::writeStringToFile(eolJSDName, content);
209  }
210 
211  if (stat(eorJSDName.c_str(), &fstat) != 0) {
214  FileIO::writeStringToFile(eorJSDName, content);
215  }
216 }

References Skims_PA_cff::content, destinationDir_, eolJsonDef_, eorJsonDef_, fileMon_, lumiMon_, eostools::mkdir(), rawJsonDef_, runMon_, cond::serialize(), jsoncollector::FastMonitor::setDefPath(), contentValuesCheck::ss, hgcalPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by initialize().

Member Data Documentation

◆ adlera_

uint32 RawEventFileWriterForBU::adlera_
private

Definition at line 83 of file RawEventFileWriterForBU.h.

Referenced by adler32(), and initialize().

◆ adlerb_

uint32 RawEventFileWriterForBU::adlerb_
private

Definition at line 84 of file RawEventFileWriterForBU.h.

Referenced by adler32(), and initialize().

◆ destinationDir_

std::string RawEventFileWriterForBU::destinationDir_
private

Definition at line 78 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), finishFileWrite(), initialize(), stop(), and writeJsds().

◆ eolJsonDef_

jsoncollector::DataPointDefinition RawEventFileWriterForBU::eolJsonDef_
private

Definition at line 72 of file RawEventFileWriterForBU.h.

Referenced by RawEventFileWriterForBU(), and writeJsds().

◆ eorJsonDef_

jsoncollector::DataPointDefinition RawEventFileWriterForBU::eorJsonDef_
private

Definition at line 73 of file RawEventFileWriterForBU.h.

Referenced by RawEventFileWriterForBU(), and writeJsds().

◆ fileMon_

jsoncollector::FastMonitor* RawEventFileWriterForBU::fileMon_ = nullptr
private

◆ fileName_

std::string RawEventFileWriterForBU::fileName_
private

Definition at line 77 of file RawEventFileWriterForBU.h.

Referenced by doOutputEvent(), finishFileWrite(), and initialize().

◆ frdFileVersion_

unsigned int RawEventFileWriterForBU::frdFileVersion_
private

Definition at line 81 of file RawEventFileWriterForBU.h.

Referenced by finishFileWrite(), and initialize().

◆ lumiClosed_

unsigned int RawEventFileWriterForBU::lumiClosed_ = 0
private

Definition at line 87 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), and stop().

◆ lumiMon_

jsoncollector::FastMonitor* RawEventFileWriterForBU::lumiMon_ = nullptr
private

◆ lumiOpen_

unsigned int RawEventFileWriterForBU::lumiOpen_ = 0
private

Definition at line 86 of file RawEventFileWriterForBU.h.

Referenced by finishFileWrite(), and stop().

◆ microSleep_

int RawEventFileWriterForBU::microSleep_
private

Definition at line 80 of file RawEventFileWriterForBU.h.

Referenced by doOutputEvent().

◆ ost_

std::unique_ptr<std::ofstream> RawEventFileWriterForBU::ost_
private

Definition at line 76 of file RawEventFileWriterForBU.h.

◆ outfd_

int RawEventFileWriterForBU::outfd_ = -1
private

◆ perFileEventCount_

jsoncollector::IntJ RawEventFileWriterForBU::perFileEventCount_
private

◆ perFileSize_

jsoncollector::IntJ RawEventFileWriterForBU::perFileSize_
private

◆ perLumiEventCount_

jsoncollector::IntJ RawEventFileWriterForBU::perLumiEventCount_
private

Definition at line 58 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().

◆ perLumiFileCount_

jsoncollector::IntJ RawEventFileWriterForBU::perLumiFileCount_
private

Definition at line 59 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().

◆ perLumiLostEventCount_

jsoncollector::IntJ RawEventFileWriterForBU::perLumiLostEventCount_
private

Definition at line 61 of file RawEventFileWriterForBU.h.

Referenced by RawEventFileWriterForBU().

◆ perLumiSize_

jsoncollector::IntJ RawEventFileWriterForBU::perLumiSize_
private

Definition at line 62 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().

◆ perLumiTotalEventCount_

jsoncollector::IntJ RawEventFileWriterForBU::perLumiTotalEventCount_
private

Definition at line 60 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), finishFileWrite(), and RawEventFileWriterForBU().

◆ perRunEventCount_

jsoncollector::IntJ RawEventFileWriterForBU::perRunEventCount_
private

Definition at line 53 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), and RawEventFileWriterForBU().

◆ perRunFileCount_

jsoncollector::IntJ RawEventFileWriterForBU::perRunFileCount_
private

Definition at line 54 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), and RawEventFileWriterForBU().

◆ perRunLastLumi_

jsoncollector::IntJ RawEventFileWriterForBU::perRunLastLumi_
private

Definition at line 56 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), and RawEventFileWriterForBU().

◆ perRunLumiCount_

jsoncollector::IntJ RawEventFileWriterForBU::perRunLumiCount_
private

Definition at line 55 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), and RawEventFileWriterForBU().

◆ rawJsonDef_

jsoncollector::DataPointDefinition RawEventFileWriterForBU::rawJsonDef_
private

Definition at line 71 of file RawEventFileWriterForBU.h.

Referenced by RawEventFileWriterForBU(), and writeJsds().

◆ run_

int RawEventFileWriterForBU::run_ = -1
private

Definition at line 50 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), makeRunPrefix(), and stop().

◆ runMon_

jsoncollector::FastMonitor* RawEventFileWriterForBU::runMon_ = nullptr
private

◆ runPrefix_

std::string RawEventFileWriterForBU::runPrefix_
private

Definition at line 51 of file RawEventFileWriterForBU.h.

Referenced by endOfLS(), makeRunPrefix(), and stop().

◆ writtenJSDs_

bool RawEventFileWriterForBU::writtenJSDs_ = false
private

Definition at line 74 of file RawEventFileWriterForBU.h.

Referenced by initialize().

eostools.ls
def ls(path, rec=False)
Definition: eostools.py:349
SUM
#define SUM(A, B)
Definition: Simplify_begin.h:52
RawEventFileWriterForBU::writtenJSDs_
bool writtenJSDs_
Definition: RawEventFileWriterForBU.h:74
jsoncollector::DataPointDefinition::addLegendItem
void addLegendItem(std::string const &name, std::string const &type, std::string const &operation)
Definition: DataPointDefinition.cc:93
RawEventFileWriterForBU::runPrefix_
std::string runPrefix_
Definition: RawEventFileWriterForBU.h:51
RawEventFileWriterForBU::perFileEventCount_
jsoncollector::IntJ perFileEventCount_
Definition: RawEventFileWriterForBU.h:64
RawEventFileWriterForBU::eolJsonDef_
jsoncollector::DataPointDefinition eolJsonDef_
Definition: RawEventFileWriterForBU.h:72
jsoncollector::DataPointDefinition::setDefaultGroup
void setDefaultGroup(std::string const &group)
Definition: DataPointDefinition.h:54
RawEventFileWriterForBU::perRunLastLumi_
jsoncollector::IntJ perRunLastLumi_
Definition: RawEventFileWriterForBU.h:56
RawEventFileWriterForBU::adlera_
uint32 adlera_
Definition: RawEventFileWriterForBU.h:83
RawEventFileWriterForBU::microSleep_
int microSleep_
Definition: RawEventFileWriterForBU.h:80
RawEventFileWriterForBU::eorJsonDef_
jsoncollector::DataPointDefinition eorJsonDef_
Definition: RawEventFileWriterForBU.h:73
RawEventFileWriterForBU::fileName_
std::string fileName_
Definition: RawEventFileWriterForBU.h:77
RawEventFileWriterForBU::perLumiLostEventCount_
jsoncollector::IntJ perLumiLostEventCount_
Definition: RawEventFileWriterForBU.h:61
jsoncollector::FastMonitor::commit
void commit(std::vector< unsigned int > *streamLumisPtr)
Definition: FastMonitor.cc:115
pos
Definition: PixelAliasList.h:18
edm::LogInfo
Definition: MessageLogger.h:254
RawEventFileWriterForBU::perRunLumiCount_
jsoncollector::IntJ perRunLumiCount_
Definition: RawEventFileWriterForBU.h:55
cms::cuda::assert
assert(be >=bs)
RawEventFileWriterForBU::perLumiFileCount_
jsoncollector::IntJ perLumiFileCount_
Definition: RawEventFileWriterForBU.h:59
mps_check.msg
tuple msg
Definition: mps_check.py:285
RawEventFileWriterForBU::perRunEventCount_
jsoncollector::IntJ perRunEventCount_
Definition: RawEventFileWriterForBU.h:53
rename
Definition: rename.py:1
jsoncollector::FastMonitor::registerGlobalMonitorable
void registerGlobalMonitorable(JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
Definition: FastMonitor.cc:66
RawEventFileWriterForBU::lumiOpen_
unsigned int lumiOpen_
Definition: RawEventFileWriterForBU.h:86
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
jsoncollector::JsonMonitorable::setName
virtual void setName(std::string name)
Definition: JsonMonitorable.h:38
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
RawEventFileWriterForBU::adlerb_
uint32 adlerb_
Definition: RawEventFileWriterForBU.h:84
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1111
jsoncollector::FastMonitor::setDefPath
void setDefPath(std::string const &dpath)
Definition: FastMonitor.h:32
RawEventFileWriterForBU::perLumiEventCount_
jsoncollector::IntJ perLumiEventCount_
Definition: RawEventFileWriterForBU.h:58
source
static const std::string source
Definition: EdmProvDump.cc:47
eostools.mkdir
def mkdir(path)
Definition: eostools.py:251
RawEventFileWriterForBU::perLumiSize_
jsoncollector::IntJ perLumiSize_
Definition: RawEventFileWriterForBU.h:62
RawEventFileWriterForBU::frdFileVersion_
unsigned int frdFileVersion_
Definition: RawEventFileWriterForBU.h:81
RawEventFileWriterForBU::lumiClosed_
unsigned int lumiClosed_
Definition: RawEventFileWriterForBU.h:87
RawEventFileWriterForBU::runMon_
jsoncollector::FastMonitor * runMon_
Definition: RawEventFileWriterForBU.h:69
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RawEventFileWriterForBU::closefd
bool closefd()
Definition: RawEventFileWriterForBU.h:38
RawEventFileWriterForBU::perRunFileCount_
jsoncollector::IntJ perRunFileCount_
Definition: RawEventFileWriterForBU.h:54
RawEventFileWriterForBU::writeJsds
void writeJsds()
Definition: RawEventFileWriterForBU.cc:185
Skims_PA_cff.content
content
Definition: Skims_PA_cff.py:19
RawEventFileWriterForBU::finishFileWrite
void finishFileWrite(int ls)
Definition: RawEventFileWriterForBU.cc:218
RawEventFileWriterForBU::outfd_
int outfd_
Definition: RawEventFileWriterForBU.h:48
RawEventFileWriterForBU::rawJsonDef_
jsoncollector::DataPointDefinition rawJsonDef_
Definition: RawEventFileWriterForBU.h:71
jsoncollector::FastMonitor
Definition: FastMonitor.h:19
jsoncollector::IntJ::value
long & value()
Definition: JsonMonitorable.h:88
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48
RawEventFileWriterForBU::run_
int run_
Definition: RawEventFileWriterForBU.h:50
FRDFileHeader_v1
Definition: FRDFileHeader.h:22
RawEventFileWriterForBU::perLumiTotalEventCount_
jsoncollector::IntJ perLumiTotalEventCount_
Definition: RawEventFileWriterForBU.h:60
RawEventFileWriterForBU::perFileSize_
jsoncollector::IntJ perFileSize_
Definition: RawEventFileWriterForBU.h:65
jsoncollector::FastMonitor::outputFullJSON
bool outputFullJSON(std::string const &path, unsigned int lumi)
Definition: FastMonitor.cc:264
writedatasetfile.run
run
Definition: writedatasetfile.py:27
Exception
Definition: hltDiff.cc:246
RawEventFileWriterForBU::destinationDir_
std::string destinationDir_
Definition: RawEventFileWriterForBU.h:78
cond::serialize
std::pair< Binary, Binary > serialize(const T &payload)
Definition: Serialization.h:66
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
jsoncollector::FastMonitor::snap
void snap(unsigned int ls)
Definition: FastMonitor.cc:189
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
jsoncollector::FastMonitor::discardCollected
void discardCollected(unsigned int forLumi)
Definition: FastMonitor.cc:280
RawEventFileWriterForBU::makeRunPrefix
void makeRunPrefix(std::string const &destinationDir)
Definition: RawEventFileWriterForBU.cc:308
RawEventFileWriterForBU::fileMon_
jsoncollector::FastMonitor * fileMon_
Definition: RawEventFileWriterForBU.h:67
RawEventFileWriterForBU::endOfLS
void endOfLS(int ls)
Definition: RawEventFileWriterForBU.cc:260
RawEventFileWriterForBU::lumiMon_
jsoncollector::FastMonitor * lumiMon_
Definition: RawEventFileWriterForBU.h:68