DAS  3.0
Das Analysis System
FileUtils.h File Reference
#include "exceptions.h"
#include "FriendUtils.h"
#include "Looper.h"
#include <TChain.h>
#include <TFile.h>
#include <TH1.h>
#include <TTree.h>
#include <filesystem>
#include <string>
#include <memory>
#include <vector>
+ Include dependency graph for FileUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Darwin
 
 Darwin::Tools
 

Macros

#define DT_GetOutput(output)   Darwin::Tools::GetOutput(output, __func__)
 
#define DT_NewTree(input, makeFriend)   Darwin::Tools::NewTree(input, makeFriend, __func__)
 

Functions

std::unique_ptr< TFile > GetOutput (std::filesystem::path output, const std::string &name)
 
void StandardInit ()
 
std::vector< std::filesystem::path > GetROOTfiles (std::vector< std::filesystem::path > inputs)
 
std::unique_ptr< ChainSlice > GetChain (std::vector< std::filesystem::path > inputs, const Slice slice={1, 0}, const std::string &name="events")
 
std::unique_ptr< ChainSlice > GetChain (std::vector< std::filesystem::path > inputs, const char *name)
 
template<typename THX = TH1>
std::unique_ptr< THX > GetHist (std::vector< std::filesystem::path > inputs, const std::string &name="h")
 
std::string GetFirstTreeLocation (const std::filesystem::path &input)
 
std::unique_ptr< TTree > NewTree (const std::unique_ptr< ChainSlice > &chain, const bool makeFriend, const std::string &thisFunc)
 
template<typename T , typename TTreePtr >
T * GetBranchReadOnly (const TTreePtr &tIn, const std::string &name, T **t, const int steering=0, bool raise_exception=true)
 
template<typename T , typename TTreePtr >
T * GetBranchWriteOnly (TTreePtr &tOut, const std::string &name, T **t, const int steering=0)
 
template<typename T , typename TTreePtrIn , typename TTreePtrOut >
T * GetBranchReadWrite (const TTreePtrIn &tIn, TTreePtrOut &tOut, const std::string &name, T **t, const int steering=0, bool raise_exception=true)
 

Macro Definition Documentation

◆ DT_GetOutput

#define DT_GetOutput (   output)    Darwin::Tools::GetOutput(output, __func__)

◆ DT_NewTree

#define DT_NewTree (   input,
  makeFriend 
)    Darwin::Tools::NewTree(input, makeFriend, __func__)