CMS 3D CMS Logo

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< DQMMonitoringServicemon_
 
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 50 of file DQMFileIterator.h.

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

Constructor & Destructor Documentation

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

Definition at line 74 of file DQMFileIterator.cc.

References datafnPosition_, delayMillis_, flagScanOnce_, forceFileCheckTimeoutMillis_, edm::ParameterSet::getUntrackedParameter(), nextLumiTimeoutMillis_, reset(), runInputDir_, runNumber_, streamLabel_, and AlCaHLTBitMon_QueryRunRegistry::string.

74  : state_(EOR) {
75  runNumber_ = pset.getUntrackedParameter<unsigned int>("runNumber");
76  datafnPosition_ = pset.getUntrackedParameter<unsigned int>("datafnPosition");
77  runInputDir_ = pset.getUntrackedParameter<std::string>("runInputDir");
78  streamLabel_ = pset.getUntrackedParameter<std::string>("streamLabel");
79  delayMillis_ = pset.getUntrackedParameter<uint32_t>("delayMillis");
80  nextLumiTimeoutMillis_ = pset.getUntrackedParameter<int32_t>("nextLumiTimeoutMillis");
81 
82  // scan one mode
83  flagScanOnce_ = pset.getUntrackedParameter<bool>("scanOnce");
84 
86  reset();
87  }
dqmservices::DQMFileIterator::~DQMFileIterator ( )

Definition at line 89 of file DQMFileIterator.cc.

89 {}

Member Function Documentation

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

Definition at line 147 of file DQMFileIterator.cc.

References common_cff::doc, lastLumiLoad_, BXlumiParameters_cfi::lumi, lumiSeen_, mon_, monUpdateLumi(), nextLumiNumber_, fileCollector::now, PixelMapPlotter::reason, and str.

Referenced by open(), dqmservices::DQMStreamerReader::reset_(), and update_state().

147  {
148  using boost::str;
149  using boost::property_tree::ptree;
150 
151  unsigned int currentLumi = nextLumiNumber_;
152 
155 
156  auto iter = lumiSeen_.lower_bound(currentLumi);
157 
158  while ((iter != lumiSeen_.end()) && ((iter->first) < nextLumiNumber_)) {
159  iter->second.state = reason;
160  monUpdateLumi(iter->second);
161 
162  ++iter;
163  }
164 
165  if (mon_.isAvailable()) {
166  // report the successful lumi file open
167  ptree doc;
168  doc.put("next_lumi", nextLumiNumber_);
169  mon_->outputUpdate(doc);
170  }
171  }
edm::Service< DQMMonitoringService > mon_
std::map< unsigned int, LumiEntry > lumiSeen_
std::chrono::high_resolution_clock::time_point lastLumiLoad_
void monUpdateLumi(const LumiEntry &lumi)
#define str(s)
void dqmservices::DQMFileIterator::collect ( bool  ignoreTimers)
private

Definition at line 195 of file DQMFileIterator.cc.

References KineDebug3::count(), datafnPosition_, MillePedeFileConverter_cfg::e, eor_, cppFunctionSkipper::exception, corrVsCorr::filename, filesSeen_, flagScanOnce_, personalPlayback::fn, forceFileCheckTimeoutMillis_, label, dqmservices::DQMFileIterator::LumiEntry::load_json(), dqmservices::DQMFileIterator::EorEntry::loaded, logFileAction(), lumiSeen_, monUpdateLumi(), mps_check::msg, mtimeHash(), dqmservices::DQMFileIterator::EorEntry::n_lumi, fileCollector::now, or, mps_fire::result, writedatasetfile::run, runNumber_, runPath_, runPathLastCollect_, runPathMTime_, streamLabel_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by reset(), and update_state().

195  {
196  // search filesystem to find available lumi section files
197  // or the end of run files
198 
200  auto last_ms = std::chrono::duration_cast<std::chrono::milliseconds>(now - runPathLastCollect_).count();
201 
202  // don't refresh if it's too soon
203  if ((!ignoreTimers) && (last_ms >= 0) && (last_ms < 100)) {
204  return;
205  }
206 
207  // check if directory changed
208  std::time_t mtime_now = mtimeHash();
209 
210  if ((!ignoreTimers) && (last_ms < forceFileCheckTimeoutMillis_) && (mtime_now == runPathMTime_)) {
211  // logFileAction("Directory hasn't changed.");
212  return;
213  } else {
214  // logFileAction("Directory changed, updating.");
215  }
216 
217  runPathMTime_ = mtime_now;
219 
220  using boost::filesystem::directory_entry;
221  using boost::filesystem::directory_iterator;
222 
223  std::string fn_eor;
224 
225  for (auto runPath : runPath_) {
226  if (!boost::filesystem::exists(runPath)) {
227  logFileAction("Directory does not exist: ", runPath);
228 
229  continue;
230  }
231 
232  directory_iterator dend;
233  for (directory_iterator di(runPath); di != dend; ++di) {
234  const boost::regex fn_re("run(\\d+)_ls(\\d+)_([a-zA-Z0-9]+)(_.*)?\\.jsn");
235 
236  const std::string filename = di->path().filename().string();
237  const std::string fn = di->path().string();
238 
239  if (filesSeen_.find(filename) != filesSeen_.end()) {
240  continue;
241  }
242 
243  boost::smatch result;
244  if (boost::regex_match(filename, result, fn_re)) {
245  unsigned int run = std::stoi(result[1]);
246  unsigned int lumi = std::stoi(result[2]);
247  std::string label = result[3];
248 
249  filesSeen_.insert(filename);
250 
251  if (run != runNumber_)
252  continue;
253 
254  // check if this is EoR
255  // for various reasons we have to load it after all other files
256  if ((lumi == 0) && (label == "EoR") && (!eor_.loaded)) {
257  fn_eor = fn;
258  continue;
259  }
260 
261  // check if lumi is loaded
262  if (lumiSeen_.find(lumi) != lumiSeen_.end()) {
263  continue; // already loaded
264  }
265 
266  // check if this belongs to us
267  if (label != streamLabel_) {
268  std::string msg("Found and skipped json file (stream label mismatch, ");
269  msg += label + " [files] != " + streamLabel_ + " [config]";
270  msg += "): ";
271  logFileAction(msg, fn);
272  continue;
273  }
274 
275  try {
276  LumiEntry lumi_jsn = LumiEntry::load_json(runPath, fn, lumi, datafnPosition_);
277  lumiSeen_.emplace(lumi, lumi_jsn);
278  logFileAction("Found and loaded json file: ", fn);
279 
280  monUpdateLumi(lumi_jsn);
281  } catch (const std::exception& e) {
282  // don't reset the mtime, keep it waiting
283  filesSeen_.erase(filename);
284 
285  std::string msg("Found, tried to load the json, but failed (");
286  msg += e.what();
287  msg += "): ";
288  logFileAction(msg, fn);
289  }
290  }
291  }
292  }
293 
294  if ((!fn_eor.empty()) or flagScanOnce_) {
295  if (!fn_eor.empty()) {
296  logFileAction("EoR file found: ", fn_eor);
297  }
298 
299  // @TODO load EoR files correctly
300  // eor_ = EorEntry::load_json(fn_eor);
301  // logFileAction("Loaded eor file: ", fn_eor);
302 
303  // for now , set n_lumi to the highest _found_ lumi
304  eor_.loaded = true;
305 
306  if (lumiSeen_.empty()) {
307  eor_.n_lumi = 0;
308  } else {
309  eor_.n_lumi = lumiSeen_.rbegin()->first;
310  }
311  }
312  }
std::map< unsigned int, LumiEntry > lumiSeen_
static LumiEntry load_json(const std::string &run_path, const std::string &filename, int lumiNumber, int datafn_position)
char const * label
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
std::vector< std::string > runPath_
void logFileAction(const std::string &msg, const std::string &fileName="") const
tuple msg
Definition: mps_check.py:285
void monUpdateLumi(const LumiEntry &lumi)
std::chrono::high_resolution_clock::time_point runPathLastCollect_
std::unordered_set< std::string > filesSeen_
std::time_t mtimeHash() const
void dqmservices::DQMFileIterator::delay ( )

Definition at line 388 of file DQMFileIterator.cc.

References delayMillis_, and mon_.

Referenced by dqmservices::DQMProtobufReader::getNextItemType(), dqmservices::DQMStreamerReader::prepareNextEvent(), and dqmservices::DQMStreamerReader::reset_().

388  {
389  if (mon_.isAvailable())
390  mon_->keepAlive();
391 
392  usleep(delayMillis_ * 1000);
393  }
edm::Service< DQMMonitoringService > mon_
void dqmservices::DQMFileIterator::fillDescription ( edm::ParameterSetDescription d)
static

Definition at line 395 of file DQMFileIterator.cc.

References edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmservices::DQMProtobufReader::fillDescriptions(), and dqmservices::DQMStreamerReader::fillDescriptions().

395  {
396  desc.addUntracked<unsigned int>("runNumber")->setComment("Run number passed via configuration file.");
397 
398  desc.addUntracked<unsigned int>("datafnPosition", 3)
399  ->setComment(
400  "Data filename position in the positional arguments array 'data' in "
401  "json file.");
402 
403  desc.addUntracked<std::string>("streamLabel")->setComment("Stream label used in json discovery.");
404 
405  desc.addUntracked<uint32_t>("delayMillis")->setComment("Number of milliseconds to wait between file checks.");
406 
407  desc.addUntracked<int32_t>("nextLumiTimeoutMillis", -1)
408  ->setComment(
409  "Number of milliseconds to wait before switching to the next lumi "
410  "section if the current is missing, -1 to disable.");
411 
412  desc.addUntracked<bool>("scanOnce", false)
413  ->setComment(
414  "Don't repeat file scans: use what was found during the initial scan. "
415  "EOR file is ignored and the state is set to 'past end of run'.");
416 
417  desc.addUntracked<std::string>("runInputDir")->setComment("Directory where the DQM files will appear.");
418  }
void dqmservices::DQMFileIterator::initialise ( int  run,
const std::string &  ,
const std::string &   
)
unsigned int dqmservices::DQMFileIterator::lastLumiFound ( )

Definition at line 139 of file DQMFileIterator.cc.

References lumiSeen_.

Referenced by dqmservices::DQMStreamerReader::reset_().

139  {
140  if (!lumiSeen_.empty()) {
141  return lumiSeen_.rbegin()->first;
142  }
143 
144  return 1;
145  }
std::map< unsigned int, LumiEntry > lumiSeen_
void dqmservices::DQMFileIterator::logFileAction ( const std::string &  msg,
const std::string &  fileName = "" 
) const
void dqmservices::DQMFileIterator::logLumiState ( const LumiEntry lumi,
const std::string &  msg 
)

Definition at line 378 of file DQMFileIterator.cc.

References dqmservices::DQMFileIterator::LumiEntry::file_ls, logFileAction(), lumiSeen_, monUpdateLumi(), and mps_check::msg.

Referenced by dqmservices::DQMProtobufReader::beginLuminosityBlock(), dqmservices::DQMStreamerReader::closeFileImp_(), and dqmservices::DQMStreamerReader::openNextFileImp_().

378  {
379  if (lumiSeen_.find(lumi.file_ls) != lumiSeen_.end()) {
380  lumiSeen_[lumi.file_ls].state = msg;
381 
382  monUpdateLumi(lumiSeen_[lumi.file_ls]);
383  } else {
384  logFileAction("Internal error: referenced lumi is not the map.");
385  }
386  }
std::map< unsigned int, LumiEntry > lumiSeen_
void logFileAction(const std::string &msg, const std::string &fileName="") const
tuple msg
Definition: mps_check.py:285
void monUpdateLumi(const LumiEntry &lumi)
bool dqmservices::DQMFileIterator::lumiReady ( )

Definition at line 129 of file DQMFileIterator.cc.

References lumiSeen_, and nextLumiNumber_.

Referenced by dqmservices::DQMProtobufReader::getNextItemType(), and dqmservices::DQMStreamerReader::prepareNextFile().

129  {
130  if (lumiSeen_.find(nextLumiNumber_) != lumiSeen_.end()) {
131  return true;
132  }
133 
134  return false;
135  }
std::map< unsigned int, LumiEntry > lumiSeen_
void dqmservices::DQMFileIterator::monUpdateLumi ( const LumiEntry lumi)
private

Definition at line 173 of file DQMFileIterator.cc.

References common_cff::doc, dqmservices::DQMFileIterator::LumiEntry::file_ls, dqm-mbProfile::format, mon_, dqmservices::DQMFileIterator::LumiEntry::state, and str.

Referenced by advanceToLumi(), collect(), and logLumiState().

173  {
174  if (!mon_.isAvailable())
175  return;
176 
177  ptree doc;
178  doc.put(str(boost::format("extra.lumi_seen.lumi%06d") % lumi.file_ls), lumi.state);
179  mon_->outputUpdate(doc);
180  }
edm::Service< DQMMonitoringService > mon_
#define str(s)
std::time_t dqmservices::DQMFileIterator::mtimeHash ( ) const
private

Definition at line 182 of file DQMFileIterator.cc.

References castor_dqm_sourceclient_file_cfg::path, and runPath_.

Referenced by collect().

182  {
183  std::time_t mtime_now = 0;
184 
185  for (auto path : runPath_) {
186  if (!boost::filesystem::exists(path))
187  continue;
188 
189  mtime_now = mtime_now ^ boost::filesystem::last_write_time(path);
190  }
191 
192  return mtime_now;
193  }
std::vector< std::string > runPath_
DQMFileIterator::LumiEntry dqmservices::DQMFileIterator::open ( )
void dqmservices::DQMFileIterator::pop ( )
void dqmservices::DQMFileIterator::reset ( void  )

Definition at line 91 of file DQMFileIterator.cc.

References collect(), common_cff::doc, eor_, filesSeen_, dqm-mbProfile::format, lastLumiLoad_, dqmservices::DQMFileIterator::EorEntry::loaded, lumiSeen_, mon_, nextLumiNumber_, fileCollector::now, runInputDir_, runNumber_, runPath_, cms::dd::split(), state_, str, unpackBuffers-CaloStage2::token, and update_state().

Referenced by DQMFileIterator().

91  {
92  runPath_.clear();
93 
94  std::vector<std::string> tokens;
95  boost::split(tokens, runInputDir_, boost::is_any_of(":"));
96 
97  for (auto token : tokens) {
98  runPath_.push_back(boost::str(boost::format("%s/run%06d") % token % runNumber_));
99  }
100 
101  eor_.loaded = false;
102  state_ = State::OPEN;
103  nextLumiNumber_ = 1;
104  lumiSeen_.clear();
105  filesSeen_.clear();
106 
108 
109  collect(true);
110  update_state();
111 
112  if (mon_.isAvailable()) {
113  ptree doc;
114  doc.put("run", runNumber_);
115  doc.put("next_lumi", nextLumiNumber_);
116  doc.put("fi_state", std::to_string(state_));
117  mon_->outputUpdate(doc);
118  }
119  }
std::vector< std::string_view > split(std::string_view, const char *)
edm::Service< DQMMonitoringService > mon_
std::map< unsigned int, LumiEntry > lumiSeen_
std::vector< std::string > runPath_
std::chrono::high_resolution_clock::time_point lastLumiLoad_
std::unordered_set< std::string > filesSeen_
#define str(s)
void collect(bool ignoreTimers)
unsigned int dqmservices::DQMFileIterator::runNumber ( )
DQMFileIterator::State dqmservices::DQMFileIterator::state ( )
void dqmservices::DQMFileIterator::update_state ( )

Definition at line 314 of file DQMFileIterator.cc.

References advanceToLumi(), collect(), KineDebug3::count(), common_cff::doc, eor_, flagScanOnce_, lastLumiLoad_, dqmservices::DQMFileIterator::EorEntry::loaded, logFileAction(), lumiSeen_, mon_, mps_check::msg, dqmservices::DQMFileIterator::EorEntry::n_lumi, nextLumiNumber_, nextLumiTimeoutMillis_, fileCollector::now, state_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by dqmservices::DQMProtobufReader::getNextItemType(), dqmservices::DQMStreamerReader::prepareNextFile(), reset(), and dqmservices::DQMStreamerReader::reset_().

314  {
315  using std::chrono::duration_cast;
316  using std::chrono::high_resolution_clock;
317  using std::chrono::milliseconds;
318 
319  State old_state = state_;
320 
321  // in scanOnce mode we don't do repeated scans
322  // whatever found at reset() is be used
323  if (!flagScanOnce_) {
324  collect(false);
325  }
326 
327  if ((state_ == State::OPEN) && (eor_.loaded)) {
328  state_ = State::EOR_CLOSING;
329  }
330 
331  // special case for missing lumi files
332  // skip to the next available, but after the timeout
333  if ((state_ != State::EOR) && (nextLumiTimeoutMillis_ >= 0)) {
334  auto iter = lumiSeen_.lower_bound(nextLumiNumber_);
335  if ((iter != lumiSeen_.end()) && iter->first != nextLumiNumber_) {
336  auto elapsed = high_resolution_clock::now() - lastLumiLoad_;
337  auto elapsed_ms = duration_cast<milliseconds>(elapsed).count();
338 
339  if (elapsed_ms >= nextLumiTimeoutMillis_) {
340  std::string msg("Timeout reached, skipping lumisection(s) ");
341  msg += std::to_string(nextLumiNumber_) + " .. " + std::to_string(iter->first - 1);
342  msg += ", nextLumiNumber_ is now " + std::to_string(iter->first);
344 
345  advanceToLumi(iter->first, "skipped: timeout");
346  }
347  }
348  }
349 
350  if (state_ == State::EOR_CLOSING) {
351  // check if we parsed all lumis
352  // n_lumi is both last lumi and the number of lumi
353  // since lumis are indexed from 1
354 
355  // after all lumi have been pop()'ed
356  // current lumi will become larger than the last lumi
357  if (nextLumiNumber_ > eor_.n_lumi) {
358  state_ = State::EOR;
359  }
360  }
361 
362  if (state_ != old_state) {
363  logFileAction("Streamer state changed: ", std::to_string(old_state) + "->" + std::to_string(state_));
364 
365  if (mon_) {
366  ptree doc;
367  doc.put("fi_state", std::to_string(state_));
368  mon_->outputUpdate(doc);
369  }
370  }
371  }
edm::Service< DQMMonitoringService > mon_
std::map< unsigned int, LumiEntry > lumiSeen_
void logFileAction(const std::string &msg, const std::string &fileName="") const
std::chrono::high_resolution_clock::time_point lastLumiLoad_
tuple msg
Definition: mps_check.py:285
void advanceToLumi(unsigned int lumi, std::string reason)
void collect(bool ignoreTimers)

Member Data Documentation

unsigned int dqmservices::DQMFileIterator::datafnPosition_
private

Definition at line 102 of file DQMFileIterator.h.

Referenced by collect(), and DQMFileIterator().

unsigned long dqmservices::DQMFileIterator::delayMillis_
private

Definition at line 96 of file DQMFileIterator.h.

Referenced by delay(), and DQMFileIterator().

EorEntry dqmservices::DQMFileIterator::eor_
private

Definition at line 105 of file DQMFileIterator.h.

Referenced by collect(), reset(), and update_state().

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

Definition at line 110 of file DQMFileIterator.h.

Referenced by collect(), and reset().

bool dqmservices::DQMFileIterator::flagScanOnce_
private

Definition at line 99 of file DQMFileIterator.h.

Referenced by collect(), DQMFileIterator(), and update_state().

long dqmservices::DQMFileIterator::forceFileCheckTimeoutMillis_
private

Definition at line 98 of file DQMFileIterator.h.

Referenced by collect(), and DQMFileIterator().

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

Definition at line 118 of file DQMFileIterator.h.

Referenced by advanceToLumi(), reset(), and update_state().

std::map<unsigned int, LumiEntry> dqmservices::DQMFileIterator::lumiSeen_
private
edm::Service<DQMMonitoringService> dqmservices::DQMFileIterator::mon_
private

Definition at line 125 of file DQMFileIterator.h.

Referenced by advanceToLumi(), delay(), monUpdateLumi(), reset(), and update_state().

unsigned int dqmservices::DQMFileIterator::nextLumiNumber_
private

Definition at line 108 of file DQMFileIterator.h.

Referenced by advanceToLumi(), lumiReady(), open(), reset(), and update_state().

long dqmservices::DQMFileIterator::nextLumiTimeoutMillis_
private

Definition at line 97 of file DQMFileIterator.h.

Referenced by DQMFileIterator(), and update_state().

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

Definition at line 94 of file DQMFileIterator.h.

Referenced by DQMFileIterator(), and reset().

unsigned int dqmservices::DQMFileIterator::runNumber_
private

Definition at line 93 of file DQMFileIterator.h.

Referenced by collect(), DQMFileIterator(), reset(), and runNumber().

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

Definition at line 103 of file DQMFileIterator.h.

Referenced by collect(), mtimeHash(), and reset().

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

Definition at line 115 of file DQMFileIterator.h.

Referenced by collect().

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

Definition at line 114 of file DQMFileIterator.h.

Referenced by collect().

State dqmservices::DQMFileIterator::state_
private

Definition at line 106 of file DQMFileIterator.h.

Referenced by reset(), state(), and update_state().

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

Definition at line 95 of file DQMFileIterator.h.

Referenced by collect(), and DQMFileIterator().