BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
Embed.C File Reference
#include "../../bmndata/BmnCSCHit.h"
#include "../../bmndata/BmnEnums.h"
#include "../../bmndata/BmnGemStripHit.h"
#include "../../bmndata/BmnSiliconHit.h"
#include <root/TClass.h>
#include <root/TClonesArray.h>
#include <root/TFile.h>
#include <root/TString.h>
#include <root/TTree.h>
#include <vector>
#include "macro/run/bmnloadlibs.C"
Include dependency graph for Embed.C:

Go to the source code of this file.

Functions

BmnStatus RemoveBranches (TString fileName, vector< TString > branchNames)
BmnStatus Embed (TString inSourceName="eve-4649-isAll.root", TString inBaseName="bmn_run4649_digi.root", TString outHitsName="merged-digi.root", Int_t code=3122, vector< Int_t > outCodes={2212, -211}, Bool_t turnOffBaseDigits=kFALSE)

Function Documentation

◆ Embed()

BmnStatus Embed ( TString inSourceName = "eve-4649-isAll.root",
TString inBaseName = "bmn_run4649_digi.root",
TString outHitsName = "merged-digi.root",
Int_t code = 3122,
vector< Int_t > outCodes = {2212, -211},
Bool_t turnOffBaseDigits = kFALSE )

Definition at line 38 of file Embed.C.

◆ RemoveBranches()

BmnStatus RemoveBranches ( TString fileName,
vector< TString > branchNames )

Definition at line 18 of file Embed.C.

References TFile::Close(), TString::Data(), TDirectoryFile::Get(), TTree::GetBranch(), TTree::GetListOfBranches(), TFile::IsOpen(), kBMNERROR, kBMNSUCCESS, and TTree::Write().

Here is the call graph for this function: