Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RJittedDefine.cxx
Go to the documentation of this file.
1// Author: Enrico Guiraud, Danilo Piparo CERN 09/2018
2
3/*************************************************************************
4 * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
12#include <TError.h> // R__ASSERT
13
14using namespace ROOT::Detail::RDF;
15
16void RJittedDefine::InitSlot(TTreeReader *r, unsigned int slot)
17{
18 R__ASSERT(fConcreteDefine != nullptr);
19 fConcreteDefine->InitSlot(r, slot);
20}
21
22void *RJittedDefine::GetValuePtr(unsigned int slot)
23{
24 R__ASSERT(fConcreteDefine != nullptr);
25 return fConcreteDefine->GetValuePtr(slot);
26}
27
28const std::type_info &RJittedDefine::GetTypeId() const
29{
30 R__ASSERT(fConcreteDefine != nullptr);
31 return fConcreteDefine->GetTypeId();
32}
33
34void RJittedDefine::Update(unsigned int slot, Long64_t entry)
35{
36 R__ASSERT(fConcreteDefine != nullptr);
37 fConcreteDefine->Update(slot, entry);
38}
39
40void RJittedDefine::FinaliseSlot(unsigned int slot)
41{
42 R__ASSERT(fConcreteDefine != nullptr);
43 fConcreteDefine->FinaliseSlot(slot);
44}
ROOT::R::TRInterface & r
Definition Object.C:4
long long Long64_t
Definition RtypesCore.h:73
#define R__ASSERT(e)
Definition TError.h:120
void InitSlot(TTreeReader *r, unsigned int slot) final
void FinaliseSlot(unsigned int slot) final
Clean-up operations to be performed at the end of a task.
void Update(unsigned int slot, Long64_t entry) final
Update the value at the address returned by GetValuePtr with the content corresponding to the given e...
std::unique_ptr< RDefineBase > fConcreteDefine
const std::type_info & GetTypeId() const final
void * GetValuePtr(unsigned int slot) final
Return the (type-erased) address of the Define'd value for the given processing slot.
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
Definition TTreeReader.h:44