CMS 3D CMS Logo

DQMRootOutputModule.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FwkIO
4 // Class : DQMRootOutputModule
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Fri Apr 29 13:26:29 CDT 2011
11 //
12 
13 // system include files
14 #include <algorithm>
15 #include <iostream>
16 #include <memory>
17 
18 #include <map>
19 #include <memory>
20 #include <string>
21 #include <vector>
22 
23 #include "TFile.h"
24 #include "TTree.h"
25 #include "TString.h"
26 #include "TH1.h"
27 #include "TH2.h"
28 #include "TProfile.h"
29 
30 #include "oneapi/tbb/task_arena.h"
31 
32 // user include files
42 
47 
49 
50 #include "format.h"
51 
52 namespace {
55 
56  class TreeHelperBase {
57  public:
58  TreeHelperBase() : m_wasFilled(false), m_firstIndex(0), m_lastIndex(0) {}
59  virtual ~TreeHelperBase() {}
60  void fill(MonitorElement* iElement) {
61  doFill(iElement);
62  if (m_wasFilled) {
63  ++m_lastIndex;
64  }
65  m_wasFilled = true;
66  }
67  bool wasFilled() const { return m_wasFilled; }
68  void getRangeAndReset(ULong64_t& iFirstIndex, ULong64_t& iLastIndex) {
69  iFirstIndex = m_firstIndex;
70  iLastIndex = m_lastIndex;
71  m_wasFilled = false;
72  m_firstIndex = m_lastIndex + 1;
73  m_lastIndex = m_firstIndex;
74  }
75 
76  private:
77  virtual void doFill(MonitorElement*) = 0;
78  bool m_wasFilled;
79  ULong64_t m_firstIndex;
80  ULong64_t m_lastIndex;
81  };
82 
83  template <class T>
84  class TreeHelper : public TreeHelperBase {
85  public:
86  TreeHelper(TTree* iTree, std::string* iFullNameBufferPtr)
87  : m_tree(iTree), m_flagBuffer(0), m_fullNameBufferPtr(iFullNameBufferPtr) {
88  setup();
89  }
90  void doFill(MonitorElement* iElement) override {
91  *m_fullNameBufferPtr = iElement->getFullname();
92  m_flagBuffer = 0;
93  m_bufferPtr = dynamic_cast<T*>(iElement->getRootObject());
94  assert(nullptr != m_bufferPtr);
95  //std::cout <<"#entries: "<<m_bufferPtr->GetEntries()<<std::endl;
96  tbb::this_task_arena::isolate([&] { m_tree->Fill(); });
97  }
98 
99  private:
100  void setup() {
101  m_tree->Branch(kFullNameBranch, &m_fullNameBufferPtr);
102  m_tree->Branch(kFlagBranch, &m_flagBuffer);
103 
104  m_bufferPtr = nullptr;
105  m_tree->Branch(kValueBranch, &m_bufferPtr, 128 * 1024, 0);
106  }
107  TTree* m_tree;
108  uint32_t m_flagBuffer;
109  std::string* m_fullNameBufferPtr;
110  T* m_bufferPtr;
111  };
112 
113  class IntTreeHelper : public TreeHelperBase {
114  public:
115  IntTreeHelper(TTree* iTree, std::string* iFullNameBufferPtr)
116  : m_tree(iTree), m_flagBuffer(0), m_fullNameBufferPtr(iFullNameBufferPtr) {
117  setup();
118  }
119 
120  void doFill(MonitorElement* iElement) override {
121  *m_fullNameBufferPtr = iElement->getFullname();
122  m_flagBuffer = 0;
123  m_buffer = iElement->getIntValue();
124  tbb::this_task_arena::isolate([&] { m_tree->Fill(); });
125  }
126 
127  private:
128  void setup() {
129  m_tree->Branch(kFullNameBranch, &m_fullNameBufferPtr);
130  m_tree->Branch(kFlagBranch, &m_flagBuffer);
131  m_tree->Branch(kValueBranch, &m_buffer);
132  }
133  TTree* m_tree;
134  uint32_t m_flagBuffer;
135  std::string* m_fullNameBufferPtr;
136  Long64_t m_buffer;
137  };
138 
139  class FloatTreeHelper : public TreeHelperBase {
140  public:
141  FloatTreeHelper(TTree* iTree, std::string* iFullNameBufferPtr)
142  : m_tree(iTree), m_flagBuffer(0), m_fullNameBufferPtr(iFullNameBufferPtr) {
143  setup();
144  }
145  void doFill(MonitorElement* iElement) override {
146  *m_fullNameBufferPtr = iElement->getFullname();
147  m_flagBuffer = 0;
148  m_buffer = iElement->getFloatValue();
149  tbb::this_task_arena::isolate([&] { m_tree->Fill(); });
150  }
151 
152  private:
153  void setup() {
154  m_tree->Branch(kFullNameBranch, &m_fullNameBufferPtr);
155  m_tree->Branch(kFlagBranch, &m_flagBuffer);
156  m_tree->Branch(kValueBranch, &m_buffer);
157  }
158 
159  TTree* m_tree;
160  uint32_t m_flagBuffer;
161  std::string* m_fullNameBufferPtr;
162  double m_buffer;
163  };
164 
165  class StringTreeHelper : public TreeHelperBase {
166  public:
167  StringTreeHelper(TTree* iTree, std::string* iFullNameBufferPtr)
168  : m_tree(iTree), m_flagBuffer(0), m_fullNameBufferPtr(iFullNameBufferPtr), m_bufferPtr(&m_buffer) {
169  setup();
170  }
171  void doFill(MonitorElement* iElement) override {
172  *m_fullNameBufferPtr = iElement->getFullname();
173  m_flagBuffer = 0;
174  m_buffer = iElement->getStringValue();
175  tbb::this_task_arena::isolate([&] { m_tree->Fill(); });
176  }
177 
178  private:
179  void setup() {
180  m_tree->Branch(kFullNameBranch, &m_fullNameBufferPtr);
181  m_tree->Branch(kFlagBranch, &m_flagBuffer);
182  m_tree->Branch(kValueBranch, &m_bufferPtr);
183  }
184 
185  TTree* m_tree;
186  uint32_t m_flagBuffer;
187  std::string* m_fullNameBufferPtr;
188  std::string m_buffer;
189  std::string* m_bufferPtr;
190  };
191 
192 } // namespace
193 
194 namespace edm {
195  class ModuleCallingContext;
196 }
197 
199 public:
200  explicit DQMRootOutputModule(edm::ParameterSet const& pset);
201  void beginJob() override;
202  ~DQMRootOutputModule() override;
203  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
204 
205 private:
206  void write(edm::EventForOutput const& e) override;
208  void writeRun(edm::RunForOutput const&) override;
209  bool isFileOpen() const override;
210  void openFile(edm::FileBlock const&) override;
211  void reallyCloseFile() override;
212 
213  void startEndFile();
214  void finishEndFile();
217  std::unique_ptr<TFile> m_file;
218  std::vector<std::shared_ptr<TreeHelperBase> > m_treeHelpers;
219 
220  unsigned int m_run;
221  unsigned int m_lumi;
222  unsigned int m_type;
223  unsigned int m_presentHistoryIndex;
224  ULong64_t m_beginTime;
225  ULong64_t m_endTime;
226  ULong64_t m_firstIndex;
227  ULong64_t m_lastIndex;
228  unsigned int m_filterOnRun;
229 
232  std::map<unsigned int, unsigned int> m_dqmKindToTypeIndex;
234 
235  std::vector<edm::ProcessHistoryID> m_seenHistories;
238 };
239 
240 //
241 // constants, enums and typedefs
242 //
243 
244 static TreeHelperBase* makeHelper(unsigned int iTypeIndex, TTree* iTree, std::string* iFullNameBufferPtr) {
245  switch (iTypeIndex) {
246  case kIntIndex:
247  return new IntTreeHelper(iTree, iFullNameBufferPtr);
248  case kFloatIndex:
249  return new FloatTreeHelper(iTree, iFullNameBufferPtr);
250  case kStringIndex:
251  return new StringTreeHelper(iTree, iFullNameBufferPtr);
252  case kTH1FIndex:
253  return new TreeHelper<TH1F>(iTree, iFullNameBufferPtr);
254  case kTH1SIndex:
255  return new TreeHelper<TH1S>(iTree, iFullNameBufferPtr);
256  case kTH1DIndex:
257  return new TreeHelper<TH1D>(iTree, iFullNameBufferPtr);
258  case kTH1IIndex:
259  return new TreeHelper<TH1I>(iTree, iFullNameBufferPtr);
260  case kTH2FIndex:
261  return new TreeHelper<TH2F>(iTree, iFullNameBufferPtr);
262  case kTH2SIndex:
263  return new TreeHelper<TH2S>(iTree, iFullNameBufferPtr);
264  case kTH2DIndex:
265  return new TreeHelper<TH2D>(iTree, iFullNameBufferPtr);
266  case kTH2IIndex:
267  return new TreeHelper<TH2I>(iTree, iFullNameBufferPtr);
268  case kTH3FIndex:
269  return new TreeHelper<TH3F>(iTree, iFullNameBufferPtr);
270  case kTProfileIndex:
271  return new TreeHelper<TProfile>(iTree, iFullNameBufferPtr);
272  case kTProfile2DIndex:
273  return new TreeHelper<TProfile2D>(iTree, iFullNameBufferPtr);
274  }
275  assert(false);
276  return nullptr;
277 }
278 
279 //
280 // static data member definitions
281 //
282 
283 //
284 // constructors and destructor
285 //
288  edm::one::OutputModule<>(pset),
289  m_fileName(pset.getUntrackedParameter<std::string>("fileName")),
290  m_logicalFileName(pset.getUntrackedParameter<std::string>("logicalFileName")),
291  m_file(nullptr),
292  m_treeHelpers(kNIndicies, std::shared_ptr<TreeHelperBase>()),
293  m_presentHistoryIndex(0),
294  m_filterOnRun(pset.getUntrackedParameter<unsigned int>("filterOnRun")),
295  m_fullNameBufferPtr(&m_fullNameBuffer),
296  m_indicesTree(nullptr) {
297  // Declare dependencies for all Lumi and Run tokens here. In
298  // principle could use the keep statements, but then DQMToken would
299  // have to be made persistent (transient products are ignored),
300  // which would lead to a need to (finally) remove underscores from
301  // DQM module labels.
302  consumesMany<DQMToken, edm::InLumi>();
303  consumesMany<DQMToken, edm::InRun>();
304 }
305 
306 // DQMRootOutputModule::DQMRootOutputModule(const DQMRootOutputModule& rhs)
307 // {
308 // // do actual copying here;
309 // }
310 
312 
314 
315 //
316 // assignment operators
317 //
318 // const DQMRootOutputModule& DQMRootOutputModule::operator=(const DQMRootOutputModule& rhs)
319 // {
320 // //An exception safe implementation is
321 // DQMRootOutputModule temp(rhs);
322 // swap(rhs);
323 //
324 // return *this;
325 // }
326 
327 //
328 // member functions
329 //
330 bool DQMRootOutputModule::isFileOpen() const { return nullptr != m_file.get(); }
331 
333  //NOTE: I need to also set the I/O performance settings
334 
335  m_file = std::make_unique<TFile>(m_fileName.c_str(),
336  "RECREATE",
337  "1" //This is the file format version number
338  );
339 
341  cms::Digest branchHash;
343  std::transform(guid.begin(), guid.end(), guid.begin(), (int (*)(int))std::toupper);
344 
345  m_file->WriteObject(&guid, kCmsGuid);
346  m_jrToken = jr->outputFileOpened(m_fileName,
348  std::string(),
349  "DQMRootOutputModule",
351  guid,
352  std::string(),
353  branchHash.digest().toString(),
354  std::vector<std::string>());
355 
357  m_indicesTree->Branch(kRunBranch, &m_run);
358  m_indicesTree->Branch(kLumiBranch, &m_lumi);
362  m_indicesTree->Branch(kTypeBranch, &m_type);
365  m_indicesTree->SetDirectory(m_file.get());
366 
367  unsigned int i = 0;
368  for (std::vector<std::shared_ptr<TreeHelperBase> >::iterator it = m_treeHelpers.begin(), itEnd = m_treeHelpers.end();
369  it != itEnd;
370  ++it, ++i) {
371  //std::cout <<"making "<<kTypeNames[i]<<std::endl;
372  TTree* tree = new TTree(kTypeNames[i], kTypeNames[i]);
373  *it = std::shared_ptr<TreeHelperBase>(makeHelper(i, tree, m_fullNameBufferPtr));
374  tree->SetDirectory(m_file.get()); //TFile takes ownership
375  }
376 
391 }
392 
394 
396  //std::cout << "DQMRootOutputModule::writeLuminosityBlock"<< std::endl;
397  edm::Service<DQMStore> dstore;
398  m_run = iLumi.id().run();
399  m_lumi = iLumi.id().value();
400  m_beginTime = iLumi.beginTime().value();
401  m_endTime = iLumi.endTime().value();
402  bool shouldWrite = (m_filterOnRun == 0 || (m_filterOnRun != 0 && m_filterOnRun == m_run));
403 
404  if (!shouldWrite)
405  return;
406  std::vector<MonitorElement*> items(dstore->getAllContents("", m_run, m_lumi));
407  for (std::vector<MonitorElement*>::iterator it = items.begin(), itEnd = items.end(); it != itEnd; ++it) {
408  assert((*it)->getScope() == MonitorElementData::Scope::LUMI);
409  std::map<unsigned int, unsigned int>::iterator itFound = m_dqmKindToTypeIndex.find((int)(*it)->kind());
410  assert(itFound != m_dqmKindToTypeIndex.end());
411  m_treeHelpers[itFound->second]->fill(*it);
412  }
413 
414  const edm::ProcessHistoryID& id = iLumi.processHistoryID();
415  std::vector<edm::ProcessHistoryID>::iterator itFind = std::find(m_seenHistories.begin(), m_seenHistories.end(), id);
416  if (itFind == m_seenHistories.end()) {
419  m_seenHistories.push_back(id);
420  } else {
421  m_presentHistoryIndex = itFind - m_seenHistories.begin();
422  }
423 
424  //Now store the relationship between run/lumi and indices in the other TTrees
425  bool storedLumiIndex = false;
426  unsigned int typeIndex = 0;
427  for (std::vector<std::shared_ptr<TreeHelperBase> >::iterator it = m_treeHelpers.begin(), itEnd = m_treeHelpers.end();
428  it != itEnd;
429  ++it, ++typeIndex) {
430  if ((*it)->wasFilled()) {
431  m_type = typeIndex;
432  (*it)->getRangeAndReset(m_firstIndex, m_lastIndex);
433  storedLumiIndex = true;
434  tbb::this_task_arena::isolate([&] { m_indicesTree->Fill(); });
435  }
436  }
437  if (not storedLumiIndex) {
438  //need to record lumis even if we stored no MonitorElements since some later DQM modules
439  // look to see what lumis were processed
441  m_firstIndex = 0;
442  m_lastIndex = 0;
443  tbb::this_task_arena::isolate([&] { m_indicesTree->Fill(); });
444  }
445 
448 }
449 
451  //std::cout << "DQMRootOutputModule::writeRun"<< std::endl;
452  edm::Service<DQMStore> dstore;
453  m_run = iRun.id().run();
454  m_lumi = 0;
455  m_beginTime = iRun.beginTime().value();
456  m_endTime = iRun.endTime().value();
457  bool shouldWrite = (m_filterOnRun == 0 || (m_filterOnRun != 0 && m_filterOnRun == m_run));
458 
459  if (!shouldWrite)
460  return;
461 
462  std::vector<MonitorElement*> items(dstore->getAllContents("", m_run, 0));
463  for (std::vector<MonitorElement*>::iterator it = items.begin(), itEnd = items.end(); it != itEnd; ++it) {
464  assert((*it)->getScope() == MonitorElementData::Scope::RUN);
465  std::map<unsigned int, unsigned int>::iterator itFound = m_dqmKindToTypeIndex.find((int)(*it)->kind());
466  assert(itFound != m_dqmKindToTypeIndex.end());
467  m_treeHelpers[itFound->second]->fill(*it);
468  }
469 
470  const edm::ProcessHistoryID& id = iRun.processHistoryID();
471  std::vector<edm::ProcessHistoryID>::iterator itFind = std::find(m_seenHistories.begin(), m_seenHistories.end(), id);
472  if (itFind == m_seenHistories.end()) {
475  m_seenHistories.push_back(id);
476  } else {
477  m_presentHistoryIndex = itFind - m_seenHistories.begin();
478  }
479 
480  //Now store the relationship between run/lumi and indices in the other TTrees
481  unsigned int typeIndex = 0;
482  for (std::vector<std::shared_ptr<TreeHelperBase> >::iterator it = m_treeHelpers.begin(), itEnd = m_treeHelpers.end();
483  it != itEnd;
484  ++it, ++typeIndex) {
485  if ((*it)->wasFilled()) {
486  m_type = typeIndex;
487  (*it)->getRangeAndReset(m_firstIndex, m_lastIndex);
488  tbb::this_task_arena::isolate([&] { m_indicesTree->Fill(); });
489  }
490  }
491 
494 }
495 
497  startEndFile();
498  finishEndFile();
499 }
500 
502  //std::cout << "DQMRootOutputModule::startEndFile"<< std::endl;
503  //fill in the meta data
504  m_file->cd();
505  TDirectory* metaDataDirectory = m_file->mkdir(kMetaDataDirectory);
506 
507  //Write out the Process History
508  TTree* processHistoryTree = new TTree(kProcessHistoryTree, kProcessHistoryTree);
509  processHistoryTree->SetDirectory(metaDataDirectory);
510 
511  unsigned int index = 0;
512  processHistoryTree->Branch(kPHIndexBranch, &index);
514  processHistoryTree->Branch(kProcessConfigurationProcessNameBranch, &processName);
515  std::string parameterSetID;
516  processHistoryTree->Branch(kProcessConfigurationParameterSetIDBranch, &parameterSetID);
517  std::string releaseVersion;
518  processHistoryTree->Branch(kProcessConfigurationReleaseVersion, &releaseVersion);
519  std::string passID;
520  processHistoryTree->Branch(kProcessConfigurationPassID, &passID);
521 
522  for (std::vector<edm::ProcessHistoryID>::iterator it = m_seenHistories.begin(), itEnd = m_seenHistories.end();
523  it != itEnd;
524  ++it) {
526  assert(nullptr != history);
527  index = 0;
528  for (edm::ProcessHistory::collection_type::const_iterator itPC = history->begin(), itPCEnd = history->end();
529  itPC != itPCEnd;
530  ++itPC, ++index) {
531  processName = itPC->processName();
532  releaseVersion = itPC->releaseVersion();
533  passID = itPC->passID();
534  parameterSetID = itPC->parameterSetID().compactForm();
535  tbb::this_task_arena::isolate([&] { processHistoryTree->Fill(); });
536  }
537  }
538 
539  //Store the ParameterSets
540  TTree* parameterSetsTree = new TTree(kParameterSetTree, kParameterSetTree);
541  parameterSetsTree->SetDirectory(metaDataDirectory);
542  std::string blob;
543  parameterSetsTree->Branch(kParameterSetBranch, &blob);
544 
546  assert(nullptr != psr);
547  for (edm::pset::Registry::const_iterator it = psr->begin(), itEnd = psr->end(); it != itEnd; ++it) {
548  blob.clear();
549  it->second.toString(blob);
550  tbb::this_task_arena::isolate([&] { parameterSetsTree->Fill(); });
551  }
552 }
553 
555  //std::cout << "DQMRootOutputModule::finishEndFile"<< std::endl;
556  m_file->Write();
557  m_file->Close();
560 }
561 
562 //
563 // const member functions
564 //
565 
566 //
567 // static member functions
568 //
571 
572  desc.addUntracked<std::string>("fileName");
573  desc.addUntracked<std::string>("logicalFileName", "");
574  desc.addUntracked<unsigned int>("filterOnRun", 0)
575  ->setComment("Only write the run with this run number. 0 means write all runs.");
576  desc.addOptionalUntracked<int>("splitLevel", 99)
577  ->setComment("UNUSED Only here to allow older configurations written for PoolOutputModule to work.");
578  const std::vector<std::string> keep = {"drop *", "keep DQMToken_*_*_*"};
580 
582  dataSet.setAllowAnything();
583  desc.addUntracked<edm::ParameterSetDescription>("dataset", dataSet)
584  ->setComment("PSet is only used by Data Operations and not by this module.");
585 
586  descriptions.addDefault(desc);
587 }
588 
void reallyCloseFile() override
static const char *const kProcessHistoryTree
Definition: format.h:79
static const char *const kRunBranch
Definition: format.h:63
map_type::const_iterator const_iterator
Definition: Registry.h:61
static const char *const kTypeNames[]
Definition: format.h:41
void writeLuminosityBlock(edm::LuminosityBlockForOutput const &) override
void write(edm::EventForOutput const &e) override
Timestamp const & beginTime() const
Definition: RunForOutput.h:57
static const char *const kIndicesTree
Definition: format.h:62
unsigned int m_presentHistoryIndex
bool registerProcessHistory(ProcessHistory const &processHistory)
static TreeHelperBase * makeHelper(unsigned int iTypeIndex, TTree *iTree, std::string *iFullNameBufferPtr)
edm::ProcessHistoryRegistry m_processHistoryRegistry
static const char *const kFirstIndex
Definition: format.h:69
static const char *const kLumiBranch
Definition: format.h:64
static const char *const kFullNameBranch
Definition: format.h:57
void reportRunNumber(JobReport::Token token, unsigned int run)
Definition: JobReport.cc:505
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
assert(be >=bs)
const_iterator end() const
ModuleDescription const & description() const
const_iterator end() const
Definition: Registry.h:65
dqm::reco::DQMStore DQMStore
static const char *const kPHIndexBranch
Definition: format.h:80
static const char *const kParameterSetBranch
Definition: format.h:87
bool isFileOpen() const override
std::map< unsigned int, unsigned int > m_dqmKindToTypeIndex
void addDefault(ParameterSetDescription const &psetDescription)
MD5Result digest()
Definition: Digest.cc:171
virtual double getFloatValue() const
static const char *const kMetaDataDirectory
Definition: format.h:77
virtual std::vector< dqm::harvesting::MonitorElement * > getAllContents(std::string const &path) const
Definition: DQMStore.cc:641
static const char *const kParameterSetTree
Definition: format.h:86
static const char *const kFlagBranch
Definition: format.h:58
static const char *const kTypeBranch
Definition: format.h:68
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::vector< std::shared_ptr< TreeHelperBase > > m_treeHelpers
static const char *const kProcessHistoryIndexBranch
Definition: format.h:65
static const char *const kEndTimeBranch
Definition: format.h:67
std::unique_ptr< TFile > m_file
RunNumber_t run() const
std::size_t Token
Definition: JobReport.h:106
ProcessHistoryID const & processHistoryID() const
DQMRootOutputModule(edm::ParameterSet const &pset)
static const char *const kProcessConfigurationPassID
Definition: format.h:84
doFill
Definition: cuy.py:575
std::string createGlobalIdentifier(bool binary=false)
std::string * m_fullNameBufferPtr
std::string getFullname() const
get full name of ME including Pathname
void writeRun(edm::RunForOutput const &) override
TimeValue_t value() const
Definition: Timestamp.h:38
dqm::legacy::MonitorElement MonitorElement
static const char *const kCmsGuid
Definition: format.h:73
static const char *const kLastIndex
Definition: format.h:70
static const char *const kProcessConfigurationReleaseVersion
Definition: format.h:83
LuminosityBlockID const & id() const
Timestamp const & endTime() const
Definition: RunForOutput.h:58
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
virtual ProcessHistory const & processHistory() const
std::string const & processName() const
virtual const std::string & getStringValue() const
static const char *const kProcessConfigurationProcessNameBranch
Definition: format.h:81
RunID const & id() const
Definition: RunForOutput.h:55
Timestamp const & endTime() const
HLT enums.
Timestamp const & beginTime() const
static const char *const kBeginTimeBranch
Definition: format.h:66
void outputFileClosed(Token fileToken)
Definition: JobReport.cc:467
edm::JobReport::Token m_jrToken
void openFile(edm::FileBlock const &) override
TObject * getRootObject() const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: tree.py:1
long double T
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
std::string toString() const
Definition: Digest.cc:95
const_iterator begin() const
Definition: Registry.h:63
static Registry * instance()
Definition: Registry.cc:12
RunNumber_t run() const
Definition: RunID.h:26
static const char *const kValueBranch
Definition: format.h:59
void reportLumiSection(JobReport::Token token, unsigned int run, unsigned int lumiSectId, unsigned long nEvents=0)
Definition: JobReport.cc:494
static const char *const kProcessConfigurationParameterSetIDBranch
Definition: format.h:82
const_iterator begin() const
std::vector< edm::ProcessHistoryID > m_seenHistories
virtual int64_t getIntValue() const
unsigned transform(const HcalDetId &id, unsigned transformCode)