BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
DSTConv.C File Reference

Go to the source code of this file.

Functions

void FilterPV (TString BaseName, TString TempBaseName, Double_t minZ=-7.15, Double_t maxZ=4.85)
void DSTConv (TString inFile="~/filesbmn/4649-cbm-full.root", TString outFile="$VMCWORKDIR/macro/run/dst-bmn-4649.root", Int_t nStartEvent=0, Int_t nEvents=0, TString inFileToClone="/eos/nica/bmn/exp/dst/run7/prerelease/3590-4707_BMN_Argon/bmn_run4649_dst.root", vector< TString > branchesToClone={"BmnTof400Hit", "BmnTof700Hit", "BmnDchTrack", "BmnDchHit", "BmnUpstreamHit", "BmnMwpcSegment", "BmnMwpcTrack"})

Variables

const Int_t CutMinNTracksPV = 2

Function Documentation

◆ DSTConv()

void DSTConv ( TString inFile = "~/filesbmn/4649-cbm-full.root",
TString outFile = "$VMCWORKDIR/macro/run/dst-bmn-4649.root",
Int_t nStartEvent = 0,
Int_t nEvents = 0,
TString inFileToClone = "/eos/nica/bmn/exp/dst/run7/prerelease/3590-4707_BMN_Argon/bmn_run4649_dst.root",
vector< TString > branchesToClone = {"BmnTof400Hit", "BmnTof700Hit", "BmnDchTrack", "BmnDchHit", "BmnUpstreamHit", "BmnMwpcSegment", "BmnMwpcTrack"} )

Definition at line 45 of file DSTConv.C.

◆ FilterPV()

void FilterPV ( TString BaseName,
TString TempBaseName,
Double_t minZ = -7.15,
Double_t maxZ = 4.85 )

Definition at line 5 of file DSTConv.C.

References TTree::CloneTree(), TFile::Close(), CutMinNTracksPV, TString::Data(), TTree::Fill(), TDirectoryFile::Get(), TTree::GetEntries(), TTree::GetEntry(), BmnVertex::GetNTracks(), BmnVertex::GetZ(), TFile::IsOpen(), TTree::SetBranchAddress(), TObjArray::UncheckedAt(), TFile::Write(), and TTree::Write().

Here is the call graph for this function:

Variable Documentation

◆ CutMinNTracksPV

const Int_t CutMinNTracksPV = 2

Definition at line 2 of file DSTConv.C.