CMS 3D CMS Logo

NanoAODOutputModule.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PhysicsTools/NanoAODOutput
4 // Class : NanoAODOutputModule
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Christopher Jones
10 // Created: Mon, 07 Aug 2017 14:21:41 GMT
11 //
12 
13 // system include files
14 #include <algorithm>
15 #include <string>
16 #include "TFile.h"
17 #include "TTree.h"
18 #include "TROOT.h"
19 #include "TObjString.h"
20 #include "Compression.h"
21 
22 // user include files
43 
44 #include <iostream>
45 
47 public:
49  ~NanoAODOutputModule() override;
50 
51  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
52 
53 private:
54  void write(edm::EventForOutput const& e) override;
56  void writeRun(edm::RunForOutput const&) override;
57  bool isFileOpen() const override;
58  void openFile(edm::FileBlock const&) override;
59  void reallyCloseFile() override;
60 
67  bool m_fakeName; //crab workaround, remove after crab is fixed
71  std::unique_ptr<TFile> m_file;
73 
74  static constexpr int m_firstFlush{1000};
75 
77  public:
78  void branch(TTree& tree) {
79  tree.Branch("run", &m_run, "run/i");
80  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
81  tree.Branch("event", &m_event, "event/l");
82  }
83  void fill(const edm::EventID& id) {
84  m_run = id.run();
85  m_luminosityBlock = id.luminosityBlock();
86  m_event = id.event();
87  }
88 
89  private:
90  UInt_t m_run;
92  ULong64_t m_event;
94 
96  public:
97  void branch(TTree& tree) {
98  tree.Branch("run", &m_run, "run/i");
99  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
100  }
101  void fill(const edm::LuminosityBlockID& id) {
102  m_run = id.run();
103  m_luminosityBlock = id.value();
104  }
105 
106  private:
107  UInt_t m_run;
110 
112  public:
113  void branch(TTree& tree) { tree.Branch("run", &m_run, "run/i"); }
114  void fill(const edm::RunID& id) { m_run = id.run(); }
115 
116  private:
117  UInt_t m_run;
119 
120  std::vector<TableOutputBranches> m_tables;
121  std::vector<TriggerOutputBranches> m_triggers;
122  bool m_triggers_areSorted = false;
123  std::vector<EventStringOutputBranches> m_evstrings;
124 
125  std::vector<SummaryTableOutputBranches> m_runTables;
126 
127  std::vector<std::pair<std::string, edm::EDGetToken>> m_nanoMetadata;
128 };
129 
130 //
131 // constants, enums and typedefs
132 //
133 
134 //
135 // static data member definitions
136 //
137 
138 //
139 // constructors and destructor
140 //
143  edm::one::OutputModule<>(pset),
144  m_fileName(pset.getUntrackedParameter<std::string>("fileName")),
145  m_logicalFileName(pset.getUntrackedParameter<std::string>("logicalFileName")),
146  m_compressionLevel(pset.getUntrackedParameter<int>("compressionLevel")),
147  m_compressionAlgorithm(pset.getUntrackedParameter<std::string>("compressionAlgorithm")),
148  m_writeProvenance(pset.getUntrackedParameter<bool>("saveProvenance", true)),
149  m_fakeName(pset.getUntrackedParameter<bool>("fakeNameForCrab", false)),
150  m_autoFlush(pset.getUntrackedParameter<int>("autoFlush", -10000000)),
151  m_processHistoryRegistry() {}
152 
154 
156  //Get data from 'e' and write it to the file
158  jr->eventWrittenToFile(m_jrToken, iEvent.id().run(), iEvent.id().event());
159 
160  if (m_autoFlush) {
161  int64_t events = m_tree->GetEntriesFast();
162  if (events == m_firstFlush) {
163  m_tree->FlushBaskets();
164  float maxMemory;
165  if (m_autoFlush > 0) {
166  // Estimate the memory we'll be using at the first full flush by
167  // linearly scaling the number of events.
168  float percentClusterDone = m_firstFlush / static_cast<float>(m_autoFlush);
169  maxMemory = static_cast<float>(m_tree->GetTotBytes()) / percentClusterDone;
170  } else if (m_tree->GetZipBytes() == 0) {
171  maxMemory = 100 * 1024 * 1024; // Degenerate case of no information in the tree; arbitrary value
172  } else {
173  // Estimate the memory we'll be using by scaling the current compression ratio.
174  float cxnRatio = m_tree->GetTotBytes() / static_cast<float>(m_tree->GetZipBytes());
175  maxMemory = -m_autoFlush * cxnRatio;
176  float percentBytesDone = -m_tree->GetZipBytes() / static_cast<float>(m_autoFlush);
177  m_autoFlush = m_firstFlush / percentBytesDone;
178  }
179  //std::cout << "OptimizeBaskets: total bytes " << m_tree->GetTotBytes() << std::endl;
180  //std::cout << "OptimizeBaskets: zip bytes " << m_tree->GetZipBytes() << std::endl;
181  //std::cout << "OptimizeBaskets: autoFlush " << m_autoFlush << std::endl;
182  //std::cout << "OptimizeBaskets: maxMemory " << static_cast<uint32_t>(maxMemory) << std::endl;
183  //m_tree->OptimizeBaskets(static_cast<uint32_t>(maxMemory), 1, "d");
184  m_tree->OptimizeBaskets(static_cast<uint32_t>(maxMemory), 1, "");
185  }
187  m_tree->FlushBaskets();
188  m_eventsSinceFlush = 0;
189  }
191  }
192 
194  // fill all tables, starting from main tables and then doing extension tables
195  for (unsigned int extensions = 0; extensions <= 1; ++extensions) {
196  for (auto& t : m_tables)
197  t.fill(iEvent, *m_tree, extensions);
198  }
199  if (!m_triggers_areSorted) { // sort triggers/flags in inverse processHistory order, to save without any special label the most recent ones
200  std::vector<std::string> pnames;
201  for (auto& p : iEvent.processHistory())
202  pnames.push_back(p.processName());
203  std::sort(m_triggers.begin(), m_triggers.end(), [pnames](TriggerOutputBranches& a, TriggerOutputBranches& b) {
204  return ((std::find(pnames.begin(), pnames.end(), a.processName()) - pnames.begin()) >
205  (std::find(pnames.begin(), pnames.end(), b.processName()) - pnames.begin()));
206  });
207  m_triggers_areSorted = true;
208  }
209  // fill triggers
210  for (auto& t : m_triggers)
211  t.fill(iEvent, *m_tree);
212  // fill event branches
213  for (auto& t : m_evstrings)
214  t.fill(iEvent, *m_tree);
215  m_tree->Fill();
216 
218 }
219 
222  jr->reportLumiSection(m_jrToken, iLumi.id().run(), iLumi.id().value());
223 
224  m_commonLumiBranches.fill(iLumi.id());
225  m_lumiTree->Fill();
226 
228 }
229 
232  jr->reportRunNumber(m_jrToken, iRun.id().run());
233 
234  m_commonRunBranches.fill(iRun.id());
235 
236  for (auto& t : m_runTables)
237  t.fill(iRun, *m_runTree);
238 
240  for (const auto& p : m_nanoMetadata) {
241  iRun.getByToken(p.second, hstring);
242  TObjString* tos = dynamic_cast<TObjString*>(m_file->Get(p.first.c_str()));
243  if (tos) {
244  if (hstring->str() != tos->GetString())
245  throw cms::Exception("LogicError", "Inconsistent nanoMetadata " + p.first + " (" + hstring->str() + ")");
246  } else {
247  auto ostr = std::make_unique<TObjString>(hstring->str().c_str());
248  m_file->WriteTObject(ostr.release(), p.first.c_str());
249  }
250  }
251 
252  m_runTree->Fill();
253 
255 }
256 
257 bool NanoAODOutputModule::isFileOpen() const { return nullptr != m_file.get(); }
258 
260  m_file = std::make_unique<TFile>(m_fileName.c_str(), "RECREATE", "", m_compressionLevel);
262  cms::Digest branchHash;
263  m_jrToken = jr->outputFileOpened(m_fileName,
265  std::string(),
266  m_fakeName ? "PoolOutputModule" : "NanoAODOutputModule",
269  std::string(),
270  branchHash.digest().toString(),
271  std::vector<std::string>());
272 
273  if (m_compressionAlgorithm == std::string("ZLIB")) {
274  m_file->SetCompressionAlgorithm(ROOT::kZLIB);
275  } else if (m_compressionAlgorithm == std::string("LZMA")) {
276  m_file->SetCompressionAlgorithm(ROOT::kLZMA);
277  } else {
278  throw cms::Exception("Configuration")
279  << "NanoAODOutputModule configured with unknown compression algorithm '" << m_compressionAlgorithm << "'\n"
280  << "Allowed compression algorithms are ZLIB and LZMA\n";
281  }
282  /* Setup file structure here */
283  m_tables.clear();
284  m_triggers.clear();
285  m_triggers_areSorted = false;
286  m_evstrings.clear();
287  m_runTables.clear();
288  const auto& keeps = keptProducts();
289  for (const auto& keep : keeps[edm::InEvent]) {
290  if (keep.first->className() == "nanoaod::FlatTable")
291  m_tables.emplace_back(keep.first, keep.second);
292  else if (keep.first->className() == "edm::TriggerResults") {
293  m_triggers.emplace_back(keep.first, keep.second);
294  } else if (keep.first->className() == "std::basic_string<char,std::char_traits<char> >" &&
295  keep.first->productInstanceName() == "genModel") { // friendlyClassName == "String"
296  m_evstrings.emplace_back(keep.first, keep.second, true); // update only at lumiBlock transitions
297  } else
298  throw cms::Exception("Configuration", "NanoAODOutputModule cannot handle class " + keep.first->className());
299  }
300 
301  for (const auto& keep : keeps[edm::InRun]) {
302  if (keep.first->className() == "nanoaod::MergeableCounterTable")
303  m_runTables.push_back(SummaryTableOutputBranches(keep.first, keep.second));
304  else if (keep.first->className() == "nanoaod::UniqueString" && keep.first->moduleLabel() == "nanoMetadata")
305  m_nanoMetadata.emplace_back(keep.first->productInstanceName(), keep.second);
306  else
307  throw cms::Exception("Configuration",
308  "NanoAODOutputModule cannot handle class " + keep.first->className() + " in Run branch");
309  }
310 
311  // create the trees
312  m_tree.reset(new TTree("Events", "Events"));
313  m_tree->SetAutoSave(0);
314  m_tree->SetAutoFlush(0);
316 
317  m_lumiTree.reset(new TTree("LuminosityBlocks", "LuminosityBlocks"));
318  m_lumiTree->SetAutoSave(0);
320 
321  m_runTree.reset(new TTree("Runs", "Runs"));
322  m_runTree->SetAutoSave(0);
324 
325  if (m_writeProvenance) {
326  m_metaDataTree.reset(new TTree(edm::poolNames::metaDataTreeName().c_str(), "Job metadata"));
327  m_metaDataTree->SetAutoSave(0);
328  m_parameterSetsTree.reset(new TTree(edm::poolNames::parameterSetsTreeName().c_str(), "Parameter sets"));
329  m_parameterSetsTree->SetAutoSave(0);
330  }
331 }
333  if (m_writeProvenance) {
334  int basketSize = 16384; // fixme configurable?
337  if (m_metaDataTree->GetNbranches() != 0) {
338  m_metaDataTree->SetEntries(-1);
339  }
340  if (m_parameterSetsTree->GetNbranches() != 0) {
341  m_parameterSetsTree->SetEntries(-1);
342  }
343  }
344  m_file->Write();
345  m_file->Close();
346  m_file.reset();
347  m_tree.release(); // apparently root has ownership
348  m_lumiTree.release(); //
349  m_runTree.release(); //
350  m_metaDataTree.release(); //
351  m_parameterSetsTree.release(); //
354 }
355 
358 
359  desc.addUntracked<std::string>("fileName");
360  desc.addUntracked<std::string>("logicalFileName", "");
361 
362  desc.addUntracked<int>("compressionLevel", 9)->setComment("ROOT compression level of output file.");
363  desc.addUntracked<std::string>("compressionAlgorithm", "ZLIB")
364  ->setComment("Algorithm used to compress data in the ROOT output file, allowed values are ZLIB and LZMA");
365  desc.addUntracked<bool>("saveProvenance", true)
366  ->setComment("Save process provenance information, e.g. for edmProvDump");
367  desc.addUntracked<bool>("fakeNameForCrab", false)
368  ->setComment(
369  "Change the OutputModule name in the fwk job report to fake PoolOutputModule. This is needed to run on cran "
370  "(and publish) till crab is fixed");
371  desc.addUntracked<int>("autoFlush", -10000000)->setComment("Autoflush parameter for ROOT file");
372 
373  //replace with whatever you want to get from the EDM by default
374  const std::vector<std::string> keep = {"drop *",
375  "keep nanoaodFlatTable_*Table_*_*",
376  "keep edmTriggerResults_*_*_*",
377  "keep String_*_genModel_*",
378  "keep nanoaodMergeableCounterTable_*Table_*_*",
379  "keep nanoaodUniqueString_nanoMetadata_*_*"};
381 
382  //Used by Workflow management for their own meta data
384  dataSet.setAllowAnything();
386  ->setComment("PSet is only used by Data Operations and not by this module.");
387 
389  branchSet.setAllowAnything();
390  desc.add<edm::ParameterSetDescription>("branches", branchSet);
391 
392  descriptions.addDefault(desc);
393 }
394 
edm::one::OutputModule
Definition: OutputModule.h:30
NanoAODOutputModule::CommonEventBranches::fill
void fill(const edm::EventID &id)
Definition: NanoAODOutputModule.cc:83
NanoAODOutputModule::m_tree
std::unique_ptr< TTree > m_tree
Definition: NanoAODOutputModule.cc:72
NanoAODOutputModule::CommonRunBranches
Definition: NanoAODOutputModule.cc:111
edm::ProcessHistoryRegistry::registerProcessHistory
bool registerProcessHistory(ProcessHistory const &processHistory)
Definition: ProcessHistoryRegistry.cc:11
electrons_cff.bool
bool
Definition: electrons_cff.py:372
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
funct::false
false
Definition: Factorize.h:34
OutputModule.h
edm::RunID
Definition: RunID.h:28
NanoAODOutputModule::m_jrToken
edm::JobReport::Token m_jrToken
Definition: NanoAODOutputModule.cc:70
edm::RunForOutput::id
RunID const & id() const
Definition: RunForOutput.h:49
cms::Digest::digest
MD5Result digest()
Definition: Digest.cc:171
NanoAODOutputModule::m_runTables
std::vector< SummaryTableOutputBranches > m_runTables
Definition: NanoAODOutputModule.cc:125
NanoAODOutputModule::writeLuminosityBlock
void writeLuminosityBlock(edm::LuminosityBlockForOutput const &) override
Definition: NanoAODOutputModule.cc:220
NanoAODOutputModule::m_commonRunBranches
class NanoAODOutputModule::CommonRunBranches m_commonRunBranches
edm::RunID::run
RunNumber_t run() const
Definition: RunID.h:36
SummaryTableOutputBranches.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
tree
Definition: tree.py:1
edm::JobReport::Token
std::size_t Token
Definition: JobReport.h:106
NanoAODOutputModule::m_lumiTree
std::unique_ptr< TTree > m_lumiTree
Definition: NanoAODOutputModule.cc:72
NanoAODOutputModule::m_autoFlush
int m_autoFlush
Definition: NanoAODOutputModule.cc:68
NanoAODOutputModule::CommonEventBranches::branch
void branch(TTree &tree)
Definition: NanoAODOutputModule.cc:78
NanoAODOutputModule::m_commonLumiBranches
class NanoAODOutputModule::CommonLumiBranches m_commonLumiBranches
EgammaPostProcessor_cfi.dataSet
dataSet
Definition: EgammaPostProcessor_cfi.py:6
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
RunForOutput.h
edm::poolNames::parameterSetsTreeName
std::string const & parameterSetsTreeName()
Definition: BranchType.cc:214
NanoAODOutputModule::isFileOpen
bool isFileOpen() const override
Definition: NanoAODOutputModule.cc:257
NanoAODOutputModule::m_logicalFileName
std::string m_logicalFileName
Definition: NanoAODOutputModule.cc:62
NanoAODOutputModule::m_compressionLevel
int m_compressionLevel
Definition: NanoAODOutputModule.cc:63
ProcessHistoryRegistry.h
NanoAODOutputModule::CommonEventBranches::m_event
ULong64_t m_event
Definition: NanoAODOutputModule.cc:92
edm::JobReport::eventWrittenToFile
void eventWrittenToFile(Token fileToken, RunNumber_t run, EventNumber_t event)
Definition: JobReport.cc:428
CommonProvenanceFiller.h
TriggerOutputBranches
Definition: TriggerOutputBranches.h:13
EventForOutput.h
NanoAODOutputModule::CommonRunBranches::m_run
UInt_t m_run
Definition: NanoAODOutputModule.cc:117
patZpeak.events
events
Definition: patZpeak.py:20
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
NanoAODOutputModule::m_evstrings
std::vector< EventStringOutputBranches > m_evstrings
Definition: NanoAODOutputModule.cc:123
edm::Handle
Definition: AssociativeIterator.h:50
NanoAODOutputModule::openFile
void openFile(edm::FileBlock const &) override
Definition: NanoAODOutputModule.cc:259
edm::InRun
Definition: BranchType.h:11
NanoAODOutputModule::m_tables
std::vector< TableOutputBranches > m_tables
Definition: NanoAODOutputModule.cc:120
NanoAODOutputModule::m_commonBranches
class NanoAODOutputModule::CommonEventBranches m_commonBranches
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::FileBlock
Definition: FileBlock.h:20
edm::RunForOutput
Definition: RunForOutput.h:39
NanoAODOutputModule::CommonRunBranches::branch
void branch(TTree &tree)
Definition: NanoAODOutputModule.cc:113
MakerMacros.h
NanoAODOutputModule::m_processHistoryRegistry
edm::ProcessHistoryRegistry m_processHistoryRegistry
Definition: NanoAODOutputModule.cc:69
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
cms::Digest
Definition: Digest.h:46
Service.h
edm::fillParameterSetBranch
void fillParameterSetBranch(TTree *parameterSetsTree, int basketSize)
Definition: CommonProvenanceFiller.cc:18
NanoAODOutputModule::CommonLumiBranches::fill
void fill(const edm::LuminosityBlockID &id)
Definition: NanoAODOutputModule.cc:101
NanoAODOutputModule::CommonLumiBranches::m_run
UInt_t m_run
Definition: NanoAODOutputModule.cc:107
edm::JobReport::outputFileClosed
void outputFileClosed(Token fileToken)
Definition: JobReport.cc:433
NanoAODOutputModule::m_runTree
std::unique_ptr< TTree > m_runTree
Definition: NanoAODOutputModule.cc:72
NanoAODOutputModule::m_firstFlush
static constexpr int m_firstFlush
Definition: NanoAODOutputModule.cc:74
edm::InEvent
Definition: BranchType.h:11
NanoAODOutputModule::reallyCloseFile
void reallyCloseFile() override
Definition: NanoAODOutputModule.cc:332
edm::one::OutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc, std::vector< std::string > const &iDefaultOutputCommands=ProductSelectorRules::defaultSelectionStrings())
Definition: OutputModuleBase.cc:350
edm::OccurrenceForOutput::processHistory
virtual ProcessHistory const & processHistory() const
Definition: OccurrenceForOutput.cc:40
edm::LuminosityBlockID
Definition: LuminosityBlockID.h:31
OrderedSet.t
t
Definition: OrderedSet.py:90
NanoAODOutputModule::m_eventsSinceFlush
int m_eventsSinceFlush
Definition: NanoAODOutputModule.cc:64
b
double b
Definition: hdecay.h:118
NanoAODOutputModule::NanoAODOutputModule
NanoAODOutputModule(edm::ParameterSet const &pset)
Definition: NanoAODOutputModule.cc:141
EventStringOutputBranches.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
NanoAODOutputModule::CommonLumiBranches
Definition: NanoAODOutputModule.cc:95
NanoAODOutputModule::m_compressionAlgorithm
std::string m_compressionAlgorithm
Definition: NanoAODOutputModule.cc:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::OccurrenceForOutput::getByToken
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
Definition: OccurrenceForOutput.cc:44
OutputModuleBase
funct::true
true
Definition: Factorize.h:173
NanoAODOutputModule::CommonLumiBranches::branch
void branch(TTree &tree)
Definition: NanoAODOutputModule.cc:97
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
BranchDescription.h
NanoAODOutputModule::writeRun
void writeRun(edm::RunForOutput const &) override
Definition: NanoAODOutputModule.cc:230
edm::ParameterSet
Definition: ParameterSet.h:36
NanoAODOutputModule::CommonEventBranches::m_run
UInt_t m_run
Definition: NanoAODOutputModule.cc:90
a
double a
Definition: hdecay.h:119
edm::JobReport::reportLumiSection
void reportLumiSection(JobReport::Token token, unsigned int run, unsigned int lumiSectId, unsigned long nEvents=0)
Definition: JobReport.cc:458
NanoAODOutputModule
Definition: NanoAODOutputModule.cc:46
NanoAODOutputModule::CommonEventBranches::m_luminosityBlock
UInt_t m_luminosityBlock
Definition: NanoAODOutputModule.cc:91
edm::one::OutputModuleBase::keptProducts
SelectedProductsForBranchType const & keptProducts() const
Definition: OutputModuleBase.h:96
GlobalIdentifier.h
NanoAODOutputModule::m_parameterSetsTree
std::unique_ptr< TTree > m_parameterSetsTree
Definition: NanoAODOutputModule.cc:72
edm::Service
Definition: Service.h:30
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
UniqueString.h
edm::LuminosityBlockForOutput::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockForOutput.h:49
BranchType.h
edm::JobReport::reportRunNumber
void reportRunNumber(JobReport::Token token, unsigned int run)
Definition: JobReport.cc:469
edm::ParameterSetDescription::setAllowAnything
void setAllowAnything()
allow any parameter label/value pairs
Definition: ParameterSetDescription.cc:37
edm::LuminosityBlockID::value
uint64_t value() const
Definition: LuminosityBlockID.cc:13
NanoAODOutputModule::m_fakeName
bool m_fakeName
Definition: NanoAODOutputModule.cc:67
FlatTable.h
NanoAODOutputModule::m_nanoMetadata
std::vector< std::pair< std::string, edm::EDGetToken > > m_nanoMetadata
Definition: NanoAODOutputModule.cc:127
NanoAODOutputModule::m_fileName
std::string m_fileName
Definition: NanoAODOutputModule.cc:61
NanoAODOutputModule::m_writeProvenance
bool m_writeProvenance
Definition: NanoAODOutputModule.cc:66
TableOutputBranches.h
Digest.h
edm::EventForOutput
Definition: EventForOutput.h:50
edm::one::OutputModuleBase::description
ModuleDescription const & description() const
Definition: OutputModuleBase.cc:340
std
Definition: JetResolutionObject.h:76
NanoAODOutputModule::CommonLumiBranches::m_luminosityBlock
UInt_t m_luminosityBlock
Definition: NanoAODOutputModule.cc:108
NanoAODOutputModule::m_file
std::unique_ptr< TFile > m_file
Definition: NanoAODOutputModule.cc:71
NanoAODOutputModule::m_triggers
std::vector< TriggerOutputBranches > m_triggers
Definition: NanoAODOutputModule.cc:121
edm::poolNames::metaDataTreeName
std::string const & metaDataTreeName()
Definition: BranchType.cc:162
Exception
Definition: hltDiff.cc:246
NanoAODOutputModule::CommonEventBranches
Definition: NanoAODOutputModule.cc:76
TriggerOutputBranches.h
edm::fillProcessHistoryBranch
void fillProcessHistoryBranch(TTree *metaDataTree, int basketSize, ProcessHistoryRegistry const &processHistoryRegistry)
Definition: CommonProvenanceFiller.cc:32
edm::LuminosityBlockID::run
RunNumber_t run() const
Definition: LuminosityBlockID.h:41
edm::ProcessHistoryRegistry
Definition: ProcessHistoryRegistry.h:18
SummaryTableOutputBranches
Definition: SummaryTableOutputBranches.h:12
NanoAODOutputModule::m_metaDataTree
std::unique_ptr< TTree > m_metaDataTree
Definition: NanoAODOutputModule.cc:72
NanoAODOutputModule::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: NanoAODOutputModule.cc:356
cms::Exception
Definition: Exception.h:70
JobReport.h
ParameterSet.h
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
LuminosityBlockForOutput.h
NanoAODOutputModule::~NanoAODOutputModule
~NanoAODOutputModule() override
Definition: NanoAODOutputModule.cc:153
NanoAODOutputModule::write
void write(edm::EventForOutput const &e) override
Definition: NanoAODOutputModule.cc:155
cms::MD5Result::toString
std::string toString() const
Definition: Digest.cc:95
edm::EventID
Definition: EventID.h:31
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
keep
const int keep
Definition: GenParticlePruner.cc:48
NanoAODOutputModule::m_triggers_areSorted
bool m_triggers_areSorted
Definition: NanoAODOutputModule.cc:122
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
NanoAODOutputModule::CommonRunBranches::fill
void fill(const edm::RunID &id)
Definition: NanoAODOutputModule.cc:114
nanoaod::UniqueString::str
const std::string & str() const
Definition: UniqueString.h:12
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::createGlobalIdentifier
std::string createGlobalIdentifier()
Definition: GlobalIdentifier.cc:5