EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairRootManager Class Reference

#include <EicRoot/blob/master/base/FairRootManager.h>

+ Inheritance diagram for FairRootManager:
+ Collaboration diagram for FairRootManager:

Public Member Functions

 FairRootManager ()
 
virtual ~FairRootManager ()
 
void AddSignalFile (TString name, UInt_t identifier)
 
void AddBackgroundFile (TString name)
 
void AddFile (TString name)
 
void AddFriend (TString Name)
 
void AddFriendsToChain ()
 
Bool_t AllDataProcessed ()
 
Int_t CheckBranch (const char *BrName)
 
void CloseInFile ()
 
void CloseOutFile ()
 
void CreateGeometryFile (const char *geofile)
 
Bool_t DataContainersEmpty ()
 
Bool_t DataContainersFilled ()
 
void Fill ()
 
void ForceFill ()
 
void LastFill ()
 
TClonesArray * ForceGetDataContainer (TString branchName)
 
TClonesArray * GetEmptyTClonesArray (TString branchName)
 
TClonesArray * GetTClonesArray (TString branchName)
 
TClonesArray * GetDataContainer (TString branchName)
 
TString GetBranchName (Int_t id)
 
Int_t GetBranchId (TString BrName)
 
TList * GetBranchNameList ()
 
TTree * GetInTree ()
 
TChain * GetInChain ()
 
TChain * GetBGChain ()
 
TChain * GetSignalChainNo (UInt_t i)
 
TTree * GetOutTree ()
 
TFile * GetInFile ()
 
TFile * GetOutFile ()
 
FairGeoNodeGetGeoParameter (const char *detname, const char *gname)
 
TObjectGetObject (const char *BrName)
 
TObjectGetObjectFromInTree (const char *BrName)
 
Double_t GetEventTime ()
 
TObjectGetCloneOfLinkData (const FairLink link)
 
TClonesArray * GetCloneOfTClonesArray (const FairLink link)
 
TClonesArray * GetData (TString branchName, BinaryFunctor *function, Double_t parameter)
 
TClonesArray * GetData (TString branchName, BinaryFunctor *startFunction, Double_t startParameter, BinaryFunctor *stopFunction, Double_t stopParameter)
 
void RegisterTSBuffer (TString branchName, FairTSBufferFunctional *functionalBuffer)
 
FairTSBufferFunctionalGetTSBuffer (TString branchName)
 
Bool_t OpenInChain ()
 
Bool_t OpenInTree ()
 
Bool_t OpenBackgroundChain ()
 
Bool_t OpenSignalChain ()
 
TFile * OpenOutFile (const char *fname="cbmsim.root")
 
TFile * OpenOutFile (TFile *f)
 
void ReadBKEvent (Int_t i)
 
void ReadEvent (Int_t i)
 
Bool_t ReadNextEvent (Double_t dt)
 
void Register (const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
 
void Register (const char *name, const char *Foldername, TCollection *obj, Bool_t toFile)
 
TClonesArray * Register (TString branchName, TString className, TString folderName, Bool_t toFile)
 
FairWriteoutBufferRegisterWriteoutBuffer (TString branchName, FairWriteoutBuffer *buffer)
 
void RunWithTimeStamps ()
 
void SetSignalFile (TString name, UInt_t identifier)
 
void SetBackgroundFile (TString name)
 
void SetEvtHeaderNew (Bool_t Status)
 
Bool_t IsEvtHeaderNew ()
 
void SetBranchNameList (TList *list)
 
void SetCompressData (Bool_t val)
 
void SetInputFile (TString name)
 
void SetInTree (TTree *tempTree)
 
void SetOutTree (TTree *fTree)
 
void SetLastFill (Bool_t val=kTRUE)
 
void TruncateBranchNames (TBranch *b, TString ffn)
 
void TruncateBranchNames (TTree *fTree, const char *folderName)
 
void Write ()
 
void WriteGeometry ()
 
void WriteFileHeader (FairFileHeader *f)
 
void WriteFolder ()
 
void SetEventTimeInterval (Double_t min, Double_t max)
 
void SetEventMeanTime (Double_t mean)
 
void SetEventTime ()
 
void SetFileHeader (FairFileHeader *f)
 
void BGWindowWidthNo (UInt_t background, UInt_t Signalid)
 
void BGWindowWidthTime (Double_t background, UInt_t Signalid)
 
Int_t CheckMaxEventNo (Int_t EvtEnd=0)
 
void StoreWriteoutBufferData (Double_t eventTime)
 
void StoreAllWriteoutBufferData ()
 
void DeleteOldWriteoutBufferData ()
 
Int_t GetEntryNr ()
 
void SetEntryNr (Int_t val)
 
void AddMoCaLookupEntry (unsigned id, TClonesArray *ptr)
 
void AddDigiLookupEntry (unsigned id, TClonesArray *ptr)
 
TClonesArray * GetMoCaLookup (unsigned id)
 
TClonesArray * GetDigiLookup (unsigned id)
 

Static Public Member Functions

static FairRootManagerInstance ()
 

Private Member Functions

 FairRootManager (const FairRootManager &)
 
FairRootManageroperator= (const FairRootManager &)
 
TObjectActivateBranch (const char *BrName)
 
TObjectActivateBranchInInTree (const char *BrName)
 
void AddFriends ()
 
void AddMemoryBranch (const char *, TObject *)
 
void AssignTClonesArrays ()
 
void AssignTClonesArray (TString branchName)
 
Int_t CheckBranchSt (const char *BrName)
 
void CheckFriendChains ()
 
Bool_t CompareBranchList (TFile *fileHandle, TString inputLevel)
 
void CreateNewFriendChain (TString inputFile, TString inputLevel)
 
void CreatePerMap ()
 
TObjectGetMemoryBranch (const char *)
 
void GetRunIdInfo (TString fileName, TString inputLevel)
 
void PrintFriendList ()
 
void SaveAllContainers ()
 
void ReadMixedEvent (Int_t i)
 
FairWriteoutBufferGetWriteoutBuffer (TString branchName)
 

Private Attributes

Int_t fOldEntryNr
 
TFolder * fCbmout
 
TFolder * fCbmroot
 
Double_t fCurrentTime
 
TFile * fInFile
 
TChain * fInChain
 
TTree * fInTree
 
TFile * fOutFile
 
TTree * fOutTree
 
TObjArray fListFolder
 
TObject ** fObj2
 
Int_t fNObj
 
std::map< TString, TObject * > fMap
 
TTree * fPtrTree
 
Int_t fCurrentEntries
 
Int_t fBranchSeqId
 
TList * fBranchNameList
 
std::map< TString, std::queue
< TClonesArray * > > 
fDataContainer
 
std::map< TString, TClonesArray * > fActiveContainer
 
std::map< TString,
FairTSBufferFunctional * > 
fTSBufferMap
 
std::map< TString,
FairWriteoutBuffer * > 
fWriteoutBufferMap
 
std::map< Int_t, TBranch * > fInputBranchMap
 
Bool_t fCompressData
 //Map of input branch ID with TBranch pointer
 
Bool_t fTimeStamps
 
Bool_t fBranchPerMap
 
std::map< TString, Int_t > fBrPerMap
 
std::map< TString, Int_t >
::iterator 
fBrPerMapIter
 
std::list< TString > fFriendFileList
 
TString fInputFileName
 
std::list< TString > fInputChainList
 
std::map< TString, TChain * > fFriendTypeList
 
std::map< TString, std::list
< TString > * > 
fCheckInputBranches
 
std::list< TString > fInputLevel
 
std::map< TString,
std::multimap< TString,
TArrayI > > 
fRunIdInfoAll
 
FairLoggerfLogger
 
Bool_t fMixedInput
 
UInt_t fActualSignalIdentifier
 
UInt_t fNoOfSignals
 
std::list< TString > * fSignalChainList
 
TChain * fBackgroundChain
 
TFile * fBackgroundFile
 
std::map< UInt_t, TChain * > fSignalTypeList
 
Double_t fEventTimeMin
 
Double_t fEventTimeMax
 
Double_t fEventTime
 
Double_t fEventMeanTime
 
TF1 * fTimeProb
 
FairMCEventHeaderfMCHeader
 
FairEventHeaderfEvtHeader
 
FairFileHeaderfFileHeader
 
std::map< UInt_t, Double_t > fSignalBGN
 
Bool_t fEventTimeInMCHeader
 
Bool_t fSBRatiobyN
 
Bool_t fSBRatiobyT
 
UInt_t fCurrentEntryNo
 
UInt_t fTimeforEntryNo
 
UInt_t fNoOfBGEntries
 
std::map< UInt_t, UInt_t > fCurrentEntry
 
Bool_t fEvtHeaderIsNew
 
Bool_t fFillLastData
 
Int_t fEntryNr
 
std::map< unsigned,
TClonesArray * > 
mMoCaLookup
 
std::map< unsigned,
TClonesArray * > 
mDigiLookup
 

Static Private Attributes

static FairRootManagerfgInstance = 0
 

Detailed Description

I/O Manager class

Author
M. Al-Turany, Denis Bertini
Version
0.1
Since
12.01.04

Definition at line 43 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 43 of file FairRootManager.h

Constructor & Destructor Documentation

FairRootManager::FairRootManager ( )

ctor

Definition at line 64 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 64 of file FairRootManager.cxx

References fgInstance.

FairRootManager::~FairRootManager ( )
virtual

dtor

Definition at line 137 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 137 of file FairRootManager.cxx

References FairLogger::Debug(), fBranchNameList, fgInstance, fInChain, fInFile, fLogger, fObj2, fOutFile, fOutTree, and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

FairRootManager::FairRootManager ( const FairRootManager )
private

private methods

Member Function Documentation

TObject * FairRootManager::ActivateBranch ( const char *  BrName)
private

Set the branch address for a given branch name and return a TObject pointer, the user have to cast this pointer to the right type.

Private functions

Set the branch address for a given branch name and return a TObject pointer, the user have to cast this pointer to the right type. The function has been revisited ! Now it test if in the task init() mutilple calls to activate branch is done , and then just forward the pointer. <DB>

try to find the object decribing the branch in the folder structure in file

if we do not find an object corresponding to the branch in the folder structure then we have no idea about what type of object is this and we cannot set the branch address

All branches has the same types in background and signal chains, thus we can set the branch address to aal of them with one TClonesarray and then we call the proper fill in the read (event) entry

Definition at line 1581 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1581 of file FairRootManager.cxx

References AddMemoryBranch(), FairLogger::Debug(), FairLogger::Debug2(), fBackgroundChain, fInChain, fInTree, fListFolder, fLogger, fMixedInput, fNObj, fObj2, fSignalTypeList, GetMemoryBranch(), FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by GetObject(), and GetObjectFromInTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TObject * FairRootManager::ActivateBranchInInTree ( const char *  BrName)
private

if we do not find an object corresponding to the branch in the folder structure then we have no idea about what type of object is this and we cannot set the branch address

Definition at line 1653 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1653 of file FairRootManager.cxx

References AddMemoryBranch(), fInTree, fListFolder, fLogger, fNObj, fObj2, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by GetObjectFromInTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::AddBackgroundFile ( TString  name)

Add input background file by name

Definition at line 231 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 231 of file FairRootManager.cxx

References FairFileHeader::AddInputFile(), FairLogger::Fatal(), fBackgroundChain, fFileHeader, fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by FairRunAna::AddBackgroundFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::AddDigiLookupEntry ( unsigned  id,
TClonesArray *  ptr 
)
inline

Definition at line 236 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 236 of file FairRootManager.h

References mDigiLookup.

Referenced by EicIdealTrackingCode::Init().

+ Here is the caller graph for this function:

void FairRootManager::AddFile ( TString  name)

Definition at line 530 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 530 of file FairRootManager.cxx

References FairLogger::Fatal(), fInputChainList, fLogger, fMixedInput, and MESSAGE_ORIGIN.

Referenced by FairRunAna::AddFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::AddFriend ( TString  Name)

Definition at line 1798 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1798 of file FairRootManager.cxx

References fFriendFileList.

Referenced by FairRunAna::AddFriend().

+ Here is the caller graph for this function:

void FairRootManager::AddFriends ( )
private
void FairRootManager::AddFriendsToChain ( )

Definition at line 1805 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1805 of file FairRootManager.cxx

References CompareBranchList(), CreateNewFriendChain(), FairLogger::Fatal(), fFriendFileList, fFriendTypeList, fInChain, fInputLevel, fLogger, MESSAGE_ORIGIN, and PrintFriendList().

Referenced by FairRunAna::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::AddMemoryBranch ( const char *  fName,
TObject pObj 
)
private

Add a branch to memory, it will not be written to the output files

branch will be available ionly in Memory, will not be written to disk

Definition at line 1684 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1684 of file FairRootManager.cxx

References fMap, and p.

Referenced by ActivateBranch(), ActivateBranchInInTree(), and Register().

+ Here is the caller graph for this function:

void FairRootManager::AddMoCaLookupEntry ( unsigned  id,
TClonesArray *  ptr 
)
inline

Definition at line 235 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 235 of file FairRootManager.h

References mMoCaLookup.

Referenced by EicIdealTrackingCode::Init().

+ Here is the caller graph for this function:

void FairRootManager::AddSignalFile ( TString  name,
UInt_t  identifier 
)

Definition at line 195 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 195 of file FairRootManager.cxx

References SetSignalFile().

Referenced by FairRunAna::AddSignalFile(), and FairRunAna::SetSignalFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairRootManager::AllDataProcessed ( )

Definition at line 942 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 942 of file FairRootManager.cxx

References fTSBufferMap, and it.

Referenced by FairRunAna::RunTSBuffers().

+ Here is the caller graph for this function:

void FairRootManager::AssignTClonesArray ( TString  branchName)
private

Definition at line 1705 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1705 of file FairRootManager.cxx

References ForceGetDataContainer(), and GetObject().

Referenced by AssignTClonesArrays().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::AssignTClonesArrays ( )
private

Definition at line 1698 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1698 of file FairRootManager.cxx

References AssignTClonesArray(), fDataContainer, and it.

Referenced by Fill(), and SaveAllContainers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::BGWindowWidthNo ( UInt_t  background,
UInt_t  Signalid 
)

Set the signal to background ratio in event units

Parameters
background: Number of background Events for one signal
Signalid: Signal file Id, used when adding (setting) the signal file

Definition at line 2150 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2150 of file FairRootManager.cxx

References FairLogger::Fatal(), fLogger, fSBRatiobyN, fSBRatiobyT, fSignalBGN, FairLogger::Info(), MESSAGE_ORIGIN, and value.

Referenced by FairRunAna::BGWindowWidthNo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::BGWindowWidthTime ( Double_t  background,
UInt_t  Signalid 
)

Set the signal to background rate in time units

Parameters
background: Time of background Events before one signal
Signalid: Signal file Id, used when adding (setting) the signal file

convert to number of event by dividing by the mean time

Definition at line 2167 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2167 of file FairRootManager.cxx

References FairLogger::Fatal(), fEventMeanTime, fEventTimeInMCHeader, fLogger, fSBRatiobyN, fSBRatiobyT, fSignalBGN, MESSAGE_ORIGIN, and value.

Referenced by FairRunAna::BGWindowWidthTime().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Int_t FairRootManager::CheckBranch ( const char *  BrName)

Check if Branch persistence or not (Memory branch) return value: 1 : Branch is Persistance 2 : Memory Branch 0 : Branch does not exist

The first time this method is called the map is generated and then used

Definition at line 1546 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1546 of file FairRootManager.cxx

References CheckBranchSt(), CreatePerMap(), fBranchPerMap, fBrPerMap, and fBrPerMapIter.

Referenced by FairMultiLinkedData::AddLink(), FairTask::CheckInputPersistance(), and FairMultiLinkedData::GetData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Int_t FairRootManager::CheckBranchSt ( const char *  BrName)
private
Internal Check if Branch persistence or not (Memory branch)

return value: 1 : Branch is Persistance 2 : Memory Branch 0 : Branch does not exist

1 : Branch is Persistance 2 : Memory Branch 0 : Branch does not exist

Definition at line 1715 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1715 of file FairRootManager.cxx

References fCbmout, fCbmroot, fListFolder, and GetMemoryBranch().

Referenced by CheckBranch(), and CreatePerMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::CheckFriendChains ( )
private

Definition at line 575 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 575 of file FairRootManager.cxx

References FairLogger::Error(), FairLogger::Fatal(), fInputLevel, fLogger, fRunIdInfoAll, it, and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

Int_t FairRootManager::CheckMaxEventNo ( Int_t  EvtEnd = 0)

Check the maximum event number we can run to

Definition at line 2191 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2191 of file FairRootManager.cxx

References fBackgroundChain, fInChain, fLogger, fMixedInput, fSignalBGN, fSignalTypeList, FairLogger::Info(), MESSAGE_ORIGIN, ratio, and FairLogger::Warning().

Referenced by FairRunAna::RunMixed().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::CloseInFile ( )
inline

Definition at line 67 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 67 of file FairRootManager.h

References fInFile.

void FairRootManager::CloseOutFile ( )
inline

Definition at line 69 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 69 of file FairRootManager.h

References fOutFile.

Referenced by OpenOutFile(), FairRunAna::RunOnProof(), FairMCApplication::StopRun(), and FairRunAna::TerminateRun().

+ Here is the caller graph for this function:

Bool_t FairRootManager::CompareBranchList ( TFile *  fileHandle,
TString  inputLevel 
)
private

Definition at line 1944 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1944 of file FairRootManager.cxx

References fCheckInputBranches, and charm_jet_coverage::list.

Referenced by AddFriendsToChain(), OpenInChain(), and OpenSignalChain().

+ Here is the caller graph for this function:

void FairRootManager::CreateGeometryFile ( const char *  geofile)

Create a new file and save the current TGeoManager object to it

Writes the geometry in a separate file. This is only to have a file which can be read without the framework. The geomanager used by the framework is still stored in the parameter file or database

Definition at line 1025 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1025 of file FairRootManager.cxx

References eicpy.qaplots::file.

Referenced by FairRun::CreateGeometryFile().

+ Here is the caller graph for this function:

void FairRootManager::CreateNewFriendChain ( TString  inputFile,
TString  inputLevel 
)
private

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

Definition at line 1898 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1898 of file FairRootManager.cxx

References fBranchNameList, fBranchSeqId, fCheckInputBranches, fFriendTypeList, fInputLevel, fListFolder, and charm_jet_coverage::list.

Referenced by AddFriendsToChain().

+ Here is the caller graph for this function:

void FairRootManager::CreatePerMap ( )
private

Create the Map for the branch persistency status

Definition at line 1756 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1756 of file FairRootManager.cxx

References CheckBranchSt(), fBranchNameList, fBranchPerMap, fBranchSeqId, fBrPerMap, and name.

Referenced by CheckBranch().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairRootManager::DataContainersEmpty ( )

Definition at line 654 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 654 of file FairRootManager.cxx

References fDataContainer, and it.

Referenced by SaveAllContainers().

+ Here is the caller graph for this function:

Bool_t FairRootManager::DataContainersFilled ( )

Definition at line 666 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 666 of file FairRootManager.cxx

References fDataContainer, and it.

Referenced by Fill(), and GetDataContainer().

+ Here is the caller graph for this function:

void FairRootManager::DeleteOldWriteoutBufferData ( )

Definition at line 2278 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2278 of file FairRootManager.cxx

References fWriteoutBufferMap.

Referenced by FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), FairRunAna::RunOneEvent(), and FairRunAna::RunTSBuffers().

+ Here is the caller graph for this function:

void FairRootManager::Fill ( )

Definition at line 954 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 954 of file FairRootManager.cxx

References AssignTClonesArrays(), DataContainersFilled(), fCompressData, and ForceFill().

Referenced by FairRunAna::DummyRun(), FairMCApplication::FinishEvent(), LastFill(), FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), FairRunAna::RunOneEvent(), FairRunAna::RunOnLmdFiles(), and FairRunAna::RunTSBuffers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::ForceFill ( )

Definition at line 970 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 970 of file FairRootManager.cxx

References fLogger, fOutTree, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by Fill(), and SaveAllContainers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TClonesArray * FairRootManager::ForceGetDataContainer ( TString  branchName)

Definition at line 873 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 873 of file FairRootManager.cxx

References fDataContainer.

Referenced by AssignTClonesArray().

+ Here is the caller graph for this function:

TChain* FairRootManager::GetBGChain ( )
inline

Definition at line 90 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 90 of file FairRootManager.h

References fBackgroundChain.

Referenced by GetCloneOfLinkData(), and GetCloneOfTClonesArray().

+ Here is the caller graph for this function:

Int_t FairRootManager::GetBranchId ( TString  BrName)

Return Id of a branch named

Return the branch id from the name

Definition at line 901 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 901 of file FairRootManager.cxx

References fBranchNameList, and t.

Referenced by PndTrackCand::AddHit(), FairMultiLinkedData::AddLink(), PndGFTrackToPndTrackConvertorTask::Exec(), PndRecoKalmanTask::Exec(), EicIdealTrackingCode::Exec(), and EicIdealTrackingCode::Init().

+ Here is the caller graph for this function:

TString FairRootManager::GetBranchName ( Int_t  id)

Return branch name by Id

Return the branch name from the id

Definition at line 887 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 887 of file FairRootManager.cxx

References fBranchNameList, and fBranchSeqId.

Referenced by FairMultiLinkedData::AddLink(), PndTrackCand::CalcTimeStamp(), GetCloneOfLinkData(), GetCloneOfTClonesArray(), and FairMultiLinkedData::GetData().

+ Here is the caller graph for this function:

TList* FairRootManager::GetBranchNameList ( )
inline

Return a TList of TObjString of branch names

Definition at line 86 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 86 of file FairRootManager.h

References fBranchNameList.

TObject * FairRootManager::GetCloneOfLinkData ( const FairLink  link)

Returns a clone of the data object the link is pointing to. The clone has to be deleted in the calling code!

Definition at line 1249 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1249 of file FairRootManager.cxx

References fInputBranchMap, GetBGChain(), GetBranchName(), FairLink::GetEntry(), GetEntryNr(), FairLink::GetFile(), FairLink::GetIndex(), GetInTree(), GetObject(), GetSignalChainNo(), and FairLink::GetType().

Referenced by PndTrackCand::CalcTimeStamp().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TClonesArray * FairRootManager::GetCloneOfTClonesArray ( const FairLink  link)

Get the data of the given branch name, this method runs over multiple entries of the tree and selects the data according to the function and the parameter given.

Definition at line 1331 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1331 of file FairRootManager.cxx

References fInputBranchMap, GetBGChain(), GetBranchName(), FairLink::GetEntry(), GetEntryNr(), FairLink::GetFile(), FairLink::GetIndex(), GetInTree(), GetObject(), GetSignalChainNo(), and FairLink::GetType().

+ Here is the call graph for this function:

TClonesArray * FairRootManager::GetData ( TString  branchName,
BinaryFunctor function,
Double_t  parameter 
)

Definition at line 919 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 919 of file FairRootManager.cxx

References fTSBufferMap, and GetInTree().

Referenced by FairBoxSetDraw::Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TClonesArray * FairRootManager::GetData ( TString  branchName,
BinaryFunctor startFunction,
Double_t  startParameter,
BinaryFunctor stopFunction,
Double_t  stopParameter 
)

Definition at line 930 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 930 of file FairRootManager.cxx

References fTSBufferMap, and GetInTree().

+ Here is the call graph for this function:

TClonesArray * FairRootManager::GetDataContainer ( TString  branchName)

Definition at line 863 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 863 of file FairRootManager.cxx

References DataContainersFilled(), and fDataContainer.

+ Here is the call graph for this function:

TClonesArray* FairRootManager::GetDigiLookup ( unsigned  id)
inline

Definition at line 241 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 241 of file FairRootManager.h

References mDigiLookup.

Referenced by PndRecoKalmanFit::Fit().

+ Here is the caller graph for this function:

TClonesArray * FairRootManager::GetEmptyTClonesArray ( TString  branchName)

Definition at line 819 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 819 of file FairRootManager.cxx

References fActiveContainer, fCompressData, fDataContainer, fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by FairRingSorterTask::Exec(), and FairRingSorterTask::FinishTask().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Int_t FairRootManager::GetEntryNr ( )
inline

Definition at line 232 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 232 of file FairRootManager.h

References fEntryNr.

Referenced by GetCloneOfLinkData(), and GetCloneOfTClonesArray().

+ Here is the caller graph for this function:

Double_t FairRootManager::GetEventTime ( )

Definition at line 2069 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2069 of file FairRootManager.cxx

References FairLogger::Debug(), fCurrentEntryNo, fEventTime, fEventTimeInMCHeader, fEvtHeader, fEvtHeaderIsNew, fLogger, fMCHeader, fTimeforEntryNo, FairEventHeader::GetEventTime(), FairMCEventHeader::GetT(), MESSAGE_ORIGIN, and SetEventTime().

Referenced by FairBoxSetDraw::Exec(), ReadEvent(), ReadMixedEvent(), FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), and FairRunAna::RunOneEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairGeoNode * FairRootManager::GetGeoParameter ( const char *  detname,
const char *  gname 
)

Get the Object (container) for the given branch name, this method can be used to access the data of a branch that was created from a different analysis task, and not written in the tree yet. the user have to cast this pointer to the right type.

Definition at line 1405 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1405 of file FairRootManager.cxx

References fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

TChain* FairRootManager::GetInChain ( )
inline

Definition at line 89 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 89 of file FairRootManager.h

References fInChain.

Referenced by ClassImp(), FairMCApplication::GetChain(), FairEventManagerEditor::Init(), FairRunAna::Init(), FairRunAna::Run(), EicRunAna::RunCoreStart(), and FairRunAna::RunOnProof().

+ Here is the caller graph for this function:

TFile* FairRootManager::GetInFile ( )
inline

Definition at line 93 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 93 of file FairRootManager.h

References fInFile.

Referenced by PndFieldCreator::createFairField(), EicRecoKalmanTask::Init(), FairRunAna::Init(), EicDigiHitProducer::Init(), EicEventAssembler::Init(), FwdTrackFinder::Init(), and EicHtcTask::Init().

+ Here is the caller graph for this function:

TTree* FairRootManager::GetInTree ( )
inline

Definition at line 88 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 88 of file FairRootManager.h

References fInChain.

Referenced by GetCloneOfLinkData(), GetCloneOfTClonesArray(), GetData(), and EicEventAssembler::Init().

+ Here is the caller graph for this function:

TObject * FairRootManager::GetMemoryBranch ( const char *  fName)
private

Definition at line 1771 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1771 of file FairRootManager.cxx

References fMap, and p.

Referenced by ActivateBranch(), CheckBranchSt(), and GetObject().

+ Here is the caller graph for this function:

TClonesArray* FairRootManager::GetMoCaLookup ( unsigned  id)
inline

Definition at line 237 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 237 of file FairRootManager.h

References mMoCaLookup.

Referenced by PndRecoKalmanFit::Fit().

+ Here is the caller graph for this function:

TObject * FairRootManager::GetObject ( const char *  BrName)

Return a pointer to the object (collection) saved in the fInChain branch named BrName

Get Data object by name

Try to find the object in the folder structure, object already activated by other task or call

if the object does not exist then it could be a memory branch

if the object does not exist then look in the input tree

there is an input tree and the object was not in memory

Definition at line 1189 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1189 of file FairRootManager.cxx

References ActivateBranch(), FairLogger::Debug2(), fCbmout, fCbmroot, fLogger, GetMemoryBranch(), and MESSAGE_ORIGIN.

Referenced by FairMultiLinkedData::AddLink(), AssignTClonesArray(), PndTrackCand::CalcTimeStamp(), EicEventAssembler::Exec(), FairTSBufferFunctional::FairTSBufferFunctional(), GetCloneOfLinkData(), GetCloneOfTClonesArray(), FairMultiLinkedData::GetData(), GetObjectFromInTree(), PndTrackArrayMerger::Init(), PndMcCloner::Init(), EicRecoKalmanTask::Init(), EicSmearTask::Init(), PndGFTrackToPndTrackConvertorTask::Init(), CbmRichRingFinderIdeal::Init(), CbmMCMatchLoaderTask::Init(), FairRunAna::Init(), CbmRichRingTrackAssignClosestD::Init(), CbmRichRingTrackAssignIdeal::Init(), CbmRichTrackExtrapolationIdeal::Init(), CbmMCMatchSelectorTask::Init(), CbmRichEventDisplay::Init(), CbmRichTrackExtrapolationKF::Init(), CbmRichHitProducer::Init(), CbmRichProjectionProducer::Init(), PrimSelector::Init(), FairMCTracks::Init(), CbmRichTestHits::Init(), CbmRichTestSim::Init(), CbmRichMatchRings::Init(), FairMCStack::Init(), CbmRichUrqmdTest::Init(), CbmRichTrackExtrapolationMirrorIdeal::Init(), CbmRichReconstruction::Init(), PndRecoMultiKalmanTask::Init(), EicDigiHitProducer::Init(), FairPointSetDraw::Init(), CbmRichGeoTest::Init(), EicEventAssembler::Init(), PndRecoKalmanTask::Init(), CbmDigiManager::Init(), CbmRichTrainAnnSelect::Init(), CbmRichTrainAnnElectrons::Init(), FairBoxSetDraw::Init(), EicCalorimeterReconstruction::Init(), EicIdealTrackingCode::Init(), CbmRichConverter::Init(), PndPidCorrelator::Init(), CbmMCMatchCreatorTask::InitBranches(), ReadEvent(), ReadMixedEvent(), and PndStack::UpdateTrackIndex().

+ Here is the call graph for this function:

TObject * FairRootManager::GetObjectFromInTree ( const char *  BrName)

Return a pointer to the object (collection) saved in the fInTree branch named BrName

Get Data object by name

Try to find the object in the folder structure, object already activated by other task or call

if the object does not exist then look in the input tree

there is an input tree and the object was not in memory

Definition at line 1225 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1225 of file FairRootManager.cxx

References ActivateBranch(), ActivateBranchInInTree(), FairLogger::Debug2(), fCbmroot, fInTree, fLogger, GetObject(), and MESSAGE_ORIGIN.

Referenced by FairRunAna::InitContainers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TFile* FairRootManager::GetOutFile ( )
inline

Definition at line 94 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 94 of file FairRootManager.h

References fOutFile.

Referenced by PrimSelector::FinishTask(), FairRunAna::RunOnProof(), and FairRunAna::TerminateRun().

+ Here is the caller graph for this function:

TTree* FairRootManager::GetOutTree ( )
inline

Definition at line 92 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 92 of file FairRootManager.h

References fOutTree.

void FairRootManager::GetRunIdInfo ( TString  fileName,
TString  inputLevel 
)
private

Definition at line 1995 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1995 of file FairRootManager.cxx

References fRunIdInfoAll, FairEventHeader::GetRunId(), and it.

+ Here is the call graph for this function:

TChain * FairRootManager::GetSignalChainNo ( UInt_t  i)

Definition at line 202 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 202 of file FairRootManager.cxx

References fLogger, fNoOfSignals, fSignalTypeList, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by GetCloneOfLinkData(), and GetCloneOfTClonesArray().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TClonesArray * FairRootManager::GetTClonesArray ( TString  branchName)

if a TClonesArray is registered in the active container

if the container is not empty push it into the DataContainer storage and create a new one

Definition at line 844 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 844 of file FairRootManager.cxx

References fActiveContainer, fCompressData, fDataContainer, fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by FairWriteoutBuffer::DeleteOldData(), FairRingSorterTask::Exec(), FairRingSorterTask::FinishTask(), FairRingSorterTask::Init(), FairWriteoutBuffer::WriteOutData(), and FairWriteoutBuffer::WriteOutDataDeadTimeMap().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairTSBufferFunctional* FairRootManager::GetTSBuffer ( TString  branchName)
inline

Definition at line 119 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 119 of file FairRootManager.h

References fTSBufferMap.

FairWriteoutBuffer * FairRootManager::GetWriteoutBuffer ( TString  branchName)
private

Definition at line 2244 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2244 of file FairRootManager.cxx

References fWriteoutBufferMap.

FairRootManager * FairRootManager::Instance ( )
static

static access method

Definition at line 55 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 55 of file FairRootManager.cxx

References fgInstance.

Referenced by PndTrackCand::AddHit(), FairMultiLinkedData::AddLink(), PndTrackCand::CalcTimeStamp(), FairTask::CheckInputPersistance(), ClassImp(), PndPidCorrelator::ConstructChargedCandidate(), PndFieldCreator::createFairField(), FairWriteoutBuffer::DeleteOldData(), PndGFTrackToPndTrackConvertorTask::Exec(), EicEventAssembler::Exec(), PndRecoKalmanTask::Exec(), FairBoxSetDraw::Exec(), FairRingSorterTask::Exec(), EicIdealTrackingCode::Exec(), EicCalorimeterDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::ExtraInit(), FairMCApplication::FairMCApplication(), FairMultiLinkedData::FairMultiLinkedData(), FairTSBufferFunctional::FairTSBufferFunctional(), FairWriteoutBuffer::FairWriteoutBuffer(), PrimSelector::FinishTask(), FairRingSorterTask::FinishTask(), PndRecoKalmanFit::Fit(), FairMultiLinkedData::GetData(), PndTrackArrayMerger::Init(), PndMcCloner::Init(), EicRecoKalmanTask::Init(), EicSmearTask::Init(), PndGFTrackToPndTrackConvertorTask::Init(), FairAnaSelector::Init(), FairEventManagerEditor::Init(), CbmRichRingFinderIdeal::Init(), CbmMCMatchCreatorTask::Init(), CbmMCMatchLoaderTask::Init(), FairBoxSetEditor::Init(), CbmRichRingTrackAssignClosestD::Init(), CbmRichRingTrackAssignIdeal::Init(), CbmRichTrackExtrapolationIdeal::Init(), CbmMCMatchSelectorTask::Init(), CbmRichTrackExtrapolationKF::Init(), CbmRichEventDisplay::Init(), CbmRichHitProducer::Init(), CbmRichProjectionProducer::Init(), PrimSelector::Init(), PndRecoDafFit::Init(), PndRecoKalmanFit::Init(), FairMCTracks::Init(), CbmRichTestHits::Init(), CbmRichMatchRings::Init(), CbmRichTestSim::Init(), FairMCStack::Init(), CbmRichTrackExtrapolationMirrorIdeal::Init(), CbmRichUrqmdTest::Init(), CbmRichReconstruction::Init(), EicDigiHitProducer::Init(), PndRecoMultiKalmanTask::Init(), FairPointSetDraw::Init(), EicEventAssembler::Init(), CbmRichGeoTest::Init(), PndRecoKalmanTask::Init(), CbmDigiManager::Init(), CbmRichTrainAnnSelect::Init(), CbmRichTrainAnnElectrons::Init(), FairRingSorterTask::Init(), FairBoxSetDraw::Init(), EicCalorimeterReconstruction::Init(), FairRadLenManager::Init(), EicIdealTrackingCode::Init(), FairRadMapManager::Init(), CbmRichConverter::Init(), FwdTrackFinder::Init(), FairTrajFilter::Init(), PndPidCorrelator::Init(), EicHtcTask::Init(), CbmMCMatchCreatorTask::InitBranches(), FairTSBufferFunctional::ReadInEntry(), FairEventHeader::Register(), CbmMCEventHeader::Register(), FairMCEventHeader::Register(), EicIdealTrackingCode::Register(), CbmRich::Register(), EicDetector::Register(), CbmStack::Register(), PndStack::Register(), PndPidCorrelator::Register(), FairEventManagerEditor::SelectEvent(), PndStack::UpdateTrackIndex(), FairWriteoutBuffer::WriteOutData(), FairWriteoutBuffer::WriteOutDataDeadTimeMap(), CbmRichHitProducer::~CbmRichHitProducer(), CbmRichProjectionProducer::~CbmRichProjectionProducer(), and PndPidCorrelator::~PndPidCorrelator().

Bool_t FairRootManager::IsEvtHeaderNew ( )
inline

Definition at line 174 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 174 of file FairRootManager.h

References fEvtHeaderIsNew.

Referenced by FairRunAna::Run(), and EicRunAna::RunCoreProcessNextEvent().

+ Here is the caller graph for this function:

void FairRootManager::LastFill ( )

Definition at line 981 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 981 of file FairRootManager.cxx

References fFillLastData, and Fill().

Referenced by FairRunAna::Run(), EicRunAna::RunCoreFinish(), FairRunAna::RunMixed(), FairRunAna::RunTSBuffers(), and FairRunAna::TerminateRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairRootManager::OpenBackgroundChain ( )

Definition at line 263 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 263 of file FairRootManager.cxx

References fBackgroundFile, fBranchNameList, fBranchSeqId, fCbmroot, fCheckInputBranches, fInputLevel, fListFolder, and charm_jet_coverage::list.

Referenced by FairRunAna::Init(), and OpenInChain().

+ Here is the caller graph for this function:

Bool_t FairRootManager::OpenInChain ( )

Definition at line 334 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 334 of file FairRootManager.cxx

References CompareBranchList(), FairLogger::Fatal(), fBranchNameList, fBranchSeqId, fCbmroot, fCheckInputBranches, fInChain, fInFile, fInputChainList, fInputFileName, fInputLevel, fListFolder, fLogger, fMixedInput, FairLogger::Info(), charm_jet_coverage::list, MESSAGE_ORIGIN, and OpenBackgroundChain().

Referenced by FairRunAna::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairRootManager::OpenInTree ( )

Open and prepare the input tree when running on PROOF worker

Definition at line 450 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 450 of file FairRootManager.cxx

References FairLogger::Fatal(), fBranchNameList, fBranchSeqId, fCbmroot, fCheckInputBranches, fInFile, fInputFileName, fInputLevel, fInTree, fListFolder, fLogger, fNObj, fObj2, charm_jet_coverage::list, and MESSAGE_ORIGIN.

Referenced by FairAnaSelector::Init(), and FairRunAna::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TFile * FairRootManager::OpenOutFile ( const char *  fname = "cbmsim.root")

Definition at line 702 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 702 of file FairRootManager.cxx

References CloseOutFile(), FairLogger::Debug(), fLogger, fOutFile, and MESSAGE_ORIGIN.

Referenced by FairRun::SetOutputFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TFile * FairRootManager::OpenOutFile ( TFile *  f)

Check the output file, if anything wronge with it exit!

Check if a simulation run!

Definition at line 678 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 678 of file FairRootManager.cxx

References FairLogger::Debug(), exit(), FairLogger::Fatal(), fCbmout, fCbmroot, fLogger, fOutFile, FairRun::Instance(), FairRun::IsAna(), and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

Bool_t FairRootManager::OpenSignalChain ( )

Definition at line 314 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 314 of file FairRootManager.cxx

References CompareBranchList(), FairLogger::Fatal(), fLogger, fSignalTypeList, and MESSAGE_ORIGIN.

Referenced by FairRunAna::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairRootManager& FairRootManager::operator= ( const FairRootManager )
private
void FairRootManager::PrintFriendList ( )
private

Definition at line 542 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 542 of file FairRootManager.cxx

References fFriendTypeList, fInChain, fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by AddFriendsToChain().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::ReadBKEvent ( Int_t  i)

Read a single entry from background chain

Definition at line 1167 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1167 of file FairRootManager.cxx

References fBackgroundChain, fLogger, fMixedInput, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by FairRunAna::Init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::ReadEvent ( Int_t  i)

Check for fCurrentEntryNo because it always starts from Zero, i could have any value!

Definition at line 1057 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1057 of file FairRootManager.cxx

References fCurrentEntryNo, fEvtHeader, fInChain, fInTree, fLogger, fMixedInput, GetEventTime(), GetObject(), FairLogger::Info(), MESSAGE_ORIGIN, ReadMixedEvent(), SetEntryNr(), FairEventHeader::SetEventTime(), SetEventTime(), FairEventHeader::SetInputFileId(), and FairEventHeader::SetMCEntryNumber().

Referenced by FairRunAna::Init(), FairRunAna::InitContainers(), FairRunAna::Run(), EicRunAna::RunCoreImportNextEvent(), FairRunAna::RunMixed(), FairRunAna::RunOneEvent(), and FairRunAna::RunTSBuffers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::ReadMixedEvent ( Int_t  i)
private

Read a single entry

Privat method used for event mixing

Check for fCurrentEntryNo because it always starts from Zero, i could have any value!

Definition at line 1112 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1112 of file FairRootManager.cxx

References FairLogger::Debug(), fBackgroundChain, fCurrentEntry, fCurrentEntryNo, fEvtHeader, fLogger, fSBRatiobyN, fSBRatiobyT, fSignalBGN, fSignalTypeList, GetEventTime(), GetObject(), MESSAGE_ORIGIN, ratio, FairEventHeader::SetEventTime(), SetEventTime(), FairEventHeader::SetInputFileId(), and FairEventHeader::SetMCEntryNumber().

Referenced by ReadEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairRootManager::ReadNextEvent ( Double_t  dt)

Read all entries from input tree(s) with time stamp from current time to dt (time in ns)

TODO

Definition at line 1180 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1180 of file FairRootManager.cxx

Referenced by FairRunAna::Run().

+ Here is the caller graph for this function:

void FairRootManager::Register ( const char *  name,
const char *  Foldername,
TNamed *  obj,
Bool_t  toFile 
)

create a new branch in the output tree

Parameters
nameName of the branch to create
FoldernameFolder name containing this branch (e.g Detector name)
objPointer of type TNamed (e.g. MCStack object)
toFileif kTRUE, branch will be saved to the tree

Write the Object to the Tree

Definition at line 715 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 715 of file FairRootManager.cxx

References AddMemoryBranch(), FairLogger::Fatal(), fBranchNameList, fBranchSeqId, fCbmout, fCbmroot, fLogger, and MESSAGE_ORIGIN.

Referenced by EicCalorimeterDigiHitProducer::ExtraInit(), EicTrackingDigiHitProducer::ExtraInit(), FairWriteoutBuffer::FairWriteoutBuffer(), PndTrackArrayMerger::Init(), PndMcCloner::Init(), PndGFTrackToPndTrackConvertorTask::Init(), CbmMCMatchCreatorTask::Init(), CbmMCMatchLoaderTask::Init(), PrimSelector::Init(), CbmRichHitProducer::Init(), CbmRichMatchRings::Init(), CbmRichReconstruction::Init(), PndRecoMultiKalmanTask::Init(), PndRecoKalmanTask::Init(), FairRingSorterTask::Init(), EicCalorimeterReconstruction::Init(), FairRadLenManager::Init(), FairRadMapManager::Init(), FwdTrackFinder::Init(), FairTrajFilter::Init(), EicHtcTask::Init(), CbmMCEventHeader::Register(), FairEventHeader::Register(), FairMCEventHeader::Register(), EicIdealTrackingCode::Register(), CbmRich::Register(), EicDetector::Register(), Register(), CbmStack::Register(), PndStack::Register(), and PndPidCorrelator::Register().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::Register ( const char *  name,
const char *  Foldername,
TCollection *  obj,
Bool_t  toFile 
)

create a new branch in the output tree

Parameters
nameName of the branch to create
FoldernameFolder name containing this branch (e.g Detector name)
objPointer of type TCollection (e.g. TClonesArray of hits, points)
toFileif kTRUE, branch will be saved to the tree

This method do exactly the same as the one before but for TCollection which is a TObject and not a TNamed (MT)

Write the Object to the Tree

Keep the Object in Memory, and do not write it to the tree

Definition at line 757 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 757 of file FairRootManager.cxx

References AddMemoryBranch(), FairLogger::Fatal(), fBranchNameList, fBranchSeqId, fCbmout, fCbmroot, fLogger, and MESSAGE_ORIGIN.

+ Here is the call graph for this function:

TClonesArray * FairRootManager::Register ( TString  branchName,
TString  className,
TString  folderName,
Bool_t  toFile 
)

Definition at line 801 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 801 of file FairRootManager.cxx

References fActiveContainer, fCompressData, fDataContainer, and Register().

+ Here is the call graph for this function:

void FairRootManager::RegisterTSBuffer ( TString  branchName,
FairTSBufferFunctional functionalBuffer 
)
inline

Definition at line 118 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 118 of file FairRootManager.h

References fTSBufferMap.

FairWriteoutBuffer * FairRootManager::RegisterWriteoutBuffer ( TString  branchName,
FairWriteoutBuffer buffer 
)

Register a new PndWriteoutBuffer to the map. If a Buffer with the same map key already exists the given buffer will be deleted and the old will be returned!

Definition at line 2231 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2231 of file FairRootManager.cxx

References buffer, fLogger, fWriteoutBufferMap, MESSAGE_ORIGIN, and FairLogger::Warning().

+ Here is the call graph for this function:

void FairRootManager::RunWithTimeStamps ( )
inline

Use time stamps to read data and not tree entries

Definition at line 155 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 155 of file FairRootManager.h

References fTimeStamps.

Referenced by FairRunAna::Init(), and FairRunAna::RunWithTimeStamps().

+ Here is the caller graph for this function:

void FairRootManager::SaveAllContainers ( )
private

Definition at line 1788 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1788 of file FairRootManager.cxx

References AssignTClonesArrays(), DataContainersEmpty(), and ForceFill().

Referenced by Write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::SetBackgroundFile ( TString  name)

Set the input background file by name

Definition at line 214 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 214 of file FairRootManager.cxx

References FairFileHeader::AddInputFile(), FairLogger::Fatal(), fBackgroundChain, fBackgroundFile, fFileHeader, fLogger, FairLogger::Info(), and MESSAGE_ORIGIN.

Referenced by FairRunAna::SetBackgroundFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::SetBranchNameList ( TList *  list)

Set the branch name list

Definition at line 1564 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1564 of file FairRootManager.cxx

References fBranchNameList, and t.

void FairRootManager::SetCompressData ( Bool_t  val)
inline

Definition at line 178 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 178 of file FairRootManager.h

References fCompressData.

Referenced by FairRunAna::CompressData().

+ Here is the caller graph for this function:

void FairRootManager::SetEntryNr ( Int_t  val)
inline

Definition at line 233 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 233 of file FairRootManager.h

References fEntryNr.

Referenced by ReadEvent().

+ Here is the caller graph for this function:

void FairRootManager::SetEventMeanTime ( Double_t  mean)

Set the mean time for the event in ns

Definition at line 2117 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2117 of file FairRootManager.cxx

References fEventMeanTime, fEventTimeInMCHeader, and fTimeProb.

Referenced by FairRunAna::SetEventMeanTime().

+ Here is the caller graph for this function:

void FairRootManager::SetEventTime ( )

Definition at line 2132 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2132 of file FairRootManager.cxx

References FairLogger::Debug(), fCurrentEntryNo, fEventTime, fEventTimeMax, fEventTimeMin, fLogger, fTimeforEntryNo, fTimeProb, and MESSAGE_ORIGIN.

Referenced by GetEventTime(), ReadEvent(), and ReadMixedEvent().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Set the min and max limit for event time in ns

Definition at line 2107 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2107 of file FairRootManager.cxx

References fEventMeanTime, fEventTimeInMCHeader, fEventTimeMax, fEventTimeMin, max, and min.

Referenced by FairRunAna::SetEventTimeInterval().

+ Here is the caller graph for this function:

void FairRootManager::SetEvtHeaderNew ( Bool_t  Status)
inline

Add signal file to input

Parameters
name: signal file name
identifier: Unsigned integer which identify the signal file to which this signal should be added Set the status of the EvtHeader
Status,:True: 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 173 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 173 of file FairRootManager.h

References fEvtHeaderIsNew.

Referenced by FairRunAna::Init(), and FairRunAna::InitContainers().

+ Here is the caller graph for this function:

void FairRootManager::SetFileHeader ( FairFileHeader f)
inline

Definition at line 211 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 211 of file FairRootManager.h

References fFileHeader.

Referenced by FairRun::FairRun().

+ Here is the caller graph for this function:

void FairRootManager::SetInputFile ( TString  name)

Set the name of the input file

Definition at line 254 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 254 of file FairRootManager.cxx

References fInputFileName, fMixedInput, and name.

Referenced by FairRunAna::SetInputFile().

+ Here is the caller graph for this function:

void FairRootManager::SetInTree ( TTree *  tempTree)
inline

Set the input tree when running on PROOF worker

Definition at line 183 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 183 of file FairRootManager.h

References fInTree.

Referenced by FairRunAna::SetInTree().

+ Here is the caller graph for this function:

void FairRootManager::SetLastFill ( Bool_t  val = kTRUE)
inline

Enables a last Fill command after all events are processed to store any data which is still in Buffers

Definition at line 189 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 189 of file FairRootManager.h

References fFillLastData.

Referenced by FairRingSorterTask::FinishTask().

+ Here is the caller graph for this function:

void FairRootManager::SetOutTree ( TTree *  fTree)
inline

Set the output tree pointer

Definition at line 186 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 186 of file FairRootManager.h

References fOutTree.

Referenced by FairRunAna::Init(), and FairMCApplication::InitGeometry().

+ Here is the caller graph for this function:

void FairRootManager::SetSignalFile ( TString  name,
UInt_t  identifier 
)

Set the input signal file

Parameters
name: signal file name
identifier: Unsigned integer which identify the signal file

Set a signal file of certain type (identifier) if already exist add the file to the chain

Definition at line 167 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 167 of file FairRootManager.cxx

References FairFileHeader::AddInputFile(), fActualSignalIdentifier, FairLogger::Fatal(), fCurrentEntry, fFileHeader, fLogger, fMixedInput, fNoOfSignals, fSignalTypeList, and MESSAGE_ORIGIN.

Referenced by AddSignalFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::StoreAllWriteoutBufferData ( )

Definition at line 2264 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2264 of file FairRootManager.cxx

References fFillLastData, and fWriteoutBufferMap.

Referenced by FairRunAna::Run(), EicRunAna::RunCoreFinish(), FairRunAna::RunMixed(), FairRunAna::RunTSBuffers(), and FairRunAna::TerminateRun().

+ Here is the caller graph for this function:

void FairRootManager::StoreWriteoutBufferData ( Double_t  eventTime)

Definition at line 2255 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2255 of file FairRootManager.cxx

References fWriteoutBufferMap.

Referenced by FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), and FairRunAna::RunOneEvent().

+ Here is the caller graph for this function:

void FairRootManager::TruncateBranchNames ( TBranch *  b,
TString  ffn 
)

When creating TTree from TFolder the fullpath of the objects is used as branch names this method truncate the full path from the branch names

Get the branch name from the branch object, remove common and wrong part of the name and and set branch name to the new corrected name. This has to be done recursivly for all subbranches/leaves Remove wrong part of branch name

Definition at line 1518 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1518 of file FairRootManager.cxx

Referenced by FairRunAna::Init(), FairMCApplication::InitGeometry(), and TruncateBranchNames().

+ Here is the caller graph for this function:

void FairRootManager::TruncateBranchNames ( TTree *  fTree,
const char *  folderName 
)

When creating TTree from TFolder the fullpath of the objects is used as branch names this method truncate the full path from the branch names

If a object is created in a folder the corresponding branch in the tree is crated with a wrong name. The name of the branch is created as follows mainFolder.subFolder.nameOfStoredObject e.g. cbmroot.Event.ExampleClass. The name which is wanted is only nameOfStoredObject e.g. ExampleClass. This is corrected in this function If the folder does not exist don't do anything

correct branch names in all folders below the main output folder

Create TString with the part of the branch name which should be removed. This is mainFolderName.folderName. e.g. cbmroot.Event. This part of the branch name is obsolete, so it is removed from the branch name.

Correct name of all branches and leaves which correspond to the subfolder. To do so loop over all branches and check if the branch corresponds with the folder. If it corresponds correct the branch names of all sub branches. Only correct branch names for up to now uncorrected branches.

Definition at line 1433 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1433 of file FairRootManager.cxx

References TruncateBranchNames().

+ Here is the call graph for this function:

void FairRootManager::Write ( )

Writes the tree in the file.

Get the file handle to the current output file from the tree. If ROOT splits the file (due to the size of the file) the file handle fOutFile is lost and the program crash while writing the last part of the last file.

Definition at line 990 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 990 of file FairRootManager.cxx

References fCompressData, fLogger, fOutFile, fOutTree, FairLogger::Info(), MESSAGE_ORIGIN, and SaveAllContainers().

Referenced by FairRunAna::DummyRun(), FairMCApplication::FinishRun(), FairRunAna::Run(), EicRunAna::RunCoreFinish(), FairRunAna::RunMixed(), FairRunAna::RunOnLmdFiles(), FairRunAna::RunTSBuffers(), FairMCApplication::StopRun(), FairRunAna::TerminateRun(), CbmRichHitProducer::~CbmRichHitProducer(), CbmRichProjectionProducer::~CbmRichProjectionProducer(), and PndPidCorrelator::~PndPidCorrelator().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairRootManager::WriteFileHeader ( FairFileHeader f)

Write the file header object to the output file

Definition at line 2098 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 2098 of file FairRootManager.cxx

References fOutFile.

Referenced by FairRunAna::Init(), and FairRunSim::Init().

+ Here is the caller graph for this function:

void FairRootManager::WriteFolder ( )

Write the folder structure used to create the tree to the output file

Definition at line 1043 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1043 of file FairRootManager.cxx

References fBranchNameList, fCbmout, fCbmroot, fInFile, and fOutFile.

Referenced by FairRunAna::Init(), and FairMCApplication::InitGeometry().

+ Here is the caller graph for this function:

void FairRootManager::WriteGeometry ( )

Write the current TGeoManager to file

Writes the geometry in the current output file.

Definition at line 1012 of file FairRootManager.cxx.

View newest version in sPHENIX GitHub at line 1012 of file FairRootManager.cxx

References fOutFile, and fOutTree.

Member Data Documentation

std::map<TString, TClonesArray*> FairRootManager::fActiveContainer
private

Internally used to compress empty slots in data buffer

Definition at line 313 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 313 of file FairRootManager.h

Referenced by GetEmptyTClonesArray(), GetTClonesArray(), and Register().

UInt_t FairRootManager::fActualSignalIdentifier
private

Actual identifier of the added signals, this is used to identify how many signals are added

Definition at line 344 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 344 of file FairRootManager.h

Referenced by SetSignalFile().

TChain* FairRootManager::fBackgroundChain
private

Chain containing the background

Definition at line 350 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 350 of file FairRootManager.h

Referenced by ActivateBranch(), AddBackgroundFile(), CheckMaxEventNo(), GetBGChain(), ReadBKEvent(), ReadMixedEvent(), and SetBackgroundFile().

TFile* FairRootManager::fBackgroundFile
private

Definition at line 351 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 351 of file FairRootManager.h

Referenced by OpenBackgroundChain(), and SetBackgroundFile().

TList* FairRootManager::fBranchNameList
private

List of branch names as TObjString

Definition at line 309 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 309 of file FairRootManager.h

Referenced by CreateNewFriendChain(), CreatePerMap(), GetBranchId(), GetBranchName(), GetBranchNameList(), OpenBackgroundChain(), OpenInChain(), OpenInTree(), Register(), SetBranchNameList(), WriteFolder(), and ~FairRootManager().

Bool_t FairRootManager::fBranchPerMap
private

Flag for creation of Map for branch persistency list

Definition at line 324 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 324 of file FairRootManager.h

Referenced by CheckBranch(), and CreatePerMap().

Int_t FairRootManager::fBranchSeqId
private

Branch id for this run

Definition at line 307 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 307 of file FairRootManager.h

Referenced by CreateNewFriendChain(), CreatePerMap(), GetBranchName(), OpenBackgroundChain(), OpenInChain(), OpenInTree(), and Register().

std::map< TString , Int_t > FairRootManager::fBrPerMap
private

Map for branch persistency list

Definition at line 326 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 326 of file FairRootManager.h

Referenced by CheckBranch(), and CreatePerMap().

std::map< TString, Int_t>::iterator FairRootManager::fBrPerMapIter
private

Iterator for the fBrPerMap Map

Definition at line 328 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 328 of file FairRootManager.h

Referenced by CheckBranch().

TFolder* FairRootManager::fCbmout
private

private Members folder structure of output

Definition at line 282 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 282 of file FairRootManager.h

Referenced by CheckBranchSt(), GetObject(), OpenOutFile(), Register(), and WriteFolder().

TFolder* FairRootManager::fCbmroot
private

folder structure of input

Definition at line 284 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 284 of file FairRootManager.h

Referenced by CheckBranchSt(), GetObject(), GetObjectFromInTree(), OpenBackgroundChain(), OpenInChain(), OpenInTree(), OpenOutFile(), Register(), and WriteFolder().

std::map<TString, std::list<TString>* > FairRootManager::fCheckInputBranches
private

Definition at line 336 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 336 of file FairRootManager.h

Referenced by CompareBranchList(), CreateNewFriendChain(), OpenBackgroundChain(), OpenInChain(), and OpenInTree().

Bool_t FairRootManager::fCompressData
private

//Map of input branch ID with TBranch pointer

if kTRUE the entries of a branch are filled from the beginning –> no empty entries

Definition at line 320 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 320 of file FairRootManager.h

Referenced by Fill(), GetEmptyTClonesArray(), GetTClonesArray(), Register(), SetCompressData(), and Write().

Int_t FairRootManager::fCurrentEntries
private

Definition at line 303 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 303 of file FairRootManager.h

std::map<UInt_t, UInt_t> FairRootManager::fCurrentEntry
private

Hold the current entry for each input chain

Definition at line 388 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 388 of file FairRootManager.h

Referenced by ReadMixedEvent(), and SetSignalFile().

UInt_t FairRootManager::fCurrentEntryNo
private

for internal use, to return the same event time for the same entry

Definition at line 382 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 382 of file FairRootManager.h

Referenced by GetEventTime(), ReadEvent(), ReadMixedEvent(), and SetEventTime().

Double_t FairRootManager::fCurrentTime
private

current time in ns

Definition at line 286 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 286 of file FairRootManager.h

std::map<TString, std::queue<TClonesArray*> > FairRootManager::fDataContainer
private

Internally used to compress empty slots in data buffer

Definition at line 311 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 311 of file FairRootManager.h

Referenced by AssignTClonesArrays(), DataContainersEmpty(), DataContainersFilled(), ForceGetDataContainer(), GetDataContainer(), GetEmptyTClonesArray(), GetTClonesArray(), and Register().

Int_t FairRootManager::fEntryNr
private

Definition at line 395 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 395 of file FairRootManager.h

Referenced by GetEntryNr(), and SetEntryNr().

Double_t FairRootManager::fEventMeanTime
private

EventMean time used (P(t)=1/fEventMeanTime*Exp(-t/fEventMeanTime)

Definition at line 361 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 361 of file FairRootManager.h

Referenced by BGWindowWidthTime(), SetEventMeanTime(), and SetEventTimeInterval().

Double_t FairRootManager::fEventTime
private

Time of event since th start (ns)

Definition at line 359 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 359 of file FairRootManager.h

Referenced by GetEventTime(), and SetEventTime().

Bool_t FairRootManager::fEventTimeInMCHeader
private

This is true if the event time used, came from simulation

Definition at line 376 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 376 of file FairRootManager.h

Referenced by BGWindowWidthTime(), GetEventTime(), SetEventMeanTime(), and SetEventTimeInterval().

Double_t FairRootManager::fEventTimeMax
private

max time for one Event (ns)

Definition at line 357 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 357 of file FairRootManager.h

Referenced by SetEventTime(), and SetEventTimeInterval().

Double_t FairRootManager::fEventTimeMin
private

min time for one event (ns)

Definition at line 355 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 355 of file FairRootManager.h

Referenced by SetEventTime(), and SetEventTimeInterval().

FairEventHeader* FairRootManager::fEvtHeader
private

Event Header

Definition at line 368 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 368 of file FairRootManager.h

Referenced by GetEventTime(), ReadEvent(), and ReadMixedEvent().

Bool_t FairRootManager::fEvtHeaderIsNew
private

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. in the digi)

Definition at line 393 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 393 of file FairRootManager.h

Referenced by GetEventTime(), IsEvtHeaderNew(), and SetEvtHeaderNew().

FairFileHeader* FairRootManager::fFileHeader
private

File Header

Definition at line 371 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 371 of file FairRootManager.h

Referenced by AddBackgroundFile(), SetBackgroundFile(), SetFileHeader(), and SetSignalFile().

Bool_t FairRootManager::fFillLastData
private

Definition at line 394 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 394 of file FairRootManager.h

Referenced by LastFill(), SetLastFill(), and StoreAllWriteoutBufferData().

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

List of all files added with AddFriend

Definition at line 330 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 330 of file FairRootManager.h

Referenced by AddFriend(), and AddFriendsToChain().

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

Definition at line 334 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 334 of file FairRootManager.h

Referenced by AddFriendsToChain(), CreateNewFriendChain(), and PrintFriendList().

FairRootManager * FairRootManager::fgInstance = 0
staticprivate

Singleton instance

Definition at line 305 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 305 of file FairRootManager.h

Referenced by FairRootManager(), Instance(), and ~FairRootManager().

TChain* FairRootManager::fInChain
private

Input Chain

Definition at line 290 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 290 of file FairRootManager.h

Referenced by ActivateBranch(), AddFriendsToChain(), CheckMaxEventNo(), GetInChain(), GetInTree(), OpenInChain(), PrintFriendList(), ReadEvent(), and ~FairRootManager().

TFile* FairRootManager::fInFile
private

Input file

Definition at line 288 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 288 of file FairRootManager.h

Referenced by CloseInFile(), GetInFile(), OpenInChain(), OpenInTree(), WriteFolder(), and ~FairRootManager().

std::map<Int_t, TBranch*> FairRootManager::fInputBranchMap
private

Definition at line 317 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 317 of file FairRootManager.h

Referenced by GetCloneOfLinkData(), and GetCloneOfTClonesArray().

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

Definition at line 333 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 333 of file FairRootManager.h

Referenced by AddFile(), and OpenInChain().

TString FairRootManager::fInputFileName
private

Definition at line 332 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 332 of file FairRootManager.h

Referenced by OpenInChain(), OpenInTree(), and SetInputFile().

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

Definition at line 337 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 337 of file FairRootManager.h

Referenced by AddFriendsToChain(), CheckFriendChains(), CreateNewFriendChain(), OpenBackgroundChain(), OpenInChain(), and OpenInTree().

TTree* FairRootManager::fInTree
private

Input Tree

Definition at line 292 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 292 of file FairRootManager.h

Referenced by ActivateBranch(), ActivateBranchInInTree(), GetObjectFromInTree(), OpenInTree(), ReadEvent(), and SetInTree().

TObjArray FairRootManager::fListFolder
private

list of folders from all input (and friends) files

Definition at line 298 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 298 of file FairRootManager.h

Referenced by ActivateBranch(), ActivateBranchInInTree(), CheckBranchSt(), CreateNewFriendChain(), OpenBackgroundChain(), OpenInChain(), and OpenInTree().

std::map< TString , TObject* > FairRootManager::fMap
private

Definition at line 301 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 301 of file FairRootManager.h

Referenced by AddMemoryBranch(), and GetMemoryBranch().

FairMCEventHeader* FairRootManager::fMCHeader
private

MC Event header

Definition at line 365 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 365 of file FairRootManager.h

Referenced by GetEventTime().

Bool_t FairRootManager::fMixedInput
private

True if signal and background mixing is used

Definition at line 342 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 342 of file FairRootManager.h

Referenced by ActivateBranch(), AddFile(), CheckMaxEventNo(), OpenInChain(), ReadBKEvent(), ReadEvent(), SetInputFile(), and SetSignalFile().

Int_t FairRootManager::fNObj
private

Definition at line 300 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 300 of file FairRootManager.h

Referenced by ActivateBranch(), ActivateBranchInInTree(), and OpenInTree().

UInt_t FairRootManager::fNoOfBGEntries
private

No of entries in BG Chain

Definition at line 386 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 386 of file FairRootManager.h

UInt_t FairRootManager::fNoOfSignals
private

Total number of signals added (Types and not files!)

Definition at line 346 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 346 of file FairRootManager.h

Referenced by GetSignalChainNo(), and SetSignalFile().

TObject** FairRootManager::fObj2
private

Definition at line 299 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 299 of file FairRootManager.h

Referenced by ActivateBranch(), ActivateBranchInInTree(), OpenInTree(), and ~FairRootManager().

Int_t FairRootManager::fOldEntryNr
private

Definition at line 278 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 278 of file FairRootManager.h

TFile* FairRootManager::fOutFile
private

Output file

Definition at line 294 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 294 of file FairRootManager.h

Referenced by CloseOutFile(), GetOutFile(), OpenOutFile(), Write(), WriteFileHeader(), WriteFolder(), WriteGeometry(), and ~FairRootManager().

TTree* FairRootManager::fOutTree
private

Output tree

Definition at line 296 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 296 of file FairRootManager.h

Referenced by ForceFill(), GetOutTree(), SetOutTree(), Write(), WriteGeometry(), and ~FairRootManager().

TTree* FairRootManager::fPtrTree
private

Definition at line 302 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 302 of file FairRootManager.h

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

Definition at line 338 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 338 of file FairRootManager.h

Referenced by CheckFriendChains(), and GetRunIdInfo().

Bool_t FairRootManager::fSBRatiobyN
private

True for background window in entry units

Definition at line 378 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 378 of file FairRootManager.h

Referenced by BGWindowWidthNo(), BGWindowWidthTime(), and ReadMixedEvent().

Bool_t FairRootManager::fSBRatiobyT
private

True for background window in time units (ns)

Definition at line 380 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 380 of file FairRootManager.h

Referenced by BGWindowWidthNo(), BGWindowWidthTime(), and ReadMixedEvent().

std::map<UInt_t, Double_t> FairRootManager::fSignalBGN
private

holds the SB ratio by number

Definition at line 374 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 374 of file FairRootManager.h

Referenced by BGWindowWidthNo(), BGWindowWidthTime(), CheckMaxEventNo(), and ReadMixedEvent().

std::list<TString>* FairRootManager::fSignalChainList
private

list of chains which has to be created for the different signals

Definition at line 348 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 348 of file FairRootManager.h

std::map<UInt_t, TChain*> FairRootManager::fSignalTypeList
private

Definition at line 352 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 352 of file FairRootManager.h

Referenced by ActivateBranch(), CheckMaxEventNo(), GetSignalChainNo(), OpenSignalChain(), ReadMixedEvent(), and SetSignalFile().

UInt_t FairRootManager::fTimeforEntryNo
private

for internal use, to return the same event time for the same entry

Definition at line 384 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 384 of file FairRootManager.h

Referenced by GetEventTime(), and SetEventTime().

TF1* FairRootManager::fTimeProb
private

used to generate random numbers for event time;

Definition at line 363 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 363 of file FairRootManager.h

Referenced by SetEventMeanTime(), and SetEventTime().

Bool_t FairRootManager::fTimeStamps
private

if kTRUE Read data according to time and not entries

Definition at line 322 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 322 of file FairRootManager.h

Referenced by RunWithTimeStamps().

std::map<TString, FairTSBufferFunctional*> FairRootManager::fTSBufferMap
private

Internally used to read time ordered data from branches

Definition at line 315 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 315 of file FairRootManager.h

Referenced by AllDataProcessed(), GetData(), GetTSBuffer(), and RegisterTSBuffer().

std::map<TString, FairWriteoutBuffer* > FairRootManager::fWriteoutBufferMap
private

Definition at line 316 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 316 of file FairRootManager.h

Referenced by DeleteOldWriteoutBufferData(), GetWriteoutBuffer(), RegisterWriteoutBuffer(), StoreAllWriteoutBufferData(), and StoreWriteoutBufferData().

std::map<unsigned, TClonesArray*> FairRootManager::mDigiLookup
private

Definition at line 399 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 399 of file FairRootManager.h

Referenced by AddDigiLookupEntry(), and GetDigiLookup().

std::map<unsigned, TClonesArray*> FairRootManager::mMoCaLookup
private

Definition at line 399 of file FairRootManager.h.

View newest version in sPHENIX GitHub at line 399 of file FairRootManager.h

Referenced by AddMoCaLookupEntry(), and GetMoCaLookup().


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