src
PhysicsTools
NanoAOD
plugins
rntuple
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>
6
#include "
FWCore/Utilities/interface/EDGetToken.h
"
7
8
#include <ROOT/RNTupleModel.hxx>
9
using
ROOT::Experimental::RNTupleModel;
10
11
#include "
RNTupleFieldPtr.h
"
12
13
class
EventStringOutputFields
{
14
private
:
15
std::vector<edm::EDGetToken>
m_tokens
;
16
RNTupleFieldPtr<std::vector<std::string>
>
m_evstrings
;
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
Definition:
EventStringOutputFields.h:13
EventStringOutputFields::EventStringOutputFields
EventStringOutputFields()=default
edm::EDGetToken
Definition:
EDGetToken.h:39
EventStringOutputFields::m_evstrings
RNTupleFieldPtr< std::vector< std::string > > m_evstrings
Definition:
EventStringOutputFields.h:16
iEvent
int iEvent
Definition:
GenABIO.cc:224
RNTupleFieldPtr
Definition:
RNTupleFieldPtr.h:8
EDGetToken.h
EventStringOutputFields::m_lastLumi
long m_lastLumi
Definition:
EventStringOutputFields.h:17
RNTupleFieldPtr.h
edm::EventForOutput
Definition:
EventForOutput.h:50
EventStringOutputFields::createFields
void createFields(RNTupleModel &model)
Definition:
EventStringOutputFields.cc:6
EventStringOutputFields::m_tokens
std::vector< edm::EDGetToken > m_tokens
Definition:
EventStringOutputFields.h:15
EventStringOutputFields::fill
void fill(const edm::EventForOutput &iEvent)
Definition:
EventStringOutputFields.cc:10
EventStringOutputFields::registerToken
void registerToken(const edm::EDGetToken &token)
Definition:
EventStringOutputFields.cc:4
ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi.model
model
Definition:
ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi.py:11
unpackBuffers-CaloStage2.token
token
Definition:
unpackBuffers-CaloStage2.py:316
Generated for CMSSW Reference Manual by
1.8.14