BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFileSource Class Reference

BmnFileSource.h. More...

#include <BmnFileSource.h>

Inheritance diagram for BmnFileSource:
Collaboration diagram for BmnFileSource:

Public Member Functions

 BmnFileSource (TFile *f, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString *RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString RootFileName, int &period_number, int &run_number)
 ~BmnFileSource () override
Bool_t Init () override
Int_t ReadEvent (UInt_t i=0) override
void Close () override
Int_t CheckMaxEventNo (Int_t EvtEnd=0) override
 Check the maximum event number we can run to.
void ReadBranchEvent (const char *BrName) override
 Read the tree entry on one branch.
void ReadBranchEvent (const char *BrName, Int_t Entry) override
 Read specific tree entry on one branch.
void FillEventHeader (FairEventHeader *feh) override
const TFile * GetRootFile ()
void AddFriend (TString FileName)
 Add a friend file (input) by name).
void AddFile (TString FileName)
 Add ROOT file to input, the file will be chained to already added files.
void AddFriendsToChain ()
void PrintFriendList ()
void CheckFriendChains ()
void CreateNewFriendChain (TString inputFile, TString inputLevel)
TTree * GetInTree ()
TChain * GetInChain ()
TFile * GetInFile ()
void CloseInFile ()
void SetInTree (TTree *tempTree)
TObjArray * GetListOfFoldersBmn ()
TFolder * GetBranchDescriptionFolder ()
UInt_t GetEntries ()
void SetInputFile (TString name)
void SetBeamTime (Double_t beamTime, Double_t gapTime)
 Set the repetition time of the beam when it can interact (beamTime) and when no interaction happen (gapTime).
void SetEventTimeInterval (Double_t min, Double_t max)
 Set the min and max limit for event time in ns.
void SetEventMeanTime (Double_t mean)
 Set the mean time for the event in ns.
void SetEventTime ()
Double_t GetDeltaEventTime ()
void SetFileHeader (FairFileHeader *f)
Double_t GetEventTime ()
Bool_t ActivateObject (TObject **obj, const char *BrName) override
Bool_t ActivateObjectAny (void **, const std::type_info &, const char *) override
void SetEvtHeaderNew (Bool_t Status)
 Set the status of the EvtHeader.
Bool_t IsEvtHeaderNew ()
void SetCheckFileLayout (Bool_t enable)
 Allow to disable the testing the file layout when adding files to a chain.
Bool_t SpecifyRunId () override
 Read one event from source to find out which RunId to use.
void GetRunNumber (int &period_number, int &run_number)
 Get period and run numbers extracted while the class construction if exist.
Int_t GetFileType ()
 Get input file type (data level): 0 - EXP DIGI, 1 - EXP DST, 10 - SIM DIGI, 11 - SIM DST, <0 - errors.
 BmnFileSource (TFile *f, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString *RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 BmnFileSource (const TString RootFileName, int &period_number, int &run_number)
 ~BmnFileSource () override
Bool_t Init () override
Int_t ReadEvent (UInt_t i=0) override
void Close () override
Int_t CheckMaxEventNo (Int_t EvtEnd=0) override
 Check the maximum event number we can run to.
void ReadBranchEvent (const char *BrName) override
 Read the tree entry on one branch.
void ReadBranchEvent (const char *BrName, Int_t Entry) override
 Read specific tree entry on one branch.
void FillEventHeader (FairEventHeader *feh) override
const TFile * GetRootFile ()
void AddFriend (TString FileName)
 Add a friend file (input) by name).
void AddFile (TString FileName)
 Add ROOT file to input, the file will be chained to already added files.
void AddFriendsToChain ()
void PrintFriendList ()
void CheckFriendChains ()
void CreateNewFriendChain (TString inputFile, TString inputLevel)
TTree * GetInTree ()
TChain * GetInChain ()
TFile * GetInFile ()
void CloseInFile ()
void SetInTree (TTree *tempTree)
TObjArray * GetListOfFoldersBmn ()
TFolder * GetBranchDescriptionFolder ()
UInt_t GetEntries ()
void SetInputFile (TString name)
void SetBeamTime (Double_t beamTime, Double_t gapTime)
 Set the repetition time of the beam when it can interact (beamTime) and when no interaction happen (gapTime).
void SetEventTimeInterval (Double_t min, Double_t max)
 Set the min and max limit for event time in ns.
void SetEventMeanTime (Double_t mean)
 Set the mean time for the event in ns.
void SetEventTime ()
Double_t GetDeltaEventTime ()
void SetFileHeader (FairFileHeader *f)
Double_t GetEventTime ()
Bool_t ActivateObject (TObject **obj, const char *BrName) override
Bool_t ActivateObjectAny (void **, const std::type_info &, const char *) override
void SetEvtHeaderNew (Bool_t Status)
 Set the status of the EvtHeader.
Bool_t IsEvtHeaderNew ()
void SetCheckFileLayout (Bool_t enable)
 Allow to disable the testing the file layout when adding files to a chain.
Bool_t SpecifyRunId () override
 Read one event from source to find out which RunId to use.
void GetRunNumber (int &period_number, int &run_number)
 Get period and run numbers extracted while the class construction if exist.
Int_t GetFileType ()
 Get input file type (data level): 0 - EXP DIGI, 1 - EXP DST, 10 - SIM DIGI, 11 - SIM DST, <0 - errors.

Private Member Functions

 BmnFileSource (const BmnFileSource &)
BmnFileSource operator= (const BmnFileSource &)
int ExtractRunNumber ()
 function to extract period and run numbers in the class constructor if exist
 BmnFileSource (const BmnFileSource &)
BmnFileSource operator= (const BmnFileSource &)
int ExtractRunNumber ()
 function to extract period and run numbers in the class constructor if exist

Private Attributes

TString fInputTitle
 Title of input source, could be input, background or signal.
TFile * fRootFile
 ROOT file.
std::list< TString > fFriendFileList
 List of all files added with AddFriend.
std::list< TString > fInputChainList
std::map< TString, TChain * > fFriendTypeList
std::list< TString > fInputLevel
std::map< TString, std::multimap< TString, TArrayI > > fRunIdInfoAll
TChain * fInChain
 Input Chain.
TTree * fInTree
 Input Tree.
TObjArray fListFolderBmn {16}
 list of folders from all input (and friends) files
TFolder * fCbmout
 folder structure of output
TFolder * fCbmroot
 folder structure of input
UInt_t fSourceIdentifier
UInt_t fNoOfEntries
 No of Entries in this source.
Bool_t IsInitialized
 Initialization flag, true if initialized.
FairMCEventHeader * fMCHeader
 MC Event header.
FairEventHeader * fEvtHeader
 Event Header.
FairFileHeader * fFileHeader
 File Header.
Bool_t fEventTimeInMCHeader
 This is true if the event time used, came from simulation.
Bool_t fEvtHeaderIsNew
 This flag is true if the event header was created in this session otherwise it is false which means the header was created in a previous data level and used here (e.g.
UInt_t fCurrentEntryNo
 for internal use, to return the same event time for the same entry
UInt_t fTimeforEntryNo
 for internal use, to return the same event time for the same entry
Double_t fEventTimeMin
 min time for one event (ns)
Double_t fEventTimeMax
 max time for one Event (ns)
Double_t fEventTime
 Time of event since th start (ns).
Double_t fBeamTime
 Time of particles in beam (ns).
Double_t fGapTime
 Time without particles in beam (gap) (ns).
Double_t fEventMeanTime
 EventMean time used (P(t)=1/fEventMeanTime*Exp(-t/fEventMeanTime).
std::unique_ptr< TF1 > fTimeProb
 used to generate random numbers for event time;
Bool_t fCheckFileLayout
 True if the file layout should be checked when adding files to a chain.
Int_t fPeriodNumber = -1
 period number extracted in the class constructor if exists
Int_t fRunNumber = -1
 run number extracted in the class constructor if exists
Int_t fFileType = -1
 input file type (data level): 0 - EXP DIGI, 1 - EXP DST, 10 - SIM DIGI, 11 - SIM DST, <0 - errors

Detailed Description

Author
Created by Mohammad Al-Turany. Modified by Konstantin Gertsenberger gerts.nosp@m.en@j.nosp@m.inr.r.nosp@m.u

Class presents a source inherited from FairFileSourceBase to work with BmnRoot data in ROOT files

Definition at line 29 of file BmnFileSource.h.

Constructor & Destructor Documentation

◆ BmnFileSource() [1/10]

BmnFileSource::BmnFileSource ( TFile * f,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

Definition at line 35 of file BmnFileSource.cxx.

References ExtractRunNumber(), f, fBeamTime, fCbmout, fCbmroot, fCheckFileLayout, fCurrentEntryNo, fEventMeanTime, fEventTime, fEventTimeInMCHeader, fEventTimeMax, fEventTimeMin, fEvtHeader, fEvtHeaderIsNew, fFileHeader, fFriendFileList, fFriendTypeList, fGapTime, fInChain, fInputChainList, fInputLevel, fInputTitle, fInTree, fMCHeader, fNoOfEntries, fRootFile, fRunIdInfoAll, fSourceIdentifier, fTimeforEntryNo, and IsInitialized.

Referenced by BmnFileSource(), ExtractRunNumber(), and operator=().

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

◆ BmnFileSource() [2/10]

BmnFileSource::BmnFileSource ( const TString * RootFileName,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

◆ BmnFileSource() [3/10]

BmnFileSource::BmnFileSource ( const TString RootFileName,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

◆ BmnFileSource() [4/10]

BmnFileSource::BmnFileSource ( const TString RootFileName,
int & period_number,
int & run_number )

◆ ~BmnFileSource() [1/2]

BmnFileSource::~BmnFileSource ( )
overridedefault

References i.

◆ BmnFileSource() [5/10]

BmnFileSource::BmnFileSource ( const BmnFileSource & )
private

References BmnFileSource().

Here is the call graph for this function:

◆ BmnFileSource() [6/10]

BmnFileSource::BmnFileSource ( TFile * f,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

References f.

◆ BmnFileSource() [7/10]

BmnFileSource::BmnFileSource ( const TString * RootFileName,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

◆ BmnFileSource() [8/10]

BmnFileSource::BmnFileSource ( const TString RootFileName,
const char * Title = "InputRootFile",
UInt_t identifier = 0 )

◆ BmnFileSource() [9/10]

BmnFileSource::BmnFileSource ( const TString RootFileName,
int & period_number,
int & run_number )

◆ ~BmnFileSource() [2/2]

BmnFileSource::~BmnFileSource ( )
override

◆ BmnFileSource() [10/10]

BmnFileSource::BmnFileSource ( const BmnFileSource & )
private

References BmnFileSource().

Here is the call graph for this function:

Member Function Documentation

◆ ActivateObject() [1/2]

Bool_t BmnFileSource::ActivateObject ( TObject ** obj,
const char * BrName )
override

Definition at line 698 of file BmnFileSource.cxx.

References fInChain, and fInTree.

Referenced by Init().

Here is the caller graph for this function:

◆ ActivateObject() [2/2]

Bool_t BmnFileSource::ActivateObject ( TObject ** obj,
const char * BrName )
override

◆ ActivateObjectAny() [1/2]

Bool_t BmnFileSource::ActivateObjectAny ( void ** ,
const std::type_info & ,
const char *  )
override

◆ ActivateObjectAny() [2/2]

Bool_t BmnFileSource::ActivateObjectAny ( void ** ,
const std::type_info & ,
const char *  )
override

◆ AddFile() [1/2]

void BmnFileSource::AddFile ( TString FileName)

Definition at line 462 of file BmnFileSource.cxx.

References fInputChainList.

Referenced by run_ana_bmn().

Here is the caller graph for this function:

◆ AddFile() [2/2]

void BmnFileSource::AddFile ( TString FileName)

◆ AddFriend() [1/2]

void BmnFileSource::AddFriend ( TString FileName)

Definition at line 457 of file BmnFileSource.cxx.

References fFriendFileList.

◆ AddFriend() [2/2]

void BmnFileSource::AddFriend ( TString FileName)

◆ AddFriendsToChain() [1/2]

void BmnFileSource::AddFriendsToChain ( )

Definition at line 467 of file BmnFileSource.cxx.

References TChain::AddFile(), TFile::Close(), CreateNewFriendChain(), fFriendFileList, fFriendTypeList, fInChain, fInputLevel, TObject::IsZombie(), TTree::kMaxEntries, TFile::Open(), and PrintFriendList().

Referenced by Init().

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

◆ AddFriendsToChain() [2/2]

void BmnFileSource::AddFriendsToChain ( )

◆ CheckFriendChains() [1/2]

void BmnFileSource::CheckFriendChains ( )

Definition at line 575 of file BmnFileSource.cxx.

References TString::Contains(), TString::Data(), fInputLevel, fRunIdInfoAll, and i.

Here is the call graph for this function:

◆ CheckFriendChains() [2/2]

void BmnFileSource::CheckFriendChains ( )

◆ CheckMaxEventNo() [1/2]

Int_t BmnFileSource::CheckMaxEventNo ( Int_t EvtEnd = 0)
override

Definition at line 732 of file BmnFileSource.cxx.

References fInChain.

◆ CheckMaxEventNo() [2/2]

Int_t BmnFileSource::CheckMaxEventNo ( Int_t EvtEnd = 0)
override

◆ Close() [1/2]

void BmnFileSource::Close ( )
override

Definition at line 452 of file BmnFileSource.cxx.

References CloseInFile().

Here is the call graph for this function:

◆ Close() [2/2]

void BmnFileSource::Close ( )
override

◆ CloseInFile() [1/2]

void BmnFileSource::CloseInFile ( )
inline

Definition at line 63 of file BmnFileSource.h.

References fRootFile.

Referenced by Close().

Here is the caller graph for this function:

◆ CloseInFile() [2/2]

void BmnFileSource::CloseInFile ( )
inline

Definition at line 63 of file BmnFileSource.h.

References fRootFile.

◆ CreateNewFriendChain() [1/2]

void BmnFileSource::CreateNewFriendChain ( TString inputFile,
TString inputLevel )

Get The list of branches from the friend file and add it to the actual list

Definition at line 652 of file BmnFileSource.cxx.

References TString::Data(), f, fFriendTypeList, fInputLevel, fListFolderBmn, TObjString::GetString(), i, and TFile::Open().

Referenced by AddFriendsToChain().

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

◆ CreateNewFriendChain() [2/2]

void BmnFileSource::CreateNewFriendChain ( TString inputFile,
TString inputLevel )

◆ ExtractRunNumber() [1/2]

int BmnFileSource::ExtractRunNumber ( )
private

Definition at line 198 of file BmnFileSource.cxx.

References fFileType, fPeriodNumber, fRootFile, fRunNumber, TTree::GetEntries(), TTree::GetEntry(), DigiRunHeader::GetPeriodId(), DstRunHeader::GetPeriodId(), DigiRunHeader::GetRunId(), DstRunHeader::GetRunId(), and TTree::SetBranchAddress().

Referenced by BmnFileSource(), BmnFileSource(), BmnFileSource(), and BmnFileSource().

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

◆ ExtractRunNumber() [2/2]

int BmnFileSource::ExtractRunNumber ( )
private

References BmnFileSource(), fFileType, fPeriodNumber, and fRunNumber.

Here is the call graph for this function:

◆ FillEventHeader() [1/2]

void BmnFileSource::FillEventHeader ( FairEventHeader * feh)
override

Definition at line 860 of file BmnFileSource.cxx.

References fEvtHeader, fFileType, fMCHeader, fRunNumber, and GetEventTime().

Here is the call graph for this function:

◆ FillEventHeader() [2/2]

void BmnFileSource::FillEventHeader ( FairEventHeader * feh)
override

◆ GetBranchDescriptionFolder() [1/2]

TFolder * BmnFileSource::GetBranchDescriptionFolder ( )
inline

Definition at line 71 of file BmnFileSource.h.

References fCbmroot.

◆ GetBranchDescriptionFolder() [2/2]

TFolder * BmnFileSource::GetBranchDescriptionFolder ( )
inline

Definition at line 71 of file BmnFileSource.h.

References fCbmroot.

◆ GetDeltaEventTime() [1/2]

Double_t BmnFileSource::GetDeltaEventTime ( )

Definition at line 787 of file BmnFileSource.cxx.

References fEventTimeMax, fEventTimeMin, and fTimeProb.

Referenced by SetEventTime().

Here is the caller graph for this function:

◆ GetDeltaEventTime() [2/2]

Double_t BmnFileSource::GetDeltaEventTime ( )

◆ GetEntries() [1/2]

UInt_t BmnFileSource::GetEntries ( )
inline

Definition at line 72 of file BmnFileSource.h.

References fNoOfEntries.

◆ GetEntries() [2/2]

UInt_t BmnFileSource::GetEntries ( )
inline

Definition at line 72 of file BmnFileSource.h.

References fNoOfEntries.

◆ GetEventTime() [1/2]

Double_t BmnFileSource::GetEventTime ( )

Definition at line 800 of file BmnFileSource.cxx.

References fCurrentEntryNo, fEventTime, fEventTimeInMCHeader, fEvtHeader, fEvtHeaderIsNew, fMCHeader, fTimeforEntryNo, and SetEventTime().

Referenced by FillEventHeader(), ReadBranchEvent(), ReadBranchEvent(), and ReadEvent().

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

◆ GetEventTime() [2/2]

Double_t BmnFileSource::GetEventTime ( )

◆ GetFileType() [1/2]

Int_t BmnFileSource::GetFileType ( )
inline

Definition at line 110 of file BmnFileSource.h.

References fFileType.

◆ GetFileType() [2/2]

Int_t BmnFileSource::GetFileType ( )
inline

Definition at line 110 of file BmnFileSource.h.

References fFileType.

◆ GetInChain() [1/2]

TChain * BmnFileSource::GetInChain ( )
inline

Definition at line 61 of file BmnFileSource.h.

References fInChain.

◆ GetInChain() [2/2]

TChain * BmnFileSource::GetInChain ( )
inline

Definition at line 61 of file BmnFileSource.h.

References fInChain.

◆ GetInFile() [1/2]

TFile * BmnFileSource::GetInFile ( )
inline

Definition at line 62 of file BmnFileSource.h.

References fRootFile.

◆ GetInFile() [2/2]

TFile * BmnFileSource::GetInFile ( )
inline

Definition at line 62 of file BmnFileSource.h.

References fRootFile.

◆ GetInTree() [1/2]

TTree * BmnFileSource::GetInTree ( )
inline

Definition at line 60 of file BmnFileSource.h.

References fInChain.

◆ GetInTree() [2/2]

TTree * BmnFileSource::GetInTree ( )
inline

Definition at line 60 of file BmnFileSource.h.

References fInChain.

◆ GetListOfFoldersBmn() [1/2]

TObjArray * BmnFileSource::GetListOfFoldersBmn ( )
inline

Definition at line 70 of file BmnFileSource.h.

References fListFolderBmn.

◆ GetListOfFoldersBmn() [2/2]

TObjArray * BmnFileSource::GetListOfFoldersBmn ( )
inline

Definition at line 70 of file BmnFileSource.h.

References fListFolderBmn.

◆ GetRootFile() [1/2]

const TFile * BmnFileSource::GetRootFile ( )
inline

Definition at line 51 of file BmnFileSource.h.

References fRootFile.

◆ GetRootFile() [2/2]

const TFile * BmnFileSource::GetRootFile ( )
inline

Definition at line 51 of file BmnFileSource.h.

References fRootFile.

◆ GetRunNumber() [1/2]

void BmnFileSource::GetRunNumber ( int & period_number,
int & run_number )

◆ GetRunNumber() [2/2]

void BmnFileSource::GetRunNumber ( int & period_number,
int & run_number )

◆ Init() [1/2]

Bool_t BmnFileSource::Init ( )
override

Definition at line 261 of file BmnFileSource.cxx.

References ActivateObject(), AddFriendsToChain(), TObjArray::At(), TFile::Close(), TString::Data(), fCbmroot, fCheckFileLayout, fEvtHeader, fFileType, fInChain, TFolder::FindObjectAny(), fInputChainList, fInputLevel, fInputTitle, fListFolderBmn, fMCHeader, fNoOfEntries, fRootFile, TObjArray::GetEntries(), TNamed::GetName(), TObjString::GetString(), i, IsInitialized, TObject::IsZombie(), and TFile::Open().

Referenced by SetInTree().

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

◆ Init() [2/2]

Bool_t BmnFileSource::Init ( )
override

◆ IsEvtHeaderNew() [1/2]

Bool_t BmnFileSource::IsEvtHeaderNew ( )
inline

Definition at line 98 of file BmnFileSource.h.

References fEvtHeaderIsNew.

◆ IsEvtHeaderNew() [2/2]

Bool_t BmnFileSource::IsEvtHeaderNew ( )
inline

Definition at line 98 of file BmnFileSource.h.

References fEvtHeaderIsNew.

◆ operator=() [1/2]

BmnFileSource BmnFileSource::operator= ( const BmnFileSource & )
private

References BmnFileSource().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnFileSource BmnFileSource::operator= ( const BmnFileSource & )
private

References BmnFileSource(), fBeamTime, fCheckFileLayout, fCurrentEntryNo, fEventMeanTime, fEventTime, fEventTimeInMCHeader, fEventTimeMax, fEventTimeMin, fEvtHeader, fEvtHeaderIsNew, fFileHeader, fGapTime, fMCHeader, fTimeforEntryNo, and fTimeProb.

Here is the call graph for this function:

◆ PrintFriendList() [1/2]

void BmnFileSource::PrintFriendList ( )

Definition at line 548 of file BmnFileSource.cxx.

References fFriendTypeList, fInChain, TChain::GetListOfFiles(), TNamed::GetName(), and TNamed::GetTitle().

Referenced by AddFriendsToChain().

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

◆ PrintFriendList() [2/2]

void BmnFileSource::PrintFriendList ( )

◆ ReadBranchEvent() [1/4]

void BmnFileSource::ReadBranchEvent ( const char * BrName)
override

fill the object with content if the other branches in this tree entry were already read

Definition at line 827 of file BmnFileSource.cxx.

References fEventTime, fEvtHeader, fInChain, fInTree, and GetEventTime().

Here is the call graph for this function:

◆ ReadBranchEvent() [2/4]

void BmnFileSource::ReadBranchEvent ( const char * BrName)
override

◆ ReadBranchEvent() [3/4]

void BmnFileSource::ReadBranchEvent ( const char * BrName,
Int_t Entry )
override

Definition at line 845 of file BmnFileSource.cxx.

References fCurrentEntryNo, fEventTime, fInChain, fInTree, and GetEventTime().

Here is the call graph for this function:

◆ ReadBranchEvent() [4/4]

void BmnFileSource::ReadBranchEvent ( const char * BrName,
Int_t Entry )
override

◆ ReadEvent() [1/2]

Int_t BmnFileSource::ReadEvent ( UInt_t i = 0)
override

Definition at line 436 of file BmnFileSource.cxx.

References fCurrentEntryNo, fEventTime, fInChain, GetEventTime(), and i.

Here is the call graph for this function:

◆ ReadEvent() [2/2]

Int_t BmnFileSource::ReadEvent ( UInt_t i = 0)
override

References i.

◆ SetBeamTime() [1/2]

void BmnFileSource::SetBeamTime ( Double_t beamTime,
Double_t gapTime )

The total repetition time is beamTime + gapTime

Definition at line 763 of file BmnFileSource.cxx.

References fBeamTime, and fGapTime.

◆ SetBeamTime() [2/2]

void BmnFileSource::SetBeamTime ( Double_t beamTime,
Double_t gapTime )

The total repetition time is beamTime + gapTime

◆ SetCheckFileLayout() [1/2]

void BmnFileSource::SetCheckFileLayout ( Bool_t enable)
inline

Definition at line 102 of file BmnFileSource.h.

References fCheckFileLayout.

◆ SetCheckFileLayout() [2/2]

void BmnFileSource::SetCheckFileLayout ( Bool_t enable)
inline

Definition at line 102 of file BmnFileSource.h.

References fCheckFileLayout.

◆ SetEventMeanTime() [1/2]

void BmnFileSource::SetEventMeanTime ( Double_t mean)

Definition at line 744 of file BmnFileSource.cxx.

References fEventMeanTime, fEventTimeInMCHeader, and fTimeProb.

◆ SetEventMeanTime() [2/2]

void BmnFileSource::SetEventMeanTime ( Double_t mean)

◆ SetEventTime() [1/2]

void BmnFileSource::SetEventTime ( )

Definition at line 769 of file BmnFileSource.cxx.

References fBeamTime, fCurrentEntryNo, fEventTime, fGapTime, fTimeforEntryNo, and GetDeltaEventTime().

Referenced by GetEventTime().

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

◆ SetEventTime() [2/2]

void BmnFileSource::SetEventTime ( )

◆ SetEventTimeInterval() [1/2]

void BmnFileSource::SetEventTimeInterval ( Double_t min,
Double_t max )

Definition at line 753 of file BmnFileSource.cxx.

References fEventMeanTime, fEventTimeInMCHeader, fEventTimeMax, fEventTimeMin, fTimeProb, max(), and min().

Here is the call graph for this function:

◆ SetEventTimeInterval() [2/2]

void BmnFileSource::SetEventTimeInterval ( Double_t min,
Double_t max )

References max(), and min().

Here is the call graph for this function:

◆ SetEvtHeaderNew() [1/2]

void BmnFileSource::SetEvtHeaderNew ( Bool_t Status)
inline
Parameters
StatusTrue: The header was creatged in this session and has to be filled FALSE: We use an existing header from previous data level

Definition at line 97 of file BmnFileSource.h.

References fEvtHeaderIsNew.

◆ SetEvtHeaderNew() [2/2]

void BmnFileSource::SetEvtHeaderNew ( Bool_t Status)
inline
Parameters
StatusTrue: The header was creatged in this session and has to be filled FALSE: We use an existing header from previous data level

Definition at line 97 of file BmnFileSource.h.

References fEvtHeaderIsNew.

◆ SetFileHeader() [1/2]

void BmnFileSource::SetFileHeader ( FairFileHeader * f)
inline

Definition at line 87 of file BmnFileSource.h.

References f, and fFileHeader.

◆ SetFileHeader() [2/2]

void BmnFileSource::SetFileHeader ( FairFileHeader * f)
inline

Definition at line 87 of file BmnFileSource.h.

References f, and fFileHeader.

◆ SetInputFile() [1/2]

void BmnFileSource::SetInputFile ( TString name)

Definition at line 723 of file BmnFileSource.cxx.

References TString::Data(), fRootFile, and TFile::Open().

Here is the call graph for this function:

◆ SetInputFile() [2/2]

void BmnFileSource::SetInputFile ( TString name)

◆ SetInTree() [1/2]

void BmnFileSource::SetInTree ( TTree * tempTree)

Definition at line 426 of file BmnFileSource.cxx.

References fInChain, fInTree, fRootFile, TTree::GetCurrentFile(), Init(), and IsInitialized.

Here is the call graph for this function:

◆ SetInTree() [2/2]

void BmnFileSource::SetInTree ( TTree * tempTree)

◆ SpecifyRunId() [1/2]

Bool_t BmnFileSource::SpecifyRunId ( )
override

Read the first entry in Chain to fill the event header and get the RunID

Definition at line 446 of file BmnFileSource.cxx.

References fInChain.

◆ SpecifyRunId() [2/2]

Bool_t BmnFileSource::SpecifyRunId ( )
override

Member Data Documentation

◆ fBeamTime

Double_t BmnFileSource::fBeamTime
private

◆ fCbmout

TFolder * BmnFileSource::fCbmout
private

Definition at line 130 of file BmnFileSource.h.

Referenced by BmnFileSource(), BmnFileSource(), BmnFileSource(), and BmnFileSource().

◆ fCbmroot

TFolder * BmnFileSource::fCbmroot
private

◆ fCheckFileLayout

Bool_t BmnFileSource::fCheckFileLayout
private

Default value is true.

Definition at line 182 of file BmnFileSource.h.

Referenced by BmnFileSource(), BmnFileSource(), BmnFileSource(), BmnFileSource(), Init(), operator=(), and SetCheckFileLayout().

◆ fCurrentEntryNo

UInt_t BmnFileSource::fCurrentEntryNo
private

◆ fEventMeanTime

Double_t BmnFileSource::fEventMeanTime
private

◆ fEventTime

◆ fEventTimeInMCHeader

Bool_t BmnFileSource::fEventTimeInMCHeader
private

◆ fEventTimeMax

Double_t BmnFileSource::fEventTimeMax
private

◆ fEventTimeMin

Double_t BmnFileSource::fEventTimeMin
private

◆ fEvtHeader

◆ fEvtHeaderIsNew

Bool_t BmnFileSource::fEvtHeaderIsNew
private

◆ fFileHeader

FairFileHeader * BmnFileSource::fFileHeader
private

◆ fFileType

Int_t BmnFileSource::fFileType = -1
private

Definition at line 191 of file BmnFileSource.h.

Referenced by ExtractRunNumber(), FillEventHeader(), GetFileType(), and Init().

◆ fFriendFileList

std::list< TString > BmnFileSource::fFriendFileList
private

◆ fFriendTypeList

std::map< TString, TChain * > BmnFileSource::fFriendTypeList
private

◆ fGapTime

Double_t BmnFileSource::fGapTime
private

◆ fInChain

◆ fInputChainList

std::list< TString > BmnFileSource::fInputChainList
private

◆ fInputLevel

std::list< TString > BmnFileSource::fInputLevel
private

◆ fInputTitle

TString BmnFileSource::fInputTitle
private

Definition at line 114 of file BmnFileSource.h.

Referenced by BmnFileSource(), BmnFileSource(), BmnFileSource(), BmnFileSource(), and Init().

◆ fInTree

TTree * BmnFileSource::fInTree
private

◆ fListFolderBmn

TObjArray BmnFileSource::fListFolderBmn {16}
private

Definition at line 128 of file BmnFileSource.h.

Referenced by CreateNewFriendChain(), GetListOfFoldersBmn(), and Init().

◆ fMCHeader

FairMCEventHeader * BmnFileSource::fMCHeader
private

◆ fNoOfEntries

UInt_t BmnFileSource::fNoOfEntries
private

◆ fPeriodNumber

Int_t BmnFileSource::fPeriodNumber = -1
private

Definition at line 187 of file BmnFileSource.h.

Referenced by BmnFileSource(), and ExtractRunNumber().

◆ fRootFile

◆ fRunIdInfoAll

std::map< TString, std::multimap< TString, TArrayI > > BmnFileSource::fRunIdInfoAll
private

◆ fRunNumber

Int_t BmnFileSource::fRunNumber = -1
private

Definition at line 189 of file BmnFileSource.h.

Referenced by BmnFileSource(), ExtractRunNumber(), and FillEventHeader().

◆ fSourceIdentifier

UInt_t BmnFileSource::fSourceIdentifier
private

Definition at line 134 of file BmnFileSource.h.

Referenced by BmnFileSource(), BmnFileSource(), BmnFileSource(), and BmnFileSource().

◆ fTimeforEntryNo

UInt_t BmnFileSource::fTimeforEntryNo
private

◆ fTimeProb

std::unique_ptr< TF1 > BmnFileSource::fTimeProb
private

◆ IsInitialized

Bool_t BmnFileSource::IsInitialized
private

The documentation for this class was generated from the following files: