Hall-D Software
alpha
|
#include <DTreeInterface.h>
Classes | |
struct | DROOTTypeString |
struct | DROOTTypeString< Bool_t > |
struct | DROOTTypeString< Char_t > |
struct | DROOTTypeString< Double_t > |
struct | DROOTTypeString< Float_t > |
struct | DROOTTypeString< Int_t > |
struct | DROOTTypeString< Long64_t > |
struct | DROOTTypeString< Short_t > |
struct | DROOTTypeString< UChar_t > |
struct | DROOTTypeString< UInt_t > |
struct | DROOTTypeString< ULong64_t > |
struct | DROOTTypeString< UShort_t > |
Public Member Functions | |
~DTreeInterface (void) | |
void | Set_InitialArraySize (string locArraySizeBranchName, UInt_t locInitialSize) |
bool | Create_Branches (const DTreeBranchRegister &locTreeBranchRegister) |
void | Set_TreeIndexBranchNames (string locTreeIndex_MajorBranchName, string locTreeIndex_MinorBranchName="0") |
bool | Get_BranchesCreatedFlag (void) const |
const TList * | Get_UserInfo (void) const |
void | Fill (DTreeFillData &locTreeFillData) |
Static Public Member Functions | |
static DTreeInterface * | Create_DTreeInterface (string locTreeName, string locFileName) |
Private Member Functions | |
DTreeInterface (string locTreeName, string locFileName) | |
DTreeInterface (void) | |
void | GetOrCreate_FileAndTree (string locTreeName) |
void | Create_Branch (const DTreeBranchRegister &locTreeBranchRegister, string locBranchName, map< string, size_t > &locFundamentalArraySizeMap) |
void | Create_Branch (string locBranchName, type_index locTypeIndex, size_t locArraySize, string locArraySizeName) |
template<typename DType > | |
enable_if< std::is_base_of < TObject, DType >::value, void >::type | Create_Branch (string locBranchName, size_t locArraySize, string locArraySizeName) |
template<typename DType > | |
enable_if<!std::is_base_of < TObject, DType >::value, void >::type | Create_Branch (string locBranchName, size_t locArraySize, string locArraySizeName) |
template<typename DType > | |
void | Create_Branch_Fundamental (string locBranchName) |
template<typename DType > | |
void | Create_Branch_TObject (string locBranchName) |
template<typename DType > | |
void | Create_Branch_FundamentalArray (string locBranchName, string locArraySizeString, unsigned int locInitialSize) |
template<typename DType > | |
void | Create_Branch_ClonesArray (string locBranchName, unsigned int locSize) |
void | Change_ArraySize (string locBranchName, type_index locTypeIndex, size_t locNewArraySize) |
template<typename DType > | |
void | Change_ArraySize (string locBranchName, int locNewArraySize) |
void | Fill (string locBranchName, type_index locTypeIndex, void *locVoidPointer, bool locIsArrayFlag, size_t locArrayIndex=0) |
template<typename DType > | |
void | Fill_TObject (string locBranchName, DType &locObject, bool locIsArrayFlag, size_t locArrayIndex) |
template<typename DType > | |
DType * | Get_Pointer_Fundamental (string locBranchName) const |
template<typename DType > | |
DType * | Get_Pointer_TObject (string locBranchName) const |
TClonesArray * | Get_Pointer_TClonesArray (string locBranchName) |
map< string, int > & | Get_NumWritersByFileMap (void) const |
map< string, size_t > & | Get_FundamentalArraySizeMap (TTree *locTree) const |
Private Attributes | |
TTree * | dTree |
string | dFileName |
string | dTreeIndex_MajorBranchName |
string | dTreeIndex_MinorBranchName |
size_t | dMaxArraySize = 1000 |
Long64_t | dAutoFlush = -5000000 |
map< string, TClonesArray * > | dMemoryMap_ClonesArray |
map< string, TObject * > | dMemoryMap_TObject |
Definition at line 29 of file DTreeInterface.h.
DTreeInterface::~DTreeInterface | ( | void | ) |
Definition at line 59 of file DTreeInterface.cc.
References dFileName, dTree, dTreeIndex_MajorBranchName, dTreeIndex_MinorBranchName, Get_NumWritersByFileMap(), and japp.
Definition at line 42 of file DTreeInterface.cc.
References dFileName, Get_NumWritersByFileMap(), GetOrCreate_FileAndTree(), and japp.
|
private |
Referenced by Create_DTreeInterface().
|
private |
Definition at line 315 of file DTreeInterface.cc.
Referenced by Fill().
|
inlineprivate |
Definition at line 262 of file DTreeInterface.h.
|
private |
Definition at line 179 of file DTreeInterface.cc.
References DTreeBranchRegister::dArraySizeNameMap, DTreeBranchRegister::dBranchTypeMap, and DTreeBranchRegister::dInitialArraySizeMap.
Referenced by Create_Branches().
|
private |
Definition at line 204 of file DTreeInterface.cc.
|
inlineprivate |
Definition at line 183 of file DTreeInterface.h.
|
inlineprivate |
Definition at line 192 of file DTreeInterface.h.
|
inlineprivate |
Definition at line 229 of file DTreeInterface.h.
|
inlineprivate |
Definition at line 200 of file DTreeInterface.h.
References string.
|
inlineprivate |
Definition at line 219 of file DTreeInterface.h.
References string.
|
inlineprivate |
Definition at line 210 of file DTreeInterface.h.
bool DTreeInterface::Create_Branches | ( | const DTreeBranchRegister & | locTreeBranchRegister | ) |
Definition at line 125 of file DTreeInterface.cc.
References Create_Branch(), DTreeBranchRegister::dArraySizeNameMap, DTreeBranchRegister::dBranchNames, dFileName, dTree, Get_FundamentalArraySizeMap(), DTreeBranchRegister::Get_UserInfo(), and japp.
Referenced by DEventWriterROOT::Create_DataTree(), DEventWriterROOT::Create_ThrownTree(), JEventProcessor_TOF_Eff::init(), JEventProcessor_SC_Eff::init(), JEventProcessor_FCAL_Hadronic_Eff::init(), JEventProcessor_BCAL_Hadronic_Eff::init(), JEventProcessor_BCAL_LED::init(), JEventProcessor_cdc_emu::init(), and DCustomAction_TrackingEfficiency::Initialize().
|
static |
Definition at line 30 of file DTreeInterface.cc.
References DTreeInterface().
Referenced by DEventWriterROOT::Create_DataTree(), DEventWriterROOT::Create_ThrownTree(), JEventProcessor_PS_flux::init(), JEventProcessor_TS_scaler::init(), JEventProcessor_TPOL_tree::init(), JEventProcessor_scanf250::init(), JEventProcessor_TOF_Eff::init(), JEventProcessor_SC_Eff::init(), JEventProcessor_FCAL_Hadronic_Eff::init(), JEventProcessor_BCAL_Hadronic_Eff::init(), JEventProcessor_BCAL_LED::init(), JEventProcessor_cdc_emu::init(), and DCustomAction_TrackingEfficiency::Initialize().
void DTreeInterface::Fill | ( | DTreeFillData & | locTreeFillData | ) |
Definition at line 241 of file DTreeInterface.cc.
References Change_ArraySize(), DTreeFillData::dArrayLargestIndexFilledMap, dFileName, DTreeFillData::dFillData, dTree, Get_FundamentalArraySizeMap(), Get_Pointer_TClonesArray(), and japp.
Referenced by JEventProcessor_TOF_Eff::evnt(), JEventProcessor_FCAL_Hadronic_Eff::evnt(), JEventProcessor_SC_Eff::evnt(), JEventProcessor_BCAL_Hadronic_Eff::evnt(), JEventProcessor_BCAL_LED::evnt(), JEventProcessor_cdc_emu::evnt(), DEventWriterROOT::Fill_DataTree(), DEventWriterROOT::Fill_ThrownTree(), and DCustomAction_TrackingEfficiency::Perform_Action().
|
private |
Definition at line 342 of file DTreeInterface.cc.
|
inlineprivate |
Definition at line 271 of file DTreeInterface.h.
bool DTreeInterface::Get_BranchesCreatedFlag | ( | void | ) | const |
Definition at line 112 of file DTreeInterface.cc.
References dFileName, dTree, and japp.
Referenced by DEventWriterROOT::Create_DataTree(), and DEventWriterROOT::Create_ThrownTree().
|
private |
Definition at line 13 of file DTreeInterface.cc.
References japp.
Referenced by Create_Branches(), and Fill().
|
private |
Definition at line 5 of file DTreeInterface.cc.
Referenced by DTreeInterface(), and ~DTreeInterface().
|
inlineprivate |
Definition at line 162 of file DTreeInterface.h.
|
inlineprivate |
Definition at line 174 of file DTreeInterface.h.
Referenced by Fill().
|
inlineprivate |
Definition at line 168 of file DTreeInterface.h.
const TList * DTreeInterface::Get_UserInfo | ( | void | ) | const |
Definition at line 120 of file DTreeInterface.cc.
References dTree.
|
private |
Definition at line 85 of file DTreeInterface.cc.
References dAutoFlush, dFileName, dTree, and japp.
Referenced by DTreeInterface().
void DTreeInterface::Set_InitialArraySize | ( | string | locArraySizeBranchName, |
UInt_t | locInitialSize | ||
) |
|
inline |
Definition at line 255 of file DTreeInterface.h.
Referenced by DEventWriterROOT::Create_DataTree(), and DEventWriterROOT::Create_ThrownTree().
|
private |
Definition at line 154 of file DTreeInterface.h.
Referenced by GetOrCreate_FileAndTree().
|
private |
Definition at line 144 of file DTreeInterface.h.
Referenced by Create_Branches(), DTreeInterface(), Fill(), Get_BranchesCreatedFlag(), GetOrCreate_FileAndTree(), and ~DTreeInterface().
|
private |
Definition at line 153 of file DTreeInterface.h.
|
private |
Definition at line 155 of file DTreeInterface.h.
|
private |
Definition at line 156 of file DTreeInterface.h.
|
private |
Definition at line 143 of file DTreeInterface.h.
Referenced by Create_Branches(), Fill(), Get_BranchesCreatedFlag(), Get_UserInfo(), GetOrCreate_FileAndTree(), and ~DTreeInterface().
|
private |
Definition at line 145 of file DTreeInterface.h.
Referenced by ~DTreeInterface().
|
private |
Definition at line 146 of file DTreeInterface.h.
Referenced by ~DTreeInterface().