CMS 3D CMS Logo

EventStringOutputFields.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_NanoAOD_EventStringOutputFields_h
2 #define PhysicsTools_NanoAOD_EventStringOutputFields_h
3 
4 #include <string>
5 #include <vector>
7 
8 #include <ROOT/RNTupleModel.hxx>
9 using ROOT::Experimental::RNTupleModel;
10 
11 #include "RNTupleFieldPtr.h"
12 
14 private:
15  std::vector<edm::EDGetToken> m_tokens;
17  long m_lastLumi = -1;
18 
19 public:
20  EventStringOutputFields() = default;
21 
22  void registerToken(const edm::EDGetToken &token);
23  void createFields(RNTupleModel &model);
24  void fill(const edm::EventForOutput &iEvent);
25 };
26 
27 #endif
EventStringOutputFields()=default
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)