CMS 3D CMS Logo

EventStringOutputFields.cc
Go to the documentation of this file.
3 
5 
8 }
9 
11  std::vector<std::string> evstrings;
12  if (m_lastLumi != iEvent.id().luminosityBlock()) {
14  for (const auto &t : m_tokens) {
15  iEvent.getByToken(t, handle);
16  const std::string &evstr = *handle;
17  if (!evstr.empty()) {
18  evstrings.push_back(evstr);
19  }
20  }
21  m_lastLumi = iEvent.id().luminosityBlock();
22  }
23  m_evstrings.fill(evstrings);
24 }
void fill(const T &value)
RNTupleFieldPtr< std::vector< std::string > > m_evstrings
int iEvent
Definition: GenABIO.cc:224
void createFields(RNTupleModel &model)
std::vector< edm::EDGetToken > m_tokens
void fill(const edm::EventForOutput &iEvent)
void registerToken(const edm::EDGetToken &token)