ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RFieldProvider.hxx
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
3
* All rights reserved. *
4
* *
5
* For the licensing terms see $ROOTSYS/LICENSE. *
6
* For the list of contributors see $ROOTSYS/README/CREDITS. *
7
*************************************************************************/
8
9
#ifndef ROOT_Browsable_RFieldProvider
10
#define ROOT_Browsable_RFieldProvider
11
12
#include "
TH1.h
"
13
#include "
TMath.h
"
14
#include <map>
15
#include <memory>
16
#include <string>
17
#include <utility>
18
19
#include <
ROOT/Browsable/RProvider.hxx
>
20
21
#include <
ROOT/RFieldVisitor.hxx
>
22
#include <
ROOT/RPageStorage.hxx
>
23
#include <
ROOT/RNTupleDrawVisitor.hxx
>
24
#include <
ROOT/RNTupleView.hxx
>
25
26
#include "
RFieldHolder.hxx
"
27
28
using namespace
ROOT::Browsable
;
29
30
using namespace
std::string_literals;
31
32
// ==============================================================================================
33
34
/** \class RFieldProvider
35
\ingroup rbrowser
36
\brief Base class for provider of RNTuple drawing
37
\author Sergey Linev <S.Linev@gsi.de>
38
\date 2021-03-09
39
\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
40
*/
41
42
class
RFieldProvider
:
public
RProvider
{
43
public
:
44
// virtual ~RFieldProvider() = default;
45
46
TH1
*
DrawField
(
RFieldHolder
*
holder
)
47
{
48
if
(!
holder
)
return
nullptr
;
49
50
auto
ntplReader
=
holder
->GetNtplReader();
51
52
const
auto
qualifiedFieldName
=
ntplReader
->GetDescriptor().GetQualifiedFieldName(
holder
->GetId());
53
auto
view =
ntplReader
->GetView<
void
>(
qualifiedFieldName
);
54
55
ROOT::Internal::RNTupleDrawVisitor
drawVisitor
(
ntplReader
,
holder
->GetDisplayName());
56
view.GetField().AcceptVisitor(
drawVisitor
);
57
return
drawVisitor
.MoveHist();
58
}
59
};
60
61
#endif
RFieldHolder.hxx
RFieldVisitor.hxx
RNTupleDrawVisitor.hxx
RNTupleView.hxx
RPageStorage.hxx
RProvider.hxx
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TH1.h
TMath.h
RFieldHolder
Definition
RFieldHolder.hxx:27
RFieldProvider
Base class for provider of RNTuple drawing.
Definition
RFieldProvider.hxx:42
RFieldProvider::DrawField
TH1 * DrawField(RFieldHolder *holder)
Definition
RFieldProvider.hxx:46
ROOT::Browsable::RProvider
Provider of different browsing methods for supported classes.
Definition
RProvider.hxx:37
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
ROOT::Internal::RNTupleDrawVisitor
Definition
RNTupleDrawVisitor.hxx:33
TH1
TH1 is the base class of all histogram classes in ROOT.
Definition
TH1.h:109
ROOT::Browsable
Definition
RAnyObjectHolder.hxx:15
gui
browsable
src
RFieldProvider.hxx
ROOT master - Reference Guide Generated on Sat Sep 6 2025 15:06:41 (GVA Time) using Doxygen 1.10.0