src
PhysicsTools
NanoAOD
plugins
rntuple
RNTupleFieldPtr.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_NanoAOD_RNTupleFieldPtr_h
2
#define PhysicsTools_NanoAOD_RNTupleFieldPtr_h
3
4
#include <ROOT/RNTupleModel.hxx>
5
using
ROOT::Experimental::RNTupleModel;
6
7
template
<
typename
T>
8
class
RNTupleFieldPtr
{
9
public
:
10
RNTupleFieldPtr
() =
default
;
11
explicit
RNTupleFieldPtr
(
const
std::string
&
name
,
const
std::string
&
desc
, RNTupleModel&
model
) :
m_name
(
name
) {
12
m_field
=
model
.MakeField<
T
>({
m_name
,
desc
});
13
}
14
void
fill
(
const
T
&
value
) { *
m_field
=
value
; }
15
const
std::string
&
getFieldName
()
const
{
return
m_name
; }
16
17
private
:
18
std::string
m_name
;
19
std::shared_ptr<T>
m_field
;
20
};
21
22
#endif
RNTupleFieldPtr::m_name
std::string m_name
Definition:
RNTupleFieldPtr.h:18
RNTupleFieldPtr::fill
void fill(const T &value)
Definition:
RNTupleFieldPtr.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
isotrackApplyRegressor.model
model
Definition:
isotrackApplyRegressor.py:110
RNTupleFieldPtr::getFieldName
const std::string & getFieldName() const
Definition:
RNTupleFieldPtr.h:15
RNTupleFieldPtr::RNTupleFieldPtr
RNTupleFieldPtr(const std::string &name, const std::string &desc, RNTupleModel &model)
Definition:
RNTupleFieldPtr.h:11
mergeVDriftHistosByStation.name
name
Definition:
mergeVDriftHistosByStation.py:78
RNTupleFieldPtr
Definition:
RNTupleFieldPtr.h:8
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:263
RNTupleFieldPtr::m_field
std::shared_ptr< T > m_field
Definition:
RNTupleFieldPtr.h:19
value
Definition:
value.py:1
RNTupleFieldPtr::RNTupleFieldPtr
RNTupleFieldPtr()=default
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
T
long double T
Definition:
Basic3DVectorLD.h:48
Generated for CMSSW Reference Manual by
1.8.14