BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
readHeaders.C File Reference
#include <Rtypes.h>
#include <TClonesArray.h>
#include <TFile.h>
#include <TMathBase.h>
#include <TString.h>
#include <TTimeStamp.h>
#include <TTree.h>
#include "macro/run/bmnloadlibs.C"
Include dependency graph for readHeaders.C:

Go to the source code of this file.

Functions

void readHeaders (TString fileName="", Int_t examples=10)
 readHeaders Example of reading valuable content of the DigiRunHeader and BmnEventHeader

Function Documentation

◆ readHeaders()

void readHeaders ( TString fileName = "",
Int_t examples = 10 )
Parameters
fileName
examplesnumber of events to show

Reading Run Header for the whole run statistics: beam counters, run start/end time

Reading Event Header for each event in the range: current spill statistics,

Definition at line 18 of file readHeaders.C.

References TTimeStamp::AsString(), bmnloadlibs(), TDirectoryFile::Get(), DigiRunHeader::GetBT(), DigiRunHeader::GetBTAccepted(), DigiRunHeader::GetBTnBusy(), TTree::GetEntries(), TTree::GetEntry(), BmnEventHeader::GetEventId(), DigiRunHeader::GetPeriodId(), DigiRunHeader::GetRunEndTime(), DigiRunHeader::GetRunId(), DigiRunHeader::GetRunStartTime(), BmnTrigInfo::GetTrigAccepted(), BmnTrigInfo::GetTrigAfter(), BmnTrigInfo::GetTrigBefo(), BmnTrigInfo::GetTrigCand(), BmnEventHeader::GetTrigInfo(), BmnTrigInfo::GetTrigRjct(), i, TFile::IsOpen(), and TTree::SetBranchAddress().

Here is the call graph for this function: