BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
updateContent.C File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int updateContent (TString fileName="", TString destName="", Int_t nPedsMax=100, TString treeName="BMN_RAW")
 updateContent.C

Function Documentation

◆ updateContent()

int updateContent ( TString fileName = "",
TString destName = "",
Int_t nPedsMax = 100,
TString treeName = "BMN_RAW" )

An example macro how to copy raw root data and make first events as pedestal ones

Open input base digits

Open dest digits

Definition at line 9 of file updateContent.C.

References TTree::Branch(), TObject::ClassName(), BmnEventHeader::Clear(), TFile::Close(), TString::Data(), TTree::Fill(), TDirectoryFile::Get(), TClonesArray::GetClass(), TTree::GetEntries(), TTree::GetEntry(), BmnEventHeader::GetEventId(), BmnEventHeader::GetEventTimeTS(), BmnEventHeader::GetEventType(), TTree::GetListOfBranches(), TDirectoryFile::GetListOfKeys(), BmnEventHeader::GetPeriodId(), i, TFile::IsOpen(), kBMNERROR, kBMNPEDESTAL, TObjArray::MakeIterator(), TIterator::Next(), TIterator::Reset(), TTree::SetBranchAddress(), BmnEventHeader::SetEventId(), BmnEventHeader::SetEventTimeTS(), BmnEventHeader::SetEventType(), BmnEventHeader::SetPeriodId(), TFile::Write(), TTree::Write(), and TDirectory::WriteObject().

Referenced by BmnPreRunTester().

Here is the call graph for this function:
Here is the caller graph for this function: