GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
GamR::Tree::TExpDefn< ADefns > Class Template Reference

#include <ExpDefn.hh>

+ Inheritance diagram for GamR::Tree::TExpDefn< ADefns >:
+ Collaboration diagram for GamR::Tree::TExpDefn< ADefns >:

Classes

struct  FillDetDefns
 

Public Member Functions

 TExpDefn ()
 
 ~TExpDefn ()
 
template<int N>
auto GetDetDefns () -> decltype(std::get< N >(fDetDefns)) &
 
auto GetAllDetDefns () -> decltype(fDetDefns) &
 
void CloseFiles ()
 
Int_t Load (std::vector< std::string > rootfn, std::string inifn, Bool_t quiet=kFALSE)
 
Int_t LoadRaw (std::vector< std::string > branchlist, std::string inifn, Bool_t quiet)
 
void ResetBranches (std::vector< std::string >)
 
template<typename EventType>
ULong64_t Convert (std::string outfn, ULong64_t eventoffset, ULong64_t nevents=0, Bool_t quiet=kFALSE, Int_t compression=201, ULong64_t splitmb=2000, Bool_t overwrite=kFALSE)
 
 ClassDef (TExpDefn, 1)
 

Public Attributes

TFile * fOutFile
 
TChain * fRawChain
 
TTree * fOutTree
 
std::tuple< std::vector< ADefns >... > fDetDefns
 
std::map< std::string, void * > fBranchMap
 
std::vector< std::string > fDetGroups
 
INIReader fINIReader
 
std::string fINI
 

Detailed Description

template<class... ADefns>
class GamR::Tree::TExpDefn< ADefns >

Definition at line 27 of file ExpDefn.hh.

Constructor & Destructor Documentation

◆ TExpDefn()

template<class... ADefns>
GamR::Tree::TExpDefn< ADefns >::TExpDefn ( )
inline

Definition at line 44 of file ExpDefn.hh.

Referenced by ClassDef().

+ Here is the caller graph for this function:

◆ ~TExpDefn()

template<class... ADefns>
GamR::Tree::TExpDefn< ADefns >::~TExpDefn ( )
inline

Definition at line 45 of file ExpDefn.hh.

References fBranchMap.

Member Function Documentation

◆ ClassDef()

template<class... ADefns>
GamR::Tree::TExpDefn< ADefns >::ClassDef ( TExpDefn< ADefns > ,
1  )

References TExpDefn().

+ Here is the call graph for this function:

◆ CloseFiles()

template<class... ADefns>
void GamR::Tree::TExpDefn< ADefns >::CloseFiles ( )
inline

Definition at line 59 of file ExpDefn.hh.

◆ Convert()

template<class... ADefns>
template<typename EventType>
ULong64_t GamR::Tree::TExpDefn< ADefns >::Convert ( std::string outfn,
ULong64_t eventoffset,
ULong64_t nevents = 0,
Bool_t quiet = kFALSE,
Int_t compression = 201,
ULong64_t splitmb = 2000,
Bool_t overwrite = kFALSE )

Definition at line 234 of file ExpDefn.tt.

References DEMANGLE_TYPEID_NAME, fDetDefns, fINI, fOutFile, fOutTree, and fRawChain.

◆ GetAllDetDefns()

template<class... ADefns>
auto GamR::Tree::TExpDefn< ADefns >::GetAllDetDefns ( ) -> decltype(fDetDefns) &
inline

Definition at line 58 of file ExpDefn.hh.

References fDetDefns.

◆ GetDetDefns()

template<class... ADefns>
template<int N>
auto GamR::Tree::TExpDefn< ADefns >::GetDetDefns ( ) -> decltype(std::get<N>(fDetDefns)) &
inline

Definition at line 54 of file ExpDefn.hh.

References fDetDefns.

◆ Load()

template<class... ADefns>
Int_t GamR::Tree::TExpDefn< ADefns >::Load ( std::vector< std::string > rootfn,
std::string inifn,
Bool_t quiet = kFALSE )

Definition at line 73 of file ExpDefn.tt.

References fBranchMap, fDetDefns, fDetGroups, fINI, fINIReader, GamR::Utils::for_each_in_tuple(), fRawChain, and ss().

+ Here is the call graph for this function:

◆ LoadRaw()

template<class... ADefns>
Int_t GamR::Tree::TExpDefn< ADefns >::LoadRaw ( std::vector< std::string > branchlist,
std::string inifn,
Bool_t quiet )

Definition at line 167 of file ExpDefn.tt.

References fBranchMap, fDetDefns, fDetGroups, fINI, fINIReader, GamR::Utils::for_each_in_tuple(), and ss().

+ Here is the call graph for this function:

◆ ResetBranches()

template<class ... ADefns>
void GamR::Tree::TExpDefn< ADefns >::ResetBranches ( std::vector< std::string > branchnames)

Definition at line 223 of file ExpDefn.tt.

References fBranchMap.

Member Data Documentation

◆ fBranchMap

template<class... ADefns>
std::map<std::string, void *> GamR::Tree::TExpDefn< ADefns >::fBranchMap

Definition at line 35 of file ExpDefn.hh.

Referenced by ~TExpDefn(), Load(), LoadRaw(), and ResetBranches().

◆ fDetDefns

template<class... ADefns>
std::tuple<std::vector<ADefns>...> GamR::Tree::TExpDefn< ADefns >::fDetDefns

Definition at line 34 of file ExpDefn.hh.

Referenced by Convert(), GetAllDetDefns(), GetDetDefns(), Load(), and LoadRaw().

◆ fDetGroups

template<class... ADefns>
std::vector<std::string> GamR::Tree::TExpDefn< ADefns >::fDetGroups

Definition at line 36 of file ExpDefn.hh.

Referenced by Load(), and LoadRaw().

◆ fINI

template<class... ADefns>
std::string GamR::Tree::TExpDefn< ADefns >::fINI

Definition at line 38 of file ExpDefn.hh.

Referenced by Convert(), Load(), and LoadRaw().

◆ fINIReader

template<class... ADefns>
INIReader GamR::Tree::TExpDefn< ADefns >::fINIReader

Definition at line 37 of file ExpDefn.hh.

Referenced by Load(), and LoadRaw().

◆ fOutFile

template<class... ADefns>
TFile* GamR::Tree::TExpDefn< ADefns >::fOutFile

Definition at line 30 of file ExpDefn.hh.

Referenced by Convert().

◆ fOutTree

template<class... ADefns>
TTree* GamR::Tree::TExpDefn< ADefns >::fOutTree

Definition at line 33 of file ExpDefn.hh.

Referenced by Convert().

◆ fRawChain

template<class... ADefns>
TChain* GamR::Tree::TExpDefn< ADefns >::fRawChain

Definition at line 32 of file ExpDefn.hh.

Referenced by Convert(), and Load().


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