Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::JRootObjectOutput< T, true > Class Template Reference

Implementation of object output using TTree. More...

#include <JRootFileWriter.hh>

Inheritance diagram for JROOT::JRootObjectOutput< T, true >:
JROOT::JTreeWriterObjectOutput< T > JLANG::JObjectOutput< T >

Public Member Functions

JTreeWriter< T > & getTreeWriter ()
 Get TreeWriter.
 
virtual bool put (const T &object) override
 Object output.
 
void SetCircular (Long64_t size)
 Set circular buffer size.
 
void Reset ()
 Reset TTree.
 

Protected Member Functions

void SetDirectory (TDirectory *dir)
 Set directory.
 

Protected Attributes

JTreeWriter< T, JRootCreateFlatTree< T >::value > * out
 
bool del
 

Detailed Description

template<class T>
class JROOT::JRootObjectOutput< T, true >

Implementation of object output using TTree.

This class implements the JLANG::JObjectOutput interface.

Definition at line 149 of file JRootFileWriter.hh.

Member Function Documentation

◆ SetDirectory()

template<class T >
void JROOT::JTreeWriterObjectOutput< T >::SetDirectory ( TDirectory * dir)
inlineprotectedinherited

Set directory.

Parameters
dirpointer to directory

Definition at line 61 of file JTreeWriterObjectOutput.hh.

62 {
63 out->SetDirectory(dir);
64
65 del = (dir == NULL);
66 }
JTreeWriter< T, JRootCreateFlatTree< T >::value > * out

◆ getTreeWriter()

template<class T >
JTreeWriter< T > & JROOT::JTreeWriterObjectOutput< T >::getTreeWriter ( )
inlineinherited

Get TreeWriter.

Returns
TreeWriter

Definition at line 78 of file JTreeWriterObjectOutput.hh.

79 {
80 return *out;
81 }

◆ put()

template<class T >
virtual bool JROOT::JTreeWriterObjectOutput< T >::put ( const T & object)
inlineoverridevirtualinherited

Object output.

Parameters
objectobject
Returns
true if OK; else false

Implements JLANG::JObjectOutput< T >.

Definition at line 90 of file JTreeWriterObjectOutput.hh.

91 {
92 return (out->Write(object) > 0);
93 }

◆ SetCircular()

template<class T >
void JROOT::JTreeWriterObjectOutput< T >::SetCircular ( Long64_t size)
inlineinherited

Set circular buffer size.

Parameters
sizenumber of entries

Definition at line 101 of file JTreeWriterObjectOutput.hh.

102 {
103 out->SetCircular(size);
104 }

◆ Reset()

template<class T >
void JROOT::JTreeWriterObjectOutput< T >::Reset ( )
inlineinherited

Reset TTree.

Definition at line 110 of file JTreeWriterObjectOutput.hh.

111 {
112 out->Reset();
113 }

Member Data Documentation

◆ out

template<class T >
JTreeWriter<T,JRootCreateFlatTree<T>::value>* JROOT::JTreeWriterObjectOutput< T >::out
protectedinherited

Definition at line 69 of file JTreeWriterObjectOutput.hh.

◆ del

template<class T >
bool JROOT::JTreeWriterObjectOutput< T >::del
protectedinherited

Definition at line 70 of file JTreeWriterObjectOutput.hh.


The documentation for this class was generated from the following file: