FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFileSource Class Reference

#include <FairFileSource.h>

Inheritance diagram for FairFileSource:
FairSource

Public Member Functions

 FairFileSource (TFile *f, const char *Title="InputRootFile", UInt_t identifier=0)
 
 FairFileSource (const TString *RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 
 FairFileSource (const TString RootFileName, const char *Title="InputRootFile", UInt_t identifier=0)
 
virtual ~FairFileSource ()
 
Bool_t Init ()
 
Int_t ReadEvent (UInt_t i=0)
 
void Close ()
 
void Reset ()
 
virtual Source_Type GetSourceType ()
 
virtual void SetParUnpackers ()
 
virtual Bool_t InitUnpackers ()
 
virtual Bool_t ReInitUnpackers ()
 
virtual Int_t CheckMaxEventNo (Int_t EvtEnd=0)
 
virtual void ReadBranchEvent (const char *BrName)
 
virtual void ReadBranchEvent (const char *BrName, Int_t Entry)
 
virtual void FillEventHeader (FairEventHeader *feh)
 
const TFile * GetRootFile ()
 
void AddFriend (TString FileName)
 
void AddFile (TString FileName)
 
void AddFriendsToChain ()
 
void PrintFriendList ()
 
Bool_t CompareBranchList (TFile *fileHandle, TString inputLevel)
 
void CheckFriendChains ()
 
void CreateNewFriendChain (TString inputFile, TString inputLevel)
 
TTree * GetInTree ()
 
TChain * GetInChain ()
 
TFile * GetInFile ()
 
void CloseInFile ()
 
void SetInTree (TTree *tempTree)
 
TObjArray * GetListOfFolders ()
 
TFolder * GetBranchDescriptionFolder ()
 
UInt_t GetEntries ()
 
void SetInputFile (TString name)
 
void SetBeamTime (Double_t beamTime, Double_t gapTime)
 
void SetEventTimeInterval (Double_t min, Double_t max)
 
void SetEventMeanTime (Double_t mean)
 
void SetEventTime ()
 
Double_t GetDeltaEventTime ()
 
void SetFileHeader (FairFileHeader *f)
 
Double_t GetEventTime ()
 
virtual Bool_t ActivateObject (TObject **obj, const char *BrName)
 
virtual Bool_t ActivateObjectAny (void **, const std::type_info &, const char *)
 
void SetEvtHeaderNew (Bool_t Status)
 
Bool_t IsEvtHeaderNew ()
 
void SetCheckFileLayout (Bool_t enable)
 
Bool_t SpecifyRunId ()
 
- Public Member Functions inherited from FairSource
 FairSource ()
 
 FairSource (const FairSource &source)
 
virtual ~FairSource ()
 
void SetRunId (Int_t runId)
 
Int_t GetRunId () const
 
 ClassDef (FairSource, 2)
 

Additional Inherited Members

- Protected Attributes inherited from FairSource
Int_t fRunId
 

Detailed Description

Definition at line 36 of file FairFileSource.h.

Constructor & Destructor Documentation

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

Definition at line 49 of file FairFileSource.cxx.

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

Definition at line 91 of file FairFileSource.cxx.

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

Definition at line 134 of file FairFileSource.cxx.

FairFileSource::~FairFileSource ( )
virtual

Definition at line 177 of file FairFileSource.cxx.

Member Function Documentation

Bool_t FairFileSource::ActivateObject ( TObject **  obj,
const char *  BrName 
)
virtual

Reimplemented from FairSource.

Definition at line 636 of file FairFileSource.cxx.

Bool_t FairFileSource::ActivateObjectAny ( void **  obj,
const std::type_info &  info,
const char *  BrName 
)
virtual

Reimplemented from FairSource.

Definition at line 650 of file FairFileSource.cxx.

void FairFileSource::AddFile ( TString  FileName)

Add ROOT file to input, the file will be chained to already added files

Definition at line 351 of file FairFileSource.cxx.

void FairFileSource::AddFriend ( TString  FileName)

Add a friend file (input) by name)

Definition at line 349 of file FairFileSource.cxx.

void FairFileSource::AddFriendsToChain ( )

Definition at line 353 of file FairFileSource.cxx.

void FairFileSource::CheckFriendChains ( )

Definition at line 462 of file FairFileSource.cxx.

Int_t FairFileSource::CheckMaxEventNo ( Int_t  EvtEnd = 0)
virtual

Check the maximum event number we can run to

Reimplemented from FairSource.

Definition at line 670 of file FairFileSource.cxx.

void FairFileSource::Close ( )
virtual

Implements FairSource.

Definition at line 345 of file FairFileSource.cxx.

void FairFileSource::CloseInFile ( )
inline

Definition at line 79 of file FairFileSource.h.

Bool_t FairFileSource::CompareBranchList ( TFile *  fileHandle,
TString  inputLevel 
)

Definition at line 587 of file FairFileSource.cxx.

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

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

Definition at line 539 of file FairFileSource.cxx.

void FairFileSource::FillEventHeader ( FairEventHeader feh)
virtual

Reimplemented from FairSource.

Definition at line 805 of file FairFileSource.cxx.

TFolder* FairFileSource::GetBranchDescriptionFolder ( )
inline

Definition at line 88 of file FairFileSource.h.

Double_t FairFileSource::GetDeltaEventTime ( )

Definition at line 731 of file FairFileSource.cxx.

UInt_t FairFileSource::GetEntries ( )
inline

Definition at line 89 of file FairFileSource.h.

Double_t FairFileSource::GetEventTime ( )

Definition at line 744 of file FairFileSource.cxx.

TChain* FairFileSource::GetInChain ( )
inline

Definition at line 77 of file FairFileSource.h.

TFile* FairFileSource::GetInFile ( )
inline

Definition at line 78 of file FairFileSource.h.

TTree* FairFileSource::GetInTree ( )
inline

Definition at line 76 of file FairFileSource.h.

TObjArray* FairFileSource::GetListOfFolders ( )
inline

Definition at line 87 of file FairFileSource.h.

const TFile* FairFileSource::GetRootFile ( )
inline

Definition at line 66 of file FairFileSource.h.

virtual Source_Type FairFileSource::GetSourceType ( )
inlinevirtual

Implements FairSource.

Definition at line 50 of file FairFileSource.h.

Bool_t FairFileSource::Init ( )
virtual

Implements FairSource.

Definition at line 179 of file FairFileSource.cxx.

virtual Bool_t FairFileSource::InitUnpackers ( )
inlinevirtual

Implements FairSource.

Definition at line 54 of file FairFileSource.h.

Bool_t FairFileSource::IsEvtHeaderNew ( )
inline

Definition at line 115 of file FairFileSource.h.

void FairFileSource::PrintFriendList ( )

Definition at line 435 of file FairFileSource.cxx.

void FairFileSource::ReadBranchEvent ( const char *  BrName)
virtual

Read the tree entry on one branch

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

Reimplemented from FairSource.

Definition at line 771 of file FairFileSource.cxx.

void FairFileSource::ReadBranchEvent ( const char *  BrName,
Int_t  Entry 
)
virtual

Read specific tree entry on one branch

Reimplemented from FairSource.

Definition at line 789 of file FairFileSource.cxx.

Int_t FairFileSource::ReadEvent ( UInt_t  i = 0)
virtual

Implements FairSource.

Definition at line 326 of file FairFileSource.cxx.

virtual Bool_t FairFileSource::ReInitUnpackers ( )
inlinevirtual

Implements FairSource.

Definition at line 56 of file FairFileSource.h.

void FairFileSource::Reset ( )
virtual

Implements FairSource.

Definition at line 347 of file FairFileSource.cxx.

void FairFileSource::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). The total repetition time is beamTime + gapTime

Definition at line 707 of file FairFileSource.cxx.

void FairFileSource::SetCheckFileLayout ( Bool_t  enable)
inline

Allow to disable the testing the file layout when adding files to a chain.

Definition at line 119 of file FairFileSource.h.

void FairFileSource::SetEventMeanTime ( Double_t  mean)

Set the mean time for the event in ns

Definition at line 682 of file FairFileSource.cxx.

void FairFileSource::SetEventTime ( )

Definition at line 713 of file FairFileSource.cxx.

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

Set the min and max limit for event time in ns

Definition at line 699 of file FairFileSource.cxx.

void FairFileSource::SetEvtHeaderNew ( Bool_t  Status)
inline

Set the status of the EvtHeader

Parameters
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 114 of file FairFileSource.h.

void FairFileSource::SetFileHeader ( FairFileHeader f)
inline

Definition at line 104 of file FairFileSource.h.

void FairFileSource::SetInputFile ( TString  name)

Definition at line 661 of file FairFileSource.cxx.

void FairFileSource::SetInTree ( TTree *  tempTree)

Set the input tree when running on PROOF worker

Definition at line 316 of file FairFileSource.cxx.

virtual void FairFileSource::SetParUnpackers ( )
inlinevirtual

Implements FairSource.

Definition at line 52 of file FairFileSource.h.

Bool_t FairFileSource::SpecifyRunId ( )
virtual

Read one event from source to find out which RunId to use

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

Implements FairSource.

Definition at line 336 of file FairFileSource.cxx.


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