FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RootOutFileManager< DataType > Class Template Reference

#include <RootOutFileManager.h>

Public Member Functions

 RootOutFileManager ()
 
 RootOutFileManager (const std::string &filename, const std::string &treeName, const std::string &branchName, const std::string &className, const std::string &fileOption)
 
 RootOutFileManager (const RootOutFileManager &)=delete
 
RootOutFileManager operator= (const RootOutFileManager &)=delete
 
virtual ~RootOutFileManager ()
 
void SetFileProperties (const std::string &filename, const std::string &treeName, const std::string &branchName, const std::string &className="", const std::string &fileOption="RECREATE", bool useClonesArray=false, bool flowMode=true)
 
void SetFileProperties (const FairMQProgOptions &config)
 
void AddToFile (std::vector< DataType > &inputData)
 
void AddToFile (DataType *objArr, long size)
 
void AddToFile (TClonesArray *inputData)
 
void AddToFile (FairMQMessage *msg)
 
void AddToFile (std::unique_ptr< TClonesArray > &input)
 
void InitOutputFile ()
 
void InitTCA (const std::string &classname)
 
std::vector< std::vector
< DataType > > 
GetAllObj (const std::string &filename, const std::string &treename, const std::string &branchname)
 
template<typename... Args>
void Serialize (Args &&...args)
 

Protected Member Functions

virtual void Init ()
 

Protected Attributes

std::string fFilename
 
std::string fTreeName
 
std::string fBranchName
 
std::string fClassName
 
std::string fFileOption
 
bool fUseClonesArray
 
bool fFlowMode
 
bool fWrite
 
TFile * fOutFile
 
TTree * fTree
 
TClonesArray * fOutput
 
DataType * fOutputData
 
TFolder * fFolder
 

Detailed Description

template<typename DataType>
class RootOutFileManager< DataType >

Definition at line 33 of file RootOutFileManager.h.

Constructor & Destructor Documentation

template<typename DataType >
RootOutFileManager< DataType >::RootOutFileManager ( )
inline

Definition at line 36 of file RootOutFileManager.h.

template<typename DataType >
RootOutFileManager< DataType >::RootOutFileManager ( const std::string &  filename,
const std::string &  treeName,
const std::string &  branchName,
const std::string &  className,
const std::string &  fileOption 
)
inline

Definition at line 52 of file RootOutFileManager.h.

template<typename DataType >
RootOutFileManager< DataType >::RootOutFileManager ( const RootOutFileManager< DataType > &  )
delete
template<typename DataType >
virtual RootOutFileManager< DataType >::~RootOutFileManager ( )
inlinevirtual

Definition at line 75 of file RootOutFileManager.h.

Member Function Documentation

template<typename DataType >
void RootOutFileManager< DataType >::AddToFile ( std::vector< DataType > &  inputData)
inline

Definition at line 130 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::AddToFile ( DataType *  objArr,
long  size 
)
inline

Definition at line 155 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::AddToFile ( TClonesArray *  inputData)
inline

Definition at line 179 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::AddToFile ( FairMQMessage *  msg)
inline

Definition at line 197 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::AddToFile ( std::unique_ptr< TClonesArray > &  input)
inline

Definition at line 208 of file RootOutFileManager.h.

template<typename DataType >
std::vector<std::vector<DataType> > RootOutFileManager< DataType >::GetAllObj ( const std::string &  filename,
const std::string &  treename,
const std::string &  branchname 
)
inline

Definition at line 260 of file RootOutFileManager.h.

template<typename DataType >
virtual void RootOutFileManager< DataType >::Init ( )
inlineprotectedvirtual

Definition at line 320 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::InitOutputFile ( )
inline

Definition at line 210 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::InitTCA ( const std::string &  classname)
template<typename DataType >
RootOutFileManager RootOutFileManager< DataType >::operator= ( const RootOutFileManager< DataType > &  )
delete
template<typename DataType >
template<typename... Args>
void RootOutFileManager< DataType >::Serialize ( Args &&...  args)
inline

Definition at line 314 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::SetFileProperties ( const std::string &  filename,
const std::string &  treeName,
const std::string &  branchName,
const std::string &  className = "",
const std::string &  fileOption = "RECREATE",
bool  useClonesArray = false,
bool  flowMode = true 
)
inline

Definition at line 93 of file RootOutFileManager.h.

template<typename DataType >
void RootOutFileManager< DataType >::SetFileProperties ( const FairMQProgOptions &  config)
inline

Definition at line 114 of file RootOutFileManager.h.

Member Data Documentation

template<typename DataType >
std::string RootOutFileManager< DataType >::fBranchName
protected

Definition at line 363 of file RootOutFileManager.h.

template<typename DataType >
std::string RootOutFileManager< DataType >::fClassName
protected

Definition at line 364 of file RootOutFileManager.h.

template<typename DataType >
std::string RootOutFileManager< DataType >::fFilename
protected

Definition at line 361 of file RootOutFileManager.h.

template<typename DataType >
std::string RootOutFileManager< DataType >::fFileOption
protected

Definition at line 365 of file RootOutFileManager.h.

template<typename DataType >
bool RootOutFileManager< DataType >::fFlowMode
protected

Definition at line 367 of file RootOutFileManager.h.

template<typename DataType >
TFolder* RootOutFileManager< DataType >::fFolder
protected

Definition at line 374 of file RootOutFileManager.h.

template<typename DataType >
TFile* RootOutFileManager< DataType >::fOutFile
protected

Definition at line 370 of file RootOutFileManager.h.

template<typename DataType >
TClonesArray* RootOutFileManager< DataType >::fOutput
protected

Definition at line 372 of file RootOutFileManager.h.

template<typename DataType >
DataType* RootOutFileManager< DataType >::fOutputData
protected

Definition at line 373 of file RootOutFileManager.h.

template<typename DataType >
TTree* RootOutFileManager< DataType >::fTree
protected

Definition at line 371 of file RootOutFileManager.h.

template<typename DataType >
std::string RootOutFileManager< DataType >::fTreeName
protected

Definition at line 362 of file RootOutFileManager.h.

template<typename DataType >
bool RootOutFileManager< DataType >::fUseClonesArray
protected

Definition at line 366 of file RootOutFileManager.h.

template<typename DataType >
bool RootOutFileManager< DataType >::fWrite
protected

Definition at line 368 of file RootOutFileManager.h.


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